Documented Incident · INC-OBS-008 · Critical severity

Nx npm s1ngularity Supply Chain Attack Weaponizing Local AI CLIs to Steal Secrets

On August 26, 2025, threat actors compromised an npm publishing token via a vulnerable GitHub Actions workflow in the Nx monorepo build system and pushed malicious package versions live for roughly four hours (tracked as the s1ngularity campaign). Uniquely, the malicious `telemetry.js` post-install script checked whether developers had local AI coding CLIs installed (specifically Claude Code, Gemini CLI, and Amazon Q) and invoked them programmatically with bypass flags to search infected machines for crypto wallets, SSH keys, cloud tokens, and `.env` secrets. Stolen credentials were automatically pushed into newly created public GitHub repositories under victims' own accounts. Nx revoked tokens, unpublished compromised versions, and published a full postmortem while urging developers to rotate all local credentials.

Incident dossier metadata

Case ID
INC-OBS-008
Classification
Incident
Date
Severity
Critical
Sector
Software Development & AI Tooling
Attack vector
Supply Chain
System type
JavaScript Build Tooling & Local AI Coding CLIs
Reference URI
https://nx.dev/blog/s1ngularity-what-happened-how-we-responded-what-we-learned

Inspect INC-OBS-008 in Interactive Incidents & Cases Hub

Defensive takeaway

Disable npm lifecycle scripts by default in CI/developer environments, lock down GitHub Actions publishing workflows, and restrict headless flag invocation on local AI CLIs.

Mapped AI security techniques

Mapped defensive controls

Source citation records