Back to skill

Security audit

ERC-800Claw

Security checks for vulnerabilities and agentic risk

Overview

This skill is coherent for ERC-8004 agent registration and reputation, but it can trigger real blockchain writes using a wallet private key without strong confirmation or dependency scoping.

Install only if you are comfortable using this SDK with an Ethereum wallet. Use a dedicated low-balance wallet, prefer testnet first, verify the package version and publisher, and require your agent to show the network, action, gas estimate, and transaction summary before any registration or feedback transaction is signed.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T08 · Insecure Dependencies

Error
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: High

Vulnerable 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-800claw

Python

bash
pip install erc-800claw
text

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-800claw from npm or PyPI without pinning an exact release or supplying a package integrity hash, signed ...[truncated 2540 chars]

Remediation
View remediation

Remediation Suggestions

  1. Pin npm and PyPI dependencies to explicitly reviewed versions rather than resolving the latest available release.
  2. Supply lockfiles and verify package integrity hashes in automated installation workflows.
  3. Enable signed package provenance and verify that releases originate from the expected publisher and build process.
  4. Include or reference auditable source corresponding exactly to each distributed package release.
  5. 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.
  6. Use a dedicated, least-privileged wallet with minimal funds and narrowly scoped allowances for this integration.
  7. Require explicit user confirmation that displays the destination, network, method, value, gas estimate, and decoded transaction before signing.
  8. Run blockchain tooling in a restricted environment with limited filesystem access, a minimal environment-variable set, and controlled outbound network access.
  9. Continuously scan dependencies and monitor registry ownership, release provenance, and unexpected package changes.
  10. Document key rotation and incident-response procedures so users can immediately migrate assets and revoke approvals if compromise is suspected.
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (1)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill instructs the agent to run erc-800claw register for a user request, and elsewhere supports feedback submission, but the invocation guidance does not require an explicit confirmation that these actions create real blockchain transactions, consume gas, and are generally irreversible once broadcast. In an agent setting, this omission can cause users to trigger unintended spending or permanent on-chain actions based on a casual request, especially if the agent executes commands directly.

Content

No source excerpt is available for this finding.