@asyncapi/generator (npm) · Malicious Code
Affects @asyncapi/generatorSource GCVE Database
Rated by Threat Radar
Data as of 15 Jul 2026, 12:51 UTC
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npm@asyncapi/generator | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
The last known safe version is 3.3.0. Users should immediately remove affected versions (=2.8.5, =2.8.6, =3.3.1) of @asyncapi/generator from their systems. Given the full compromise risk, all secrets, credentials, and keys stored on affected machines must be rotated from a separate, trusted environment. Because the malware establishes persistence and may have caused further system compromise, a full system forensic analysis and remediation is recommended. Users should monitor vendor advisories for updates. Removal of the package alone is insufficient to ensure system integrity.
Description
@asyncapi/generator versions 2.8.5, 2.8.6, and 3.3.1 were compromised in a supply-chain attack known as the "Miasma RAT" campaign. Malicious code was injected via whitespace hiding in a legitimate source file, which spawns a detached Node.js child process that downloads and executes a remote RAT binary. The malware establishes persistence by dropping a backdoor script and steals sensitive credentials and secrets including browser credentials, SSH keys, npm tokens, GitHub CLI credentials, AWS secrets, and cryptocurrency wallets. The attacker also uses a command-and-control server and an embedded Ethereum smart-contract address for potential on-chain command or data exfiltration. The last known safe version is 3.3.0. Systems with this package installed should be considered fully compromised.
References
- github.com/advisories/GHSA-9658-p648-rc4q (opens in a new tab)
- aikido.dev/blog/shai-hulud-strikes-again-hitting-zapier-ensdomains (opens in a new tab)
- wiz.io/blog/shai-hulud-2-0-ongoing-supply-chain-attack (opens in a new tab)
- stepsecurity.io/blog/sha1-hulud-the-second-coming-zapier-ens-domains-and-other-prominent-npm-packages-compromised (opens in a new tab)
- npmjs.com/package/@asyncapi/generator/v/3.3.1 (opens in a new tab)
- safedep.io/asyncapi-generator-supply-chain-attack-miasma-rat/ (opens in a new tab)
- github.com/asyncapi/generator/issues/2184 (opens in a new tab)
- github.com/asyncapi/generator/commit/3eab3ec9304aa26081358330491d3cfeb55cc245 (opens in a new tab)