If you have ever installed a software package, used a browser extension, or connected a crypto wallet to a decentralized application, you are part of a supply chain—and supply chains are under attack. On August 27, 2025, the s1ngularity incident compromised the widely used Nx build system on npm, stealing thousands of developer credentials and exposing over 5,500 private code repositories. The attack even weaponized AI coding assistants to help steal secrets. If terms like supply chain attack and npm package sound foreign to you, this guide breaks down exactly what happened, why it matters for crypto users, and what you can do to protect yourself.
The Basics
A software supply chain encompasses every component, tool, and dependency that goes into building and running an application. When you install a crypto wallet, it likely depends on dozens or hundreds of third-party packages—small pieces of code written by other developers that handle specific tasks like encryption, networking, or user interface elements. The Nx build system, for example, is a popular tool used by millions of developers to manage large JavaScript and TypeScript projects.
A supply chain attack occurs when an attacker compromises one of these shared components, allowing them to distribute malicious code to everyone who uses it. Think of it like a food supply chain: if a single ingredient supplier is compromised, every product made with that ingredient becomes tainted. In software, the scale can be enormous—a single malicious npm package can affect thousands of applications and millions of users simultaneously.
In the s1ngularity attack, the attacker managed to publish malicious versions of the Nx package to npm, the world’s largest software registry. When developers installed or updated Nx, they unknowingly installed malware that scanned their computers for cryptocurrency wallets, SSH keys, and other sensitive files, then uploaded the stolen data to public repositories on GitHub.
Why It Matters
For cryptocurrency users, supply chain attacks represent a particularly insidious threat because they bypass the security measures you might already have in place. A hardware wallet is useless if the software interface you use to interact with it has been compromised. A strong passphrase offers no protection if a malicious script running on your computer reads your wallet files directly from your hard drive.
The s1ngularity attack specifically targeted cryptocurrency wallet artifacts, among other sensitive files. The malware scanned for wallet files, keystore directories, and .env files that often contain private keys and API credentials. With Bitcoin trading at approximately $111,222 and Ethereum at $4,503 on the day of the attack, even a single compromised wallet could represent a substantial financial loss.
The attack also demonstrated a disturbing new trend: the weaponization of AI tools. The malware attempted to hijack AI coding assistants like Claude Code and Gemini CLI, using them to perform reconnaissance on infected systems. This means that even the AI tools developers trust to help them write code can be turned against them.
Getting Started Guide
Step 1: Understand your exposure. If you are a developer who installed or updated any Nx packages between August 26 and August 27, 2025, you may be affected. Check your package-lock.json or yarn.lock files for the compromised versions: 20.9.0 through 20.12.0 and 21.5.0 through 21.8.0. If you are not a developer but use crypto wallets or browser extensions, you are indirectly exposed through the supply chains of the software you rely on.
Step 2: Rotate your credentials immediately. If there is any chance you were affected, change your GitHub password, revoke all personal access tokens, regenerate your npm tokens, and rotate any API keys or private keys that were stored on the affected machine. This is not optional—the stolen data includes base64-encoded credentials that are trivially decodable.
Step 3: Check for compromise indicators. Search your GitHub account for repositories named s1ngularity-repository followed by any numbers or characters. If you find any, your account was directly compromised. Also check your shell configuration files (~/.bashrc and ~/.zshrc) for suspicious shutdown commands that the malware may have appended.
Step 4: Verify your crypto wallets. Check your wallet balances and transaction histories for any unauthorized transfers. If you stored private keys or seed phrases in any file on your computer, assume they are compromised and migrate your funds to a new wallet immediately.
Step 5: Enable provenance verification. Going forward, use package managers and tools that support provenance—cryptographic proof of where a package came from and that it has not been tampered with. npm supports provenance, but it must be enabled by both package maintainers and consumers.
Common Pitfalls
Ignoring minor updates. Many supply chain attacks are delivered through routine dependency updates that users accept without scrutiny. Always review what changed before updating packages, especially in projects that handle sensitive data.
Storing secrets in plain text. The s1ngularity malware specifically targeted .env files, which are commonly used to store API keys and configuration secrets. Use a dedicated secrets manager instead of storing credentials in files on your filesystem.
Trusting AI tools blindly. The attack demonstrated that AI coding assistants can be manipulated into performing malicious actions. Be cautious about the permissions you grant to AI tools and review the code they generate or the files they access.
Assuming open source is safe by default. Open source software is scrutinized by many eyes, but that does not guarantee safety—especially when the attack vector is a compromised publishing process rather than malicious code hidden in the source repository.
Next Steps
Supply chain security is an ongoing practice, not a one-time fix. Stay informed about vulnerabilities in the tools and libraries you use by subscribing to security advisory feeds and monitoring vendor communications. Consider using tools like npm audit or Snyk to automatically scan your dependencies for known vulnerabilities.
For crypto users specifically, consider using air-gapped setups for high-value wallets—computers that have never been connected to the internet and therefore cannot be compromised by software supply chain attacks. Hardware wallets provide a partial solution, but they must be used in conjunction with a trusted software interface to be effective.
The s1ngularity attack was a watershed moment in software supply chain security. It demonstrated that the tools developers trust most—package managers, CI/CD pipelines, and even AI coding assistants—can be weaponized against them. By understanding how these attacks work and taking proactive steps to protect yourself, you can significantly reduce your risk exposure in an increasingly complex digital landscape.
Disclaimer: This article is for educational purposes only and does not constitute professional security advice. Always consult with qualified security professionals for guidance specific to your situation.
5500 private repos exposed because one npm build system got compromised. the blast radius of supply chain attacks is incomprehensible to most devs
npm still doesnt enforce provenance hashes in 2025. PyPI had the same gap and Bittensor lost 8M because of it. sigstore exists and nobody uses it
AI coding assistants being weaponized to steal secrets is the scariest part. you trust the tool that writes your code and it quietly exfiltrates your keys
the attacker weaponized AI coding assistants to steal secrets. your own dev tools turned against you. supply chain attacks have entered a new era
5500 repos exposed and npm still doesnt require 2FA for maintainers of packages with over 1M weekly downloads. the ecosystem learned nothing
The fundamental value proposition of crypto keeps getting stronger
Education is still the biggest barrier to mainstream adoption
Nkechi Obi education is the barrier but so is UX. sending crypto should be as easy as sending a text
Bear markets are for building — and builders are delivering
5500 private repos exposed through one Nx build system compromise. this is why monorepos and self-hosted runners exist. npm supply chain is held together with tape
5500 repos exposed through one npm build tool and the fix is just rotate everything. the npm ecosystem is a single point of failure for the entire JS world
Mass adoption is happening incrementally — people just don’t notice
Olga Petrov adoption creeping up while everyone argues on twitter about price. classic
the AI coding assistant part is the scariest detail. s1ngularity literally used the developers own tools against them to find and steal credentials
copilot_leak_ the AI assistant angle is what scares me most. dev teams are giving machine learning tools full repo access and nobody is auditing what those tools can exfiltrate
the fact that s1ngularity used AI coding assistants to find and steal credentials is the scariest part. your copilot literally helped the attacker
copilot_leak_ the AI assistant angle is terrifying. the attacker doesnt even need to read your code, they just ask the copilot where the secrets are stored and it happily answers
sec_pipeline_ copilot as an attack vector is the part nobody at Microsoft wants to address. your AI assistant has full codebase access and zero security boundaries
Tobias R. the copilot angle is the scariest part. your AI pair programmer has read access to every secret in the repo and can be tricked into leaking them through a poisoned dependency
5500 private repos exposed through one compromised build tool and most teams still havent rotated their API keys. supply chain security is an afterthought
5500 private repos exposed through one build tool. the crazy part is most of those repos probably have hardcoded API keys and wallet seeds that nobody has rotated yet
5500 repos exposed and most teams still havent rotated credentials. the average time to rotate a leaked API key in crypto is apparently never