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.
the attacker weaponized AI coding assistants to steal secrets. your own dev tools turned against you. supply chain attacks have entered a new era
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
Mass adoption is happening incrementally — people just don’t notice
Olga Petrov adoption creeping up while everyone argues on twitter about price. classic