T08 · Insecure Dependencies
- Location
SKILL.md:283- Finding
Unpinned Third-Party Installation Executes Mutable Remote Code
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 283-284
Vulnerability Type: Unpinned third-party dependency and remote installation
Risk Level: MediumVulnerable Code:
bash npx skills add AgentPMT/agent-skills --skill what-is-agentpmt npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setupTechnical Analysis
The setup instructions invoke
npxwithout pinning theskillspackage to a verified version. Depending on the local environment and cache state,npxmay retrieve and execute the currently published package from a remote registry. The referencedAgentPMT/agent-skillssource is also not pinned to an immutable commit or accompanied by an integrity hash or signature.Consequently, the code and Skill content executed or installed when a user follows these instructions can differ from what existed when this package was audited. This creates a supply-chain trust boundary involving the npm package, its maintainers, the package registry, the referenced repository, and their dependencies.
No evidence in the reviewed files demonstrates that the currently referenced package or repository is malicious. The vulnerability is the use of mutable, unverified remote dependencies rather than a confirmed malicious payload.
Attack Path
- An attacker compromises the npm package, a maintainer account, the referenced repository, or a transitive dependency.
- The attacker publishes a modified package version or changes the remotely retrieved Skill content.
- A user follows the documented setup procedure and runs the unpinned
npx skills addcommands. npxdownloads and executes the current package, or the installer retrieves modified repository content.- Attacker-controlled installation logic executes or attacker-controlled Skill instructions are installed under the invoking user's context.
Impact Assessment
Successful exploitation could execute arb ...[truncated 688 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the
skillsCLI to an explicitly reviewed version, for example by using an exact package version rather than the latest available release. - Pin
AgentPMT/agent-skillsto an immutable commit hash or signed release tag instead of a mutable branch or repository default. - Publish and verify cryptographic integrity hashes or signatures for downloaded packages and Skill files.
- Configure the installation process to reject unexpected package versions, unsigned artifacts, and integrity mismatches.
- Avoid implicit remote execution where possible. Install the reviewed CLI through a locked dependency manifest and invoke the local verified binary.
- Review the account setup Skills and their transitive dependencies before installation.
- Run installation in a sandbox or minimally privileged environment without unrelated credentials or sensitive environment variables.
- Document the trusted registry, expected publisher identity, approved package version, repository commit, and verification procedure directly in
SKILL.md.
- Pin the
