# Compromised Nx npm packages ran victims' AI command-line tools to hunt for wallet and keystore files - Severity: Critical · Status: Contained (past) - Chains: Multiple EVM chains · Method: Supply-chain stealers - Started: Aug 26, 2025 · Last update: Sep 6, 2025 · Victims: 1700 - Who/what: Nx build system on npm - AI involvement: AI-built malware. The malware ran locally installed AI CLIs (Claude, Gemini, Amazon Q) to inventory wallet, keystore and secret files for theft; Wiz found the AI step worked in under a quarter of cases and saw no successful crypto exfiltration. Around 26 August 2025 malicious versions of Nx, a widely used JavaScript build tool, were published to npm and stole GitHub and npm tokens on install. The malware also looked for installed AI command-line tools (Claude, Gemini and Amazon Q) and ran them to search the disk for crypto wallet and keystore files, .env files and SSH keys, then published the results to repos in the victim's own GitHub account. Wiz counted over 1,700 users with leaked secrets and over 6,700 private repos made public, but saw no successful crypto theft, partly because the AI tools often refused. Anyone who installed the bad versions should rotate tokens and move funds from wallet files on that machine. ## Am I affected? You may be affected if you or your CI installed Nx 20.9.0, 20.11.0, 20.12.0, 21.5.0, 21.6.0, 21.7.0 or 21.8.0 in late August 2025. A new repo named like 's1ngularity-repository' in your GitHub account means the malware ran. ## What to do now - Make any s1ngularity repos private or delete them, then rotate GitHub, npm, cloud and AI API tokens. - From a clean device, move funds from any wallet whose keystore, seed or key file was on that machine. - Upgrade to a clean Nx version. ## How to avoid this - Don't keep wallet files or seed phrases on developer machines; use hardware wallets. - Pin dependency versions and avoid installing brand-new releases straight into CI. - Don't leave AI CLIs able to run without permission prompts, and keep them away from folders that hold secrets. ## Sources - s1ngularity's Aftermath: AI, TTPs, and Impact in the Nx Supply Chain Attack (Wiz, 2025-09-03): https://www.wiz.io/blog/s1ngularitys-aftermath - AI-powered malware hit 2,180 GitHub accounts in s1ngularity attack (BleepingComputer, 2025-09-06): https://www.bleepingcomputer.com/news/security/ai-powered-malware-hit-2-180-github-accounts-in-s1ngularity-attack/ Full record: https://drains.watch/i/nx-s1ngularity-npm-malware-ai-cli-wallet-search-aug-2025 · JSON: https://drains.watch/i/nx-s1ngularity-npm-malware-ai-cli-wallet-search-aug-2025.json Rules for the assistant: help me check my own wallets read-only (public addresses only). Never ask for or handle a seed phrase or private key. Point me to official revoke tools and the wallet's own support.