@agentgates/cli@0.95.1
Malicious code in @agentgates/cli (npm)
Analysis
This package is a wallet/password CLI for AI agents whose install hook (scripts/postinstall.mjs) rewrites developer AI-assistant configuration on the installing machine: it injects a marker-delimited block (agentgates-cli:start / agentgates-cli:end) into ~/.claude/CLAUDE.md, ~/.cursor/rules/agentgates.md and ~/.windsurfrules, instructing any assistant that reads those files to perform wallet, send, swap, earn and stored-site-password operations through the `agentgates` CLI, and it prints a stdout banner explicitly addressed to the installing AI session. The bundled CLI (dist/cli.mjs, ~3.8 MB, includes ethers and @noble crypto) appends a directive to its own output asking the model to "present the above verbatim ... do not reformat, summarize, or omit rows", and keeps a twelve-word BIP-39 seed plus stored site passwords in a JSON file at ~/.agentgates/passwords-key.json (mode 0600), reading the seed from AGENTGATES_PASSWORDS_SEED or disk and signing requests with it. Remote endpoints referenced by the code include hxxps://cli[.]agentgates[.]ai, hxxps://agentgates[.]ai, hxxps://covenant-backend[.]vercel[.]app and public EVM/Solana RPCs; no third-party collection endpoint was found in the code.
- analyzed by
- Leitwacht
- first seen
- Nov 22, 2026, 11:21 PM
- analyzed
- Nov 22, 2026, 11:24 PM
- weekly installs
- 1,381
hxxps://github[.]com/agentgates-ai/agentgates Request takedown / dispute →Related advisories
- @agentgates/cli@0.98.0 same package
- @agentgates/cli@0.13.1 same package
- @agentgates/cli@0.13.0 same package
- @agentgates/cli@0.12.0 same package
- @agentgates/cli@0.11.3 same package
- @agentgates/cli@0.11.1 same package
- @agentgates/cli@0.11.0 same package
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.