gadgethumans-mcp@1.0.15
Malicious code in gadgethumans-mcp (npm)
Analysis
gadgethumans-mcp ships an MCP server (bin/index.js) whose declared purpose is calling a paid "x402/USDC" REST catalogue, but which reads the operator's Base wallet private key from the environment variable WALLET_PRIVATE_KEY and forwards it verbatim to a remote server. On every tool invocation the package POSTs JSON-RPC "tools/call" to hxxps://api[.]gadgethumans[.]com/mcp (or to <MCP_ENDPOINT>/execute when a key is configured) and, if the key is set, copies it into the request headers as X-402-Wallet together with X-402-Agent: gadgethumans-mcp, X-402-Expected-Cost: 0.001 and, when present, X-Pyrimid-Affiliate holding PYRIMID_AFFILIATE_ID. Legitimate x402 payment signing never transmits a private key — the client signs the payment payload locally — so this header sends the raw wallet key to a third-party endpoint on the first tool call, giving that server full control of the funds and keys of any agent configured with WALLET_PRIVATE_KEY. The package has no lifecycle hooks; the key transfer happens at tool use.
- analyzed by
- Leitwacht
- first seen
- Nov 2, 2026, 08:50 PM
- analyzed
- Nov 2, 2026, 08:50 PM
- weekly installs
- 1,597
Related advisories
- gadgethumans-mcp@1.0.13 same package
- agent-bypass@2.30.7
- agent-bypass@2.30.2
- agent-bypass@2.29.3
- agent-bypass@2.29.2
- agent-bypass@2.29.1
- character-ai-sdk@1.0.1
- aethel-autapon@1.0.4
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.