T08 · Insecure Dependencies
- Location
SKILL.md:22- Finding
Unpinned Third-Party Dependencies Receive Cryptocurrency Wallet Private Keys
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 22–31, 123–136, and 166–181
Vulnerability Type: Supply-chain exposure of sensitive wallet credentials
Risk Level: HighVulnerable Code
Lines 22–31 instruct users to install mutable packages without an exact version, integrity hash, or lockfile:
markdown ## Quick Setup ### Node.js ```bash npm install erc-800clawPython
bash pip install erc-800clawtext Lines 123–136 pass the wallet private key directly to the installed Node.js dependency: ```javascript // Register a new agent (no IPFS needed - uses data URI!) const result = await client.registerAgent(process.env.PRIVATE_KEY, { name: 'My Autonomous Agent', description: 'Handles customer support', services: [{ name: 'support', endpoint: 'https://myagent.com/api' }] }); console.log(`Registered agent #${result.agentId}`); // Give feedback to an agent await client.giveFeedback(process.env.PRIVATE_KEY, agentId, { value: 4.5, // Score out of 5 decimals: 1, tag1: 'support', tag2: 'fast' });Lines 166–181 similarly pass the private key directly to the installed Python dependency:
python # Register a new agent (no IPFS needed - uses data URI!) result = client.register_agent( private_key=os.environ['PRIVATE_KEY'], name='My Autonomous Agent', description='Handles customer support', services=[{'name': 'support', 'endpoint': 'https://myagent.com/api'}] ) print(f"Registered agent #{result['agent_id']}") # Give feedback to an agent client.give_feedback( private_key=os.environ['PRIVATE_KEY'], agent_id=agent_id, value=4.5, # Score out of 5 decimals=1, tag1='support', tag2='fast' )Technical Analysis
The skill directs users to install
erc-800clawfrom npm or PyPI without pinning an exact release or supplying a package integrity hash, signed ...[truncated 2540 chars]- Remediation
View remediation
Remediation Suggestions
- Pin npm and PyPI dependencies to explicitly reviewed versions rather than resolving the latest available release.
- Supply lockfiles and verify package integrity hashes in automated installation workflows.
- Enable signed package provenance and verify that releases originate from the expected publisher and build process.
- Include or reference auditable source corresponding exactly to each distributed package release.
- Avoid passing raw private keys into SDK methods. Use an external signer interface, hardware wallet, operating-system keystore, or managed signing service that does not disclose private-key material to dependency code.
- Use a dedicated, least-privileged wallet with minimal funds and narrowly scoped allowances for this integration.
- Require explicit user confirmation that displays the destination, network, method, value, gas estimate, and decoded transaction before signing.
- Run blockchain tooling in a restricted environment with limited filesystem access, a minimal environment-variable set, and controlled outbound network access.
- Continuously scan dependencies and monitor registry ownership, release provenance, and unexpected package changes.
- Document key rotation and incident-response procedures so users can immediately migrate assets and revoke approvals if compromise is suspected.
