Malicious code in @asyncapi/generator-helpers (npm)
The @asyncapi/generator-helpers npm package version 1.1.1 was compromised in a supply-chain attack known as the "Miasma RAT" campaign. Malicious code was hidden using whitespace obfuscation and executes automatically when the package is loaded, spawning a detached Node.js process that downloads and runs a remote RAT binary. This malware establishes persistence by dropping a backdoor script and steals sensitive credentials including browser data, 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 command routing or data exfiltration. The last known safe version is 1.1.0. Other affected versions include 0.2.1 and 0.2.2. Systems with this package installed should be considered fully compromised.
AI Analysis
Technical Summary
@asyncapi/generator-helpers version 1.1.1 was trojanized as part of the "Miasma RAT" supply-chain attack on 2026-07-14. The malicious code was appended invisibly via trailing whitespace in a legitimate source file, executing an obfuscated payload at module load. This payload spawns a detached child Node.js process that downloads the Miasma RAT binary from IPFS, writes it to a platform-specific location, and executes it. The RAT establishes persistence by dropping a backdoor script named sync.js in user-specific application data directories. It harvests a wide range of sensitive credentials and secrets, including browser credentials, SSH keys, npm tokens, GitHub CLI credentials, AWS secrets, and cryptocurrency wallets. Communication with a command-and-control server in the Netherlands is established, and an Ethereum smart-contract address is embedded, suggesting advanced exfiltration or command mechanisms. The attack is linked to the Sha1-Hulud NPM worm, which also propagates via GitHub actions and may destroy user data. The last safe version is 1.1.0; versions 0.2.1, 0.2.2, and 1.1.1 are affected.
Potential Impact
Any system with the affected versions of @asyncapi/generator-helpers installed is fully compromised. The malicious code executes automatically upon package load, allowing remote attackers to run arbitrary code via the Miasma RAT. This RAT steals a broad range of sensitive credentials and secrets, including browser data, SSH keys, npm tokens, GitHub CLI credentials, AWS secrets, and cryptocurrency wallets. Persistence is established on the host, enabling ongoing unauthorized access. The attacker controls the infected system via a command-and-control server and may use an Ethereum smart-contract for command or data exfiltration. The compromise may also lead to destruction of user data and propagation of the malware to other npm packages and GitHub repositories owned by the victim.
Mitigation Recommendations
The last known safe version is 1.1.0. Users should immediately remove all affected versions (=0.2.1, =0.2.2, =1.1.1) of @asyncapi/generator-helpers from their environments. Because the malware establishes persistence and steals credentials, all secrets, tokens, and keys stored on compromised systems should be considered exposed and rotated immediately from a clean, uncompromised device. Full system compromise is likely, so affected hosts should be thoroughly investigated and potentially rebuilt. There is no official patch or fix beyond upgrading to a safe version. Users should also audit their GitHub repositories and npm packages for signs of further compromise or propagation. No cloud service remediation applies as this is a client-side npm package compromise.
Malicious code in @asyncapi/generator-helpers (npm)
Description
The @asyncapi/generator-helpers npm package version 1.1.1 was compromised in a supply-chain attack known as the "Miasma RAT" campaign. Malicious code was hidden using whitespace obfuscation and executes automatically when the package is loaded, spawning a detached Node.js process that downloads and runs a remote RAT binary. This malware establishes persistence by dropping a backdoor script and steals sensitive credentials including browser data, 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 command routing or data exfiltration. The last known safe version is 1.1.0. Other affected versions include 0.2.1 and 0.2.2. Systems with this package installed should be considered fully compromised.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
@asyncapi/generator-helpers version 1.1.1 was trojanized as part of the "Miasma RAT" supply-chain attack on 2026-07-14. The malicious code was appended invisibly via trailing whitespace in a legitimate source file, executing an obfuscated payload at module load. This payload spawns a detached child Node.js process that downloads the Miasma RAT binary from IPFS, writes it to a platform-specific location, and executes it. The RAT establishes persistence by dropping a backdoor script named sync.js in user-specific application data directories. It harvests a wide range of sensitive credentials and secrets, including browser credentials, SSH keys, npm tokens, GitHub CLI credentials, AWS secrets, and cryptocurrency wallets. Communication with a command-and-control server in the Netherlands is established, and an Ethereum smart-contract address is embedded, suggesting advanced exfiltration or command mechanisms. The attack is linked to the Sha1-Hulud NPM worm, which also propagates via GitHub actions and may destroy user data. The last safe version is 1.1.0; versions 0.2.1, 0.2.2, and 1.1.1 are affected.
Potential Impact
Any system with the affected versions of @asyncapi/generator-helpers installed is fully compromised. The malicious code executes automatically upon package load, allowing remote attackers to run arbitrary code via the Miasma RAT. This RAT steals a broad range of sensitive credentials and secrets, including browser data, SSH keys, npm tokens, GitHub CLI credentials, AWS secrets, and cryptocurrency wallets. Persistence is established on the host, enabling ongoing unauthorized access. The attacker controls the infected system via a command-and-control server and may use an Ethereum smart-contract for command or data exfiltration. The compromise may also lead to destruction of user data and propagation of the malware to other npm packages and GitHub repositories owned by the victim.
Mitigation Recommendations
The last known safe version is 1.1.0. Users should immediately remove all affected versions (=0.2.1, =0.2.2, =1.1.1) of @asyncapi/generator-helpers from their environments. Because the malware establishes persistence and steals credentials, all secrets, tokens, and keys stored on compromised systems should be considered exposed and rotated immediately from a clean, uncompromised device. Full system compromise is likely, so affected hosts should be thoroughly investigated and potentially rebuilt. There is no official patch or fix beyond upgrading to a safe version. Users should also audit their GitHub repositories and npm packages for signs of further compromise or propagation. No cloud service remediation applies as this is a client-side npm package compromise.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2025-190657
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-gw3q-hxvp-x7vm"]
- Ecosystems
- ["npm"]
Threat ID: 6a577ee168715ace43b40670
Added to database: 07/15/2026, 12:36:49 UTC
Last enriched: 07/15/2026, 12:51:26 UTC
Last updated: 09/08/2026, 02:14:47 UTC
Views: 12
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.