Malicious code in @asyncapi/specs (npm)
The @asyncapi/specs npm package versions 6.11.2-alpha.1 and 6.11.2 were compromised as part of the Miasma RAT supply-chain attack on 2026-07-14. Malicious code was injected directly into the package's index.js, which downloads and executes a remote RAT binary from IPFS, establishing persistence and stealing sensitive credentials and secrets. The last known safe version is 6.11.1. This malicious behavior is inconsistent with the package's intended functionality and results in full system compromise upon installation or use.
AI Analysis
Technical Summary
The @asyncapi/specs package versions 6.11.2-alpha.1 and 6.11.2 were maliciously altered in a supply-chain attack known as the Miasma RAT campaign. The attacker prepended obfuscated malicious code to index.js that, when the package is loaded, spawns a detached child process to download a RAT binary from an IPFS gateway. This RAT is written to a platform-specific hidden directory and executed, establishing persistence via a backdoor named sync.js. The RAT harvests browser credentials, SSH keys, npm tokens, GitHub CLI credentials, AWS secrets, and cryptocurrency wallets, and communicates with a command-and-control server in the Netherlands. The attack also embeds an Ethereum smart-contract address, suggesting on-chain command or data exfiltration. The last safe version before compromise is 6.11.1. The package's legitimate functionality does not require such code, indicating malicious intent. Removal of the package alone may not fully remediate the infection due to established persistence and potential full system compromise.
Potential Impact
Systems with the compromised @asyncapi/specs versions installed or running are considered fully compromised. The malicious code enables remote code execution, persistence, and credential theft including sensitive tokens and keys for various services and wallets. This can lead to unauthorized access to cloud accounts, source code repositories, cryptocurrency theft, and further propagation of the malware. The attacker gains full control over the infected system and can exfiltrate data or execute arbitrary commands remotely.
Mitigation Recommendations
No official patch or fix is currently documented for the compromised versions. The last known safe version is 6.11.1; users should downgrade or reinstall this version. Immediate removal of the compromised package versions 6.11.2-alpha.1 and 6.11.2 is recommended. Due to the high likelihood of full system compromise, all secrets and credentials stored on affected machines should be considered compromised and rotated immediately from a separate, trusted environment. Complete system reimaging or forensic analysis is advised to ensure removal of all malicious components and persistence mechanisms. Monitor vendor advisories for any official remediation updates.
Malicious code in @asyncapi/specs (npm)
Description
The @asyncapi/specs npm package versions 6.11.2-alpha.1 and 6.11.2 were compromised as part of the Miasma RAT supply-chain attack on 2026-07-14. Malicious code was injected directly into the package's index.js, which downloads and executes a remote RAT binary from IPFS, establishing persistence and stealing sensitive credentials and secrets. The last known safe version is 6.11.1. This malicious behavior is inconsistent with the package's intended functionality and results in full system compromise upon installation or use.
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
The @asyncapi/specs package versions 6.11.2-alpha.1 and 6.11.2 were maliciously altered in a supply-chain attack known as the Miasma RAT campaign. The attacker prepended obfuscated malicious code to index.js that, when the package is loaded, spawns a detached child process to download a RAT binary from an IPFS gateway. This RAT is written to a platform-specific hidden directory and executed, establishing persistence via a backdoor named sync.js. The RAT harvests browser credentials, SSH keys, npm tokens, GitHub CLI credentials, AWS secrets, and cryptocurrency wallets, and communicates with a command-and-control server in the Netherlands. The attack also embeds an Ethereum smart-contract address, suggesting on-chain command or data exfiltration. The last safe version before compromise is 6.11.1. The package's legitimate functionality does not require such code, indicating malicious intent. Removal of the package alone may not fully remediate the infection due to established persistence and potential full system compromise.
Potential Impact
Systems with the compromised @asyncapi/specs versions installed or running are considered fully compromised. The malicious code enables remote code execution, persistence, and credential theft including sensitive tokens and keys for various services and wallets. This can lead to unauthorized access to cloud accounts, source code repositories, cryptocurrency theft, and further propagation of the malware. The attacker gains full control over the infected system and can exfiltrate data or execute arbitrary commands remotely.
Mitigation Recommendations
No official patch or fix is currently documented for the compromised versions. The last known safe version is 6.11.1; users should downgrade or reinstall this version. Immediate removal of the compromised package versions 6.11.2-alpha.1 and 6.11.2 is recommended. Due to the high likelihood of full system compromise, all secrets and credentials stored on affected machines should be considered compromised and rotated immediately from a separate, trusted environment. Complete system reimaging or forensic analysis is advised to ensure removal of all malicious components and persistence mechanisms. Monitor vendor advisories for any official remediation updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2025-190643
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-5jj9-3vg7-7785"]
- Ecosystems
- ["npm"]
Threat ID: 6a577ee168715ace43b40666
Added to database: 07/15/2026, 12:36:49 UTC
Last enriched: 07/15/2026, 12:51:12 UTC
Last updated: 08/31/2026, 23:54:42 UTC
Views: 16
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.