Nx s1ngularity package compromise

Nx says malicious versions of its packages tried local AI CLIs to find secrets

Disclosed August 2025Technology

The record

On August 26, 2025, attackers used a stolen npm token to publish malicious versions of the Nx build system, Nx said. According to Nx, a post-install script scanned developers' machines for secrets, attempted to use locally installed AI tools such as Claude and Gemini to assist, and uploaded the results to public GitHub repositories. Nx said the packages were live for about four hours.

  • Compromised AI tool or supply chain
  • Deceived or targeted
  • Malicious model, package or extension
  • No public charges
Organisation
Nx (Nrwl) and developers who installed affected versions
Insider
Developers' local AI coding CLIs, invoked by malicious package code; Nx named Claude and Gemini
Method
Nx said attackers stole its npm publishing token through a GitHub Actions injection flaw and published malicious versions whose post-install script scanned systems for sensitive data, attempted to use local AI tools to help, and uploaded results to public GitHub repositories.
When
August 26, 2025
How it was found
Not publicly stated
Outcome
No charges reported. Nx said npm removed the malicious packages after about 4 hours, and it published a postmortem on September 5, 2025.
Damage
Nx said the malicious versions were live for 4 hours on a package with about 6 million weekly installs, and that Nx Cloud was not affected.

What each party says

  • Nx: Nx said attackers "exploited a GitHub Actions injection vulnerability to steal our NPM publishing token."

    Confirmed, per Nx

  • Nx: Nx said the post-install script "attempted to use local AI tools (like Claude and Gemini)"; how far those tools succeeded is not established in the cited source.

    Confirmed, per Nx

Sources

Every fact above was checked against these on November 28, 2026.

  1. S1ngularity: What Happened, How We Responded, What We Learned (opens in a new tab)Nx, company statement, September 5, 2025

How Above reads a case

Above's AI investigators work each insider and AI-agent signal to a verdict, with its evidence and reasoning.