AsyncAPI npm Packages: breach report and response
Multiple npm packages published under the @asyncapi namespace were found compromised and used to distribute a multi-stage botnet loader, according to reports from OX Security, SafeDep, Socket, and StepSecurity. The activity was highlighted in coverage by The Hacker News and involves four packages and specific versions that attackers leveraged to deliver malware through the software supply chain. The impacted versions include @asyncapi/generator-helpers@1.1.1, @asyncapi/generator-components@0.7.1, @asyncapi/generator@3.3.1, and @asyncapi/specs (v6.11.2 and v6.11.2-alpha.1). Any developer, CI pipeline, or production environment that installed these versions may have executed the malicious code during installation or runtime, potentially enabling follow-on payloads typical of botnet-style operations.
What Data Was Exposed
Who Is at Risk
Organizations and developers who installed the listed versions—directly or as transitive dependencies—are at risk of endpoint and CI/CD compromise, with potential exposure of sensitive data available to the infected environment (such as environment variables, API keys, tokens, or other secrets present during builds). While this incident is primarily malware delivery rather than a confirmed data breach, compromised build systems can lead to credential theft, lateral movement, or further supply-chain tampering affecting downstream releases.
How to Check If You're Affected
You can check whether your email, phone number, or password appears in known breach databases using DarkScan. Our scan is private—we never store your sensitive information.
What to Do If Your Data Was Leaked
- 1Identify exposure by searching package-lock.json/yarn.lock/pnpm-lock.yaml and CI logs for installations of the affected versions: @asyncapi/generator-helpers@1.1.1, @asyncapi/generator-components@0.7.1, @asyncapi/generator@3.3.1, @asyncapi/specs v6.11.2 and v6.11.2-alpha.1.
- 2Immediately remove or replace affected versions: pin to known-good releases (as advised by maintainers) and rebuild from a clean state; avoid using cached node_modules directories from potentially infected builds.
- 3Assume credential exposure on systems that installed the malicious packages: rotate CI secrets, npm tokens, cloud credentials, SSH keys, and API keys; invalidate long-lived tokens where possible.
- 4Perform endpoint and CI runner triage: review process execution history, suspicious child processes spawned during npm install/build steps, new persistence mechanisms, and unexpected outbound connections; isolate affected runners or hosts pending investigation.
- 5Add supply-chain guardrails: enable dependency/typosquat and malicious package scanning (e.g., Socket, SafeDep, or similar), enforce lockfile integrity, and use npm provenance/signing controls where available.
- 6Harden CI/CD: use ephemeral runners, least-privilege build permissions, segregate secrets from build steps where possible, and implement egress controls/allowlists to reduce malware callback opportunities.