T08 · Insecure Dependencies
- Location
SKILL.md:28- Finding
Unpinned Third-Party npm Package Is Downloaded and Executed
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is purpose-aligned for private DeFi, but it asks users to run mutable third-party install code and grants fund-moving wallet authority with limited safety disclosure.
Review this carefully before installing. Use only a reviewed pinned package version, keep wallet funds limited, protect or isolate `WORKER_PRIVATE_KEY` and `~/.b402/wallet.json`, and require manual review of every transaction route, amount, destination, and chain before signing.
SKILL.md:28Unpinned Third-Party npm Package Is Downloaded and Executed
The install command uses npx b402-mcp@latest, which fetches and executes whatever code is current at install time rather than a reviewed, immutable version. In a skill that patches local config, registers an MCP server, and handles a private key for fund-moving operations, a compromised or malicious package update could immediately lead to code execution, credential theft, or unauthorized transactions.
The skill states that installation generates a wallet at ~/.b402/wallet.json, but it does not clearly warn users that this creates sensitive key material on disk. For a financial skill managing private DeFi activity, undocumented local key storage increases the risk of accidental exposure through weak file permissions, backups, logs, malware, or multi-user systems.
The skill exposes tools for shielding, swapping, lending, redeeming, bridging, and executing multi-step strategies, but it does not present a prominent warning that these actions can transfer funds across multiple protocols and chains with irreversible outcomes. In this context, the omission is especially dangerous because the skill is explicitly designed to move assets privately and 'gaslessly,' which may reduce user friction and encourage high-trust execution without understanding bridge, routing, slippage, smart contract, or destination-address risks.