← Supply-Chain Attack Compendium

nx-build

Incident Summary

Nx Build "s1ngularity" Supply Chain Attack

The s1ngularity incident began with a vulnerable Nx GitHub Actions workflow that combined pull_request_target privileges with shell injection in pull-request metadata. The attacker used it to trigger publish.yml, run a malicious commit that leaked the npm token, and publish 19 malicious nx and @nx package versions. The postinstall payload harvested developer, GitHub/npm, SSH, environment, and wallet secrets, used local AI CLI tools to help find sensitive files, and exfiltrated data through public s1ngularity-repository GitHub repos. It also appended a shutdown command to shell startup files. Nx Console VS Code versions 18.63.x-18.65.x widened exposure by running nx@latest during the malicious publish window.

Date
2025-08-26 to 2025-08-27
Category
Open Source
Target Surface
Package registry
Insertion Phase
distribution
Impact
Data Exfiltration
Cause
CI/CD Exploit

What Was Affected

Package nx-build
LanguageJavaScript
ComponentBuild Tool
Artifact typesource archive
Domain typepackage host
Domain npmjs.com
Repository github.com/nrwl/nx

Compromised Versions

Incident Context

Motive
Credential Theft/Data Exfiltration
Attribution
Third Party
Transitive
No
User Impact
0
Observed Duration
1 days

Evidence

Compromised Artifacts

Current Artifacts and Analysis

Indicators and Changes

Commits

External References

Source Data

Source record: oss/nx-build/meta.yaml