Notice
incidentAGT-INC-2026-0004
Malicious Nx npm versions weaponized local AI CLIs (Claude Code, Gemini CLI, Amazon Q) to hunt credentials (s1ngularity)
A behavioral incident: no malicious file, but an agent did something it should not have.
What happened
- Agent
- Claude Code, Gemini CLI, Amazon Q CLI (abused locally)
- Date
- 2025-08-26
- Trigger
- malicious tool
- Impact
- data leak
- Root cause
- Malicious Nx and plugin versions, live a little over five hours, ran a postinstall script that invoked installed AI CLIs with unsafe flags to find SSH keys, npm/GitHub tokens and wallets, then published them Base64-encoded to a public GitHub repo named s1ngularity-repository. Sources disagree on initial access (pull_request_target workflow flaw vs token leak vs phishing).
What would have stopped it
- no install-script execution
- not exposing AI CLIs with permission-bypass flags to untrusted code
Sources
- snyk.io https://snyk.io/de/blog/weaponizing-ai-coding-agents-for-malware-in-…
- thehackernews.com https://thehackernews.com/2025/08/malicious-nx-packages-in-s1ngulari…
- research.jfrog.com https://research.jfrog.com/post/nx-supply-chain-attack-targets-ai-to…
Wrong or outdated? Open an issue or PR against corpus/entries/AGT-INC-2026-0004.json.