Miasma Malware Hijacks AI Coding Tool Configs and AsyncAPI npm Releases
Supply Chain Risk · 5 sources · Updated 4mo ago · First seen Jul 21, 2026

Researchers reported that the Miasma malware family is expanding from software supply-chain compromise into AI-assisted development environments, using trusted tooling to gain persistence, steal credentials, and sabotage systems. Tenable linked the campaign to Mini Shai-Hulud and a Miasma variant that modifies AI coding assistant configuration and rules files, adding SessionStart hooks and prompt-injection content so malicious actions run automatically when developers launch tools such as Claude Code, Gemini CLI, GitHub Copilot, Cursor, ChatGPT Codex, Cline, and Aider. WIRED, citing CrowdStrike research, said the malware is built to burrow into AI infrastructure, exfiltrate sensitive data, deepen access, and in some cases trigger a destructive "death switch" that locks out users while wiping or damaging files.
Semgrep separately detailed a related supply-chain intrusion in which an attacker gained push access to the asyncapi/generator repository’s next branch and used the project’s legitimate GitHub Actions release workflow to publish malicious npm packages with valid SLSA provenance through npm’s trusted-publisher integration. Affected packages included @asyncapi/generator, @asyncapi/generator-helpers, @asyncapi/generator-components, and later @asyncapi/specs; they contained an obfuscated dropper that executed on require(), launched a hidden Node.js process, fetched a second-stage payload from IPFS, and deployed Miasma v3. The malware sought GitHub, npm, PyPI, AWS, Kubernetes, SSH, browser, and macOS Keychain secrets, underscoring how attackers are abusing both package ecosystems and AI agent harness files as high-trust, low-visibility footholds in developer environments.
Why it matters
Impact assessment
This campaign affects software developers, CI/CD environments, package consumers, and organizations using AI-assisted coding tools or the compromised AsyncAPI npm packages. Impact is high because the malware combines credential theft, persistence, lateral movement, supply-chain propagation, and destructive capability, including reported file wiping and user lockout via a "death switch."
Supporting details
- Affected user populations:
- Developers using Claude Code, Gemini CLI, GitHub Copilot, Cursor, ChatGPT Codex, Cline, and Aider
- Organizations consuming compromised npm packages from the AsyncAPI ecosystem
- CI systems and internal tooling that resolve malicious dependencies
- Cloud-connected developer workstations with GitHub, npm, PyPI, AWS, Kubernetes, SSH, browser, and macOS Keychain secrets
- Severity:
- Credential theft can expose source code, package registries, cloud accounts, and cluster access
- Persistence in AI harness files creates repeated execution whenever AI coding sessions start
- Supply-chain abuse through legitimate release workflows and valid SLSA provenance increases trust and lowers detection likelihood
- Reported destructive functionality can cause operational disruption, data loss, and recovery costs
- Scope:
- Exposure is broader than a single package incident because the malware family targets npm, PyPI, AI tool configuration, and developer home directories
- The AsyncAPI incident specifically involved multiple published malicious package versions and abuse of a trusted release pipeline
- Prior related Miasma and Mini Shai-Hulud activity affected dozens to hundreds of npm packages, indicating an active and scalable ecosystem threat
- Exploitation status:
- Yes, exploitation in the wild is documented
- Semgrep reported malicious AsyncAPI package releases on July 14, 2026
- Tenable and Semgrep both described active Mini Shai-Hulud/Miasma campaigns targeting developer environments


