oathe / scan / reports / caution
Is eijiac24/haggle-protocol safe?
Use with caution. eijiac24/haggle-protocol is not clearly unsafe, but the audit flagged risks to review before you install it. Oathe's behavioral security audit gave the haggle-protocol skill by eijiac24 a trust score of 76/100 with 9 findings (3 high).
https://github.com/openclaw/skills/tree/main/skills/eijiac24/haggle-protocol
Is eijiac24/haggle-protocol safe to install?
Haggle Protocol is a functionally legitimate on-chain negotiation skill with no evidence of prompt injection, hidden instructions, or unauthorized credential access during the audit. The primary risks are financial rather than malicious: the skill requires a mainnet private key, installs an unaudited npm package that could execute arbitrary code during setup, and interacts with smart contracts that have not been formally security audited. No canary files were exfiltrated and clone-time behavior was clean.
What security issues were found in eijiac24/haggle-protocol?
Category Scores
Findings (9)
HIGH npm install of unverified package with postinstall risk -37 ▶
scripts/setup.sh installs @haggle-protocol/[email protected] globally via npm without --ignore-scripts, no lockfile pinning, and no checksum verification. npm postinstall scripts in the package have full access to the process environment including HAGGLE_PRIVATE_KEY, and can execute arbitrary shell commands. This is not a vetted, integrity-pinned install.
Evidence: scripts/setup.sh line: 'npm install -g @haggle-protocol/[email protected]'
HIGH Unaudited smart contracts handling real USDC on mainnet -45 ▶
The skill explicitly discloses that smart contracts have NOT been formally audited. The Base Mainnet deployment handles real USDC (6-decimal ERC-20). Exploitable bugs in the escrow or settlement logic could result in permanent loss of deposited funds. The 'permissionless expiry' and 'owner pausable' mechanisms create additional trust assumptions.
Evidence: SKILL.md Security section: 'Not audited - The smart contracts have NOT been formally audited. Use at your own risk and start with small amounts.' Base Mainnet contract: 0xB77B5E932de5e5c6Ad34CB4862E33CD634045514
HIGH Private key required in environment variable -32 ▶
The skill requires HAGGLE_PRIVATE_KEY to be set in the process environment. This EVM private key signs mainnet transactions and controls real funds. Environment variables are visible to all processes running in the same session, any co-installed skill with env read access, and npm postinstall scripts executed during setup. The key is never logged by this skill's own code, but the exposure surface from requiring it at all is significant.
Evidence: SKILL.md metadata: '"requires": {"env": ["HAGGLE_PRIVATE_KEY"]}', 'credentials': ['HAGGLE_PRIVATE_KEY']; setup.sh comment: '# Accessed env vars: HAGGLE_PRIVATE_KEY'
MEDIUM Centralized owner-pausable contract -25 ▶
The protocol owner has unilateral authority to pause the smart contract. If paused while escrow is deposited mid-negotiation, funds could be temporarily or permanently inaccessible. This creates a trust dependency on a third-party actor with no on-chain governance or multi-sig requirement disclosed.
Evidence: SKILL.md: 'Owner pausable - The protocol owner can pause the contract in case of emergency.'
MEDIUM Signed transactions sent to 5 external blockchain RPC endpoints -20 ▶
The skill sends signed EVM/Solana transactions to RPC endpoints that are not under the user's control. While this is functionally necessary for blockchain interaction, it means the external RPC operators can observe all transaction patterns, wallet addresses, and timing of the agent's financial activity. The disclosed endpoints include one third-party aggregator (monad-testnet.drpc.org).
Evidence: SKILL.md External Endpoints table: mainnet.base.org, sepolia.base.org, api.devnet.solana.com, monad-testnet.drpc.org, sepolia-rollup.arbitrum.io/rpc
MEDIUM npx execution of remote package without local install verification -20 ▶
The skill documentation instructs running 'npx @haggle-protocol/[email protected]' directly, which downloads and executes the package at runtime without caching validation. npx resolves to whatever is currently published at that version tag. If the publisher's npm account were compromised and 0.2.0 re-published with malicious code, users running npx would execute the malicious version.
Evidence: SKILL.md Setup section: 'npx @haggle-protocol/[email protected]'
LOW Agent granted authority to initiate and settle real financial transactions -18 ▶
The skill's MCP tools (create_negotiation, submit_offer, accept_offer) allow an agent to commit and transfer real USDC without per-transaction human confirmation. An adversarially crafted negotiation invitation from another agent could manipulate the local agent into accepting unfavorable settlement terms. The 'numeric offers only' claim reduces but does not eliminate prompt injection risk at the negotiation content layer.
Evidence: MCP tools: create_negotiation, accept_offer, submit_offer — all trigger on-chain state changes and fund transfers when called
LOW Skill package publisher identity unverifiable -12 ▶
The npm org @haggle-protocol is not a widely known or established publisher. No npm provenance attestation, no Sigstore signing, and no community audit trail was observable. The @haggle-protocol/[email protected] package reputation cannot be independently confirmed from the audit evidence.
Evidence: setup.sh: 'npm install -g @haggle-protocol/[email protected]'; no lockfile or integrity hash provided in skill files
INFO Transparent endpoint and credential disclosure (positive signal) 0 ▶
The skill explicitly documents all external endpoints, the data sent to each, the credentials it requires, and the security model. The 'External Endpoints' and 'Security & Privacy' sections provide actionable transparency. This is a positive security practice that differentiates this skill from obfuscated ones.
Evidence: SKILL.md: 'External Endpoints' table with Data Sent column; 'Private Key Safety' section with 6 specific mitigations; explicit 'No telemetry' claim
Should I install eijiac24/haggle-protocol?
Oathe's verdict for eijiac24/haggle-protocol is CAUTION with a trust score of 76/100. Recommendation: Install with caution.