Back to skill

Security audit

pmctl

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent Postman CLI helper, but it handles Postman API keys and unmasked environment secrets with insufficient safety guidance and an unpinned third-party install.

Review before installing. Use a virtual environment, avoid running as administrator, verify the pmctl package source and version, prefer a least-privilege Postman API key, avoid putting API keys directly in shell commands, and do not run full or JSON environment output unless you are prepared to handle exposed secrets.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:4
Finding

Unpinned Third-Party Package Installation

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 4-12
Vulnerability Type: Supply-chain risk from an unpinned third-party dependency
Risk Level: Medium

Vulnerable Code Snippet:

markdown
description: Browse and inspect Postman collections, requests, and environments from the terminal using pmctl. Use when you need to discover API endpoints, look up request details (method, URL, headers, body, query params), resolve environment variables to real base URLs, or construct curl commands from Postman data. Works with any Postman workspace. Requires pmctl to be installed (`pip install pmctl`).
---

# pmctl — Postman CLI for API Discovery

`pmctl` wraps the Postman API to let you browse collections, inspect requests, and resolve environment variables from the terminal. Use it to discover endpoints, construct curl commands, and understand APIs without opening the Postman GUI.

**Install:** `pip install pmctl`
**Source:** [github.com/wbingli/pmctl](https://github.com/wbingli/pmctl)

Technical Analysis

The Skill directs users to install pmctl from pip without specifying an exact version, verifying a cryptographic hash, or using a reviewed lockfile. Consequently, the effective package contents may change after this Skill has been audited. Linking to a GitHub repository does not establish that the package retrieved from the Python package index was built from the linked source or that its integrity has been verified.

Python packages can run code during installation or when imported and executed. A compromised publisher account, malicious replacement release, or compromised distribution channel could therefore cause attacker-controlled code to run when a user follows the documented installation command.

This dependency is especially sensitive because the documented workflow supplies it with a Postman API key and uses it to access collections and unmasked environment values.

Attack Path

  1. An at ...[truncated 1160 chars]
Remediation
View remediation

Remediation Suggestions

  • Replace the unbounded installation command with an exact, security-reviewed version pin, such as pmctl==<reviewed-version>.
  • Distribute a reviewed requirements or lock file containing cryptographic hashes, and require hash verification during installation, for example through pip's --require-hashes option.
  • Document the expected package publisher, package index, version, and verified source-to-artifact provenance.
  • Install the dependency in an isolated virtual environment rather than into a system-wide or privileged Python environment.
  • Do not run installation or CLI commands as root or an administrator.
  • Review each dependency update before changing the pinned version.
  • Use a least-privilege Postman API key and avoid exposing unmasked environment values in logs, shared terminals, or command history.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (5)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
60% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 3)May include surrounding context.

md
---
name: pmctl
description: Browse and inspect Postman collections, requests, and environments from the terminal using pmctl. Use when you need to discover API endpoints, look up request details (method, URL, headers, body, query params), resolve environment variables to real base URLs, or construct curl commands from Postman data. Works with any Postman workspace. Requires pmctl to be installed (`pip install pmctl`).
---

# pmctl — Postman CLI for API Discovery

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 3)May include surrounding context.

md
---
name: pmctl
description: Browse and inspect Postman collections, requests, and environments from the terminal using pmctl. Use when you need to discover API endpoints, look up request details (method, URL, headers, body, query params), resolve environment variables to real base URLs, or construct curl commands from Postman data. Works with any Postman workspace. Requires pmctl to be installed (`pip install pmctl`).
---

# pmctl — Postman CLI for API Discovery

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The setup instructs users to pass the Postman API key directly as a command-line argument, which can be exposed via shell history, process listings, audit logs, or screenshots. This is a well-known secret-handling anti-pattern and increases the chance of credential leakage during normal setup.

Content

No source excerpt is available for this finding.

Unbounded Output

Medium
Category
Output Handling
Confidence
87% confidence
Finding

Documenting --full output with 'no truncation' encourages printing complete environment values, which may include large or highly sensitive secrets. The danger here is not resource exhaustion as much as unrestricted disclosure of full credential material into terminals, logs, or captured transcripts.

Content

Scanner excerpt · SKILL.md (reported line 72)May include surrounding context.

bash
pmctl environments list                     # List environments
pmctl environments show <name-or-id>       # Show variables
pmctl environments show <name> --full       # Full values (no truncation)

Workspaces

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill explicitly highlights that environment output can include unmasked secrets and provides commands to print full values, but it does not warn about safe handling, redaction, terminal logging, or avoiding pasting secrets into chats and scripts. In this context, Postman environments commonly contain API keys, tokens, and base URLs, so normal use can lead to accidental credential disclosure.

Content

No source excerpt is available for this finding.