Skip to main content
Mallory
← Back to News
package-repository-poisoningcredential-stealer-activitybuild-pipeline-compromiseai-platform-security

Miasma Malware Hijacks AI Coding Tool Configs and AsyncAPI npm Releases

Supply Chain Risk · 5 sources · Updated 4mo ago · First seen Jul 21, 2026

Miasma Malware Hijacks AI Coding Tool Configs and AsyncAPI npm Releases

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
Does this reach your builds?Trace attribution and downstream blast radius.
Trace the chain
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · May 18, 2026 – Jul 21, 2026
  1. Jul 21, 20264mo ago

    Researchers describe Miasma targeting AI coding and developer environments

    Research reported on July 21, 2026 described the Mini Shai-Hulud campaign and its Miasma variant as targeting developer environments by modifying AI coding assistant configuration and rules files for persistence and automatic malicious execution. The reporting said the malware sought credentials, deeper access, data exfiltration, and in some cases destructive effects including a lockout-and-wipe 'death switch.'

    Securing AI agent harness files from config attacks | Tenable®
  2. Jul 14, 20265mo ago

    Attacker publishes malicious AsyncAPI npm packages via compromised GitHub repo

    On July 14, 2026, an attacker with push access to the asyncapi/generator repository’s next branch used the project’s legitimate GitHub Actions release workflow and npm trusted-publisher integration to publish malicious packages with valid SLSA provenance. The compromised packages included @asyncapi/generator, @asyncapi/generator-helpers, @asyncapi/generator-components, and later @asyncapi/specs, carrying an obfuscated dropper that fetched and deployed Miasma v3.

    Miasma v3 Hits AsyncAPI: Is NPM Hardening Working? | Semgrep
  3. Jun 4, 20266mo ago

    Semgrep reports Miasma v2 compromising 57 npm packages

    On June 4, 2026, Semgrep reported that the self-propagating Miasma v2 npm malware had compromised 57 packages across more than 286 malicious versions. The report said the worm used a malicious binding.gyp file to execute during npm install without lifecycle scripts, and detailed credential theft, AI-assistant persistence, forged provenance, and published IOCs and affected package lists.

    Miasma v2: Self-Spreading npm Worm Now Uses Malicious binding.gyp file and Compromises 57 Packages | Semgrep
  4. May 18, 20266mo ago

    Compromised maintainer injects malware into antv, timeago, and size-sensor packages

    On May 18, 2026, Semgrep reported a supply-chain compromise of an npm maintainer that led to malicious dependencies being injected into widely used packages including the @antv/* namespace, timeago.js, and size-sensor. The exposure window enabled further spread across hundreds of npm ecosystem packages, consistent with renewed Mini Shai-Hulud worm activity.

    Mini Shai-Hulud Resurfaces; Compromised Maintainer of antv, timeago, and size-sensor Packages Revives Worm Activity | Semgrep
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Affected products

6 linked
Claude CodeCursorNpmCursorClineGemini-Cli

Organizations

1 linked
AsyncAPI Initiative

Observables

10 linked

Indicator values are masked on this page. View all 10 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?See attribution and downstream blast radius, and whether this package or vendor reaches your builds.
Trace the Supply Chain
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.