T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:109
- Finding
- Security-Critical Wallet Dependency Installed Without Artifact Integrity Verification## Vulnerability Details **File Location**: `SKILL.md`, lines 109–114 and 130 **Vulnerability Type**: Third-party dependency and software supply-chain risk **Risk Level**: Medium **Vulnerable code:** ```bash npm install -g agentcash@0.17.1 agentcash --version ``` ```bash agentcash onboard <CODE> ``` ```bash claude mcp add agentcash --scope user -- npx -y agentcash@0.17.1 ``` ### Technical Analysis The Skill directs the operator to install and execute the npm-distributed `agentcash` package globally or execute it through `npx`. Although the package version is pinned, the instructions do not verify a cryptographic digest, signed release, package provenance, or publisher identity before execution. Version pinning prevents accidental upgrades but does not protect against compromise of the pinned registry artifact, maintainer account, publication infrastructure, or npm delivery channel. This dependency is particularly security-sensitive because it creates and operates a funded cryptocurrency wallet, signs marketplace requests, and may run as a user-scoped MCP server. The global installation and user-scoped MCP configuration also give the dependency a broader execution lifetime and scope than a one-time, isolated marketplace request requires. No malicious behavior by the named package was established during this audit; the confirmed issue is the absence of integrity controls around a privileged dependency. ### Attack Path 1. An attacker compromises the npm package, its maintainer account, or the package-delivery infrastructure. 2. The operator follows the Skill and runs `npm install -g agentcash@0.17.1` or `npx -y agentcash@0.17.1`. 3. npm downloads and executes package installation or runtime code without an independent integrity or provenance check specified by the Skill. 4. The compromised package executes with the operator's user privileges. 5. It can target wallet state, alter signing or payment beha ...[truncated 902 chars]
- Remediation
- ## Remediation Suggestions 1. Publish an authoritative SHA-256 digest or another independently verifiable integrity value for the exact package artifact. 2. Require verification of npm provenance or signed release attestations before installation. 3. Clearly document the authoritative npm package name, publisher identity, source repository, and release verification procedure. 4. Prefer a locked local installation over a global installation, and use a lockfile with integrity metadata. 5. Avoid `npx -y` for a wallet-capable MCP service unless the retrieved artifact is independently verified first. 6. Run the wallet component in a sandbox or dedicated low-privilege account with restricted filesystem and network access. 7. Use a dedicated low-balance wallet and retain strict transaction limits to reduce the effect of dependency compromise. 8. Document how users can inspect the installed package and compare it with the corresponding reviewed source release.
