Compromised AsyncAPI npm Packages Deliver Multi-Stage Botnet Malware
Four packages in the @asyncapi namespace — a popular open-source toolkit used by software developers to build and document event-driven APIs (programming interfaces that let applications communicate) — were quietly poisoned and pushed to npm (Node Package Manager, a public library where developers download reusable code), according to The Hacker News.
The attacker did not steal any passwords or publishing tokens. Instead, they gained push access to the project's code repositories and used the projects' own legitimate automated release pipelines to publish the infected versions. The resulting packages carried valid, official-looking provenance certificates — digital stamps that are supposed to confirm a package was built by the project's authorised workflow. Those stamps were technically accurate. The workflow did build the packages. The commits that triggered it just were not legitimate.
Once a developer installed one of the affected packages and their application loaded the module, a hidden implant quietly fetched an encrypted second-stage payload called Miasma from IPFS (InterPlanetary File System, a decentralised peer-to-peer file storage network). Miasma is a full command-and-control framework that supports six separate communication channels, including HTTP, Ethereum smart contracts, and peer-to-peer mesh networks — making it unusually difficult to block.
Beyond credential theft and spreading to other machines on the local network, the malware sets up persistent autostart entries across Windows, macOS, and Linux. It also carries a dead man's switch: if a monitored token is revoked, the malware wipes its own directory. It avoids systems running CrowdStrike, SentinelOne, Microsoft Defender, CarbonBlack, Cylance, Osquery, Tanium, or Qualys, and skips machines with their language set to Russian.
All five malicious versions have been removed from npm. If you or your team installed any of the affected packages, treat that machine as compromised and audit it fully.
Sources

