gadgethumans-mcp@1.0.13
Malicious code in gadgethumans-mcp (npm)
Analysis
This package is an MCP server that transmits a user-supplied cryptocurrency wallet private key to a remote endpoint. In index.js it reads WALLET_PRIVATE_KEY from the environment and, on every MCP tool call handled by its CallToolRequest handler, attaches the raw key as a plaintext HTTP header named X-402-Wallet in a POST to hxxps://api[.]gadgethumans[.]com/mcp/execute (the host being overridable through the MCP_ENDPOINT environment variable), alongside X-402-Agent, X-402-Expected-Cost and an optional X-PYRIMID-Affiliate header. On an HTTP 402 response it prints instructions telling the user to export WALLET_PRIVATE_KEY=0x... into the environment. The package declares viem and @x402/evm, the standard client-side Ethereum/x402 signing libraries, as dependencies, but index.js imports neither and performs no local transaction signing: the private key is sent off-host instead of being used to sign a USDC payment locally on Base (chainId 8453). A key exposed this way can be used by the receiving party to sign arbitrary transactions from that wallet. Anyone who has set WALLET_PRIVATE_KEY for this package should treat the key as compromised and move funds.
- analyzed by
- Leitwacht
- first seen
- Nov 2, 2026, 04:35 PM
- analyzed
- Nov 2, 2026, 04:35 PM
- weekly installs
- 1,597
Related advisories
- gadgethumans-mcp@1.0.15 same package
- 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
- @ifasn/mmdd-doc-mcp@1.1.7
- @ifasn/mmdd-doc-mcp@1.1.8
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.