T09 · Insecure Skill Coding Practices
- Location
scripts/x402-fetch.mjs:41- Finding
Automatic payment signing lacks destination and spending restrictions
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill appears purpose-built for x402 paid API requests, but it needs review because it can automatically authorize wallet payments and handles private keys in risky ways.
Install only if you are comfortable giving this skill spending authority for a dedicated low-balance test wallet. Prefer --key-file over X402_PRIVATE_KEY or --key, do not reuse a valuable wallet, inspect payment terms and endpoints manually, and be aware that npm dependencies are fetched at install time.
scripts/x402-fetch.mjs:41Automatic payment signing lacks destination and spending restrictions
scripts/wallet-gen.mjs:15Private keys can be exposed through output, command arguments, and inherited environment variables
scripts/setup.sh:23Wallet-sensitive dependencies are installed from mutable version ranges without a lockfile
The skill performs sensitive actions involving network access and environment-based secret handling, but it does not declare any explicit tool scope or permissions. This creates a governance gap: an agent may invoke capabilities broader than the user expects, making secret exposure or unintended outbound requests more likely.
The skill instructs users to place a blockchain private key directly into an environment variable, which increases the chance of leakage through shell history, process inspection, logs, crash reports, or downstream tools that read inherited environment variables. Because this key authorizes spending from the wallet, compromise can lead to unauthorized payments and loss of funds.
This shell script creates directories and files, runs npm install, and copies scripts into the target directory. While the script's purpose is setup and installation, it does not clearly disclose beforehand that it will write package.json, install dependencies from the network, and copy executable scripts into a user directory.
No suspicious patterns detected.