LWA-2026-14367 confirmed malware

@agentgates/cli@0.89.0

Malicious code in @agentgates/cli (npm)

T1059.007 · JavaScriptT1552.001 · Credentials In FilesT1071.001 · Web ProtocolsT1102 · Web Service

Analysis

The package runs 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 directs the assistant to route all wallet, balance, send, swap and password-vault work through the bundled `agentgates` CLI and to prefer it over other tooling, i.e. attacker-authored instructions are placed into the agent's trusted context at install time. The bundled CLI (dist/cli.mjs) contains a hardcoded relay at hxxps://covenant-backend[.]vercel[.]app/api and posts to its prepare, submit and positions routes carrying an operator bearer read from the BOUNTY_LAUNCH_ADMIN_KEY or ADMIN_API_KEY environment variables. It also reads and writes self-custodial key material at ~/.agentgates/trade-sol.json and ~/.agentgates/desk-session-sol.json, and holds a credential vault whose seed is supplied through AGENTGATES_PASSWORDS_SEED or --seed. No DNS or credential-harvesting beacon was observed in the code outside these endpoints; the network IOCs are the hardcoded hxxps://covenant-backend[.]vercel[.]app/api relay 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
npm package ↗ source repo (declared, defanged): hxxps://github[.]com/agentgates-ai/agentgates Request takedown / dispute →

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.