T08 · Insecure Dependencies
- Location
SKILL.md:43- Finding
Unpinned npm Package Is Automatically Downloaded and Executed
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 43–45
Vulnerability Type: Insecure third-party dependency execution
Risk Level: Mediumbash openclaw mcp add peer-cash --command npx --arg -y --arg peer-cash-mcp openclaw mcp doctor peer-cash --probeTechnical Analysis
The setup instructions register and probe
peer-cash-mcpthroughnpx -ywithout specifying an exact package version or integrity constraint. The-yoption suppresses the installation confirmation. As a result, npm may download and execute whichever package release its registry resolves at runtime.This creates a supply-chain trust gap: the executed artifact can change after the Skill has been reviewed. The referenced GitHub homepage does not cryptographically bind the npm artifact to a reviewed source revision. Compromise of the package, its maintainer account, or the registry delivery path could therefore introduce arbitrary code into the MCP process.
Attack Path
- An attacker compromises the
peer-cash-mcpnpm package, its publisher account, or a release mechanism used to distribute it. - The attacker publishes a malicious version that satisfies the unpinned package request.
- An operator follows the setup instructions, or the registered MCP command is launched later.
npx -y peer-cash-mcpdownloads and executes the attacker-controlled release without an interactive installation prompt.- The malicious package runs with the permissions and environment of the OpenClaw gateway user.
- It can inspect resources exposed to that process, falsify MCP responses, or substitute malicious transaction preparation data.
Impact Assessment
Successful exploitation provides arbitrary code execution with the privileges of the account running the OpenClaw gateway or MCP process. The accessible scope may include process-visible environment variables, local files readable by that account, network access, and MCP communications.
Because this Skill support ...[truncated 345 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Pin
peer-cash-mcpto a reviewed, exact version rather than relying on the registry's latest resolution. - Install the dependency during a controlled deployment phase using a lockfile and verified integrity hash.
- Configure OpenClaw to execute a verified local binary instead of dynamically invoking
npx -y. - Avoid suppressing installation confirmation when an artifact has not already been verified.
- Verify the npm package provenance and bind the deployed artifact to a reviewed source commit or signed release.
- Run the MCP server under a dedicated least-privilege account or sandbox with restricted filesystem, environment-variable, and network access.
- Preserve the existing requirement to display and approve exact transaction details, and independently validate destinations, values, and calldata before wallet submission.
- Pin
