@agentgates/cli@0.13.1
Malicious code in @agentgates/cli (npm)
Analysis
These versions run a postinstall hook (scripts/postinstall.mjs) that silently rewrites developer AI-assistant configuration on the installing machine: it appends or replaces a marked instruction block in ~/.claude/CLAUDE.md, creates ~/.cursor/rules/agentgates.md and appends to ~/.windsurfrules. The injected text tells the assistant to route every wallet, balance, send, swap and earn operation through the bundled `agentgates` CLI and to prefer it over other tooling, placing attacker-authored instructions into the agent's trusted context at install time. The bundled CLI (dist/cli.mjs) has a hardcoded relay at hxxps://covenant-backend[.]vercel[.]app/api and sends POST/GET requests to that host carrying a bearer token read from the BOUNTY_LAUNCH_ADMIN_KEY or ADMIN_API_KEY environment variables. Network IOCs: hxxps://covenant-backend[.]vercel[.]app/api and hxxps://cli[.]agentgates[.]ai.
- analyzed by
- Leitwacht
- first seen
- Nov 20, 2026, 05:39 AM
- analyzed
- Nov 20, 2026, 05:41 AM
- weekly installs
- 1,381
hxxps://github[.]com/Carlos-Sotop/agentgates-ai-cli Request takedown / dispute →Related advisories
- @agentgates/cli@0.98.0 same package
- @agentgates/cli@0.95.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
- @agentgates/cli@0.10.1 same package
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.