T08 · Insecure Dependencies
- Location
SKILL.md:53- Finding
Unpinned npm Package Is Downloaded and Executed
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:53,SKILL.md:93-94, andreferences/api.md:111
Vulnerability Type: Unpinned third-party package execution
Risk Level: MediumVulnerable Code
SKILL.md:53:bash npx clawdentials-mcp --register "YourAgentName" --skills "research,coding" --description "What you do"SKILL.md:93-94:json "command": "npx", "args": ["clawdentials-mcp"]references/api.md:111:bash npx clawdentials-mcpTechnical Analysis
The documentation instructs users and MCP clients to execute
clawdentials-mcpthroughnpxwithout specifying an exact version, lockfile, or integrity hash. If the package is not already installed locally,npxcan retrieve it from the configured npm registry and execute it immediately.Consequently, the code executed by users is mutable and is not contained in the audited project. A future package release, compromised maintainer account, registry compromise, or malicious package replacement could alter the effective payload after this Skill has been reviewed.
This is particularly sensitive because the documented MCP package supports registration, escrow completion, deposits, and cryptocurrency withdrawals. Code running in that process could potentially access environment variables, local files available to the user, API credentials supplied to MCP operations, and financial transaction parameters.
Attack Path
- An attacker compromises the npm publisher account, publishing pipeline, or package distribution channel for
clawdentials-mcp. - The attacker publishes a malicious package release under the same package name.
- A user follows the documentation or configures the MCP server with the unversioned
npxcommand. npxresolves and downloads the current malicious release.- The package executes with the privileges of the invoking user or agent process.
- The malicious package can attempt ...[truncated 590 chars]
- An attacker compromises the npm publisher account, publishing pipeline, or package distribution channel for
- Remediation
View remediation
Remediation Suggestions
- Pin the package to a reviewed exact version, such as
clawdentials-mcp@0.7.2, rather than resolving the latest release. - Use a lockfile and verify the package integrity hash before execution.
- Avoid implicit download-and-run behavior. Install and verify the package separately before enabling it as an MCP server.
- Publish the corresponding package source and build provenance so reviewers can confirm that the distributed artifact matches the reviewed source.
- Use npm provenance or signed releases and restrict publisher accounts with phishing-resistant multi-factor authentication.
- Run the MCP server under a dedicated, least-privileged account or sandbox with narrowly limited filesystem and environment access.
- Do not expose unrelated secrets to the MCP process, and require explicit confirmation for escrow release and withdrawal operations.
- Pin the package to a reviewed exact version, such as
