Security

AsyncAPI npm Supply Chain Attack: Import-Time Malware

3 min read

Summary

Microsoft Threat Intelligence uncovered a coordinated compromise of the AsyncAPI npm organization that republished five package versions with malicious code that runs when packages are imported, not just installed. The incident matters because common mitigations like npm install --ignore-scripts do not stop this technique, putting developer workstations, CI/CD pipelines, and production services at risk if they resolved the affected versions.

Need help with Security?Talk to an Expert

Introduction

Microsoft has disclosed a significant software supply chain incident affecting the @asyncapi npm organization. The attack is notable because the malicious payload executes at import/require time, which means standard defenses such as npm install --ignore-scripts are not enough to prevent compromise.

For IT and security teams, this raises the urgency of reviewing developer environments, CI/CD pipelines, container builds, and any production workloads that may have pulled the affected package versions.

What happened

On July 14, 2026, five malicious package versions across four AsyncAPI package names were republished:

According to Microsoft, the injected loader executed immediately when a poisoned package was imported. It then spawned a detached Node.js process that fetched a second-stage payload, sync.js, from IPFS.

How the attack worked

Microsoft traced the compromise back to a misconfigured GitHub Actions workflow using pull_request_target in the asyncapi/generator repository.

Key elements of the attack chain included:

  • A malicious pull request that executed untrusted code in a privileged workflow
  • Exposure of a bot personal access token used for unauthorized pushes
  • Abuse of legitimate GitHub OIDC trusted publishing workflows
  • Publication of packages with valid provenance signatures despite unauthorized source changes
  • Delivery of a Miasma modular runtime with C2, persistence, and fallback channels

This is especially important because the packages appeared legitimate from a publishing and provenance perspective.

Why this matters for administrators

The blast radius extends beyond developers using AsyncAPI directly. Because @asyncapi/specs is a transitive dependency, downstream tools and builds may have imported the compromised code without explicit awareness.

Potentially affected environments include:

  • Developer workstations
  • Build agents and CI/CD pipelines
  • Container image build systems
  • Production services that resolved the affected versions

Microsoft Defender Antivirus detects related artifacts as Trojan:JS/MiasmStealer.SC and Trojan:Script/Supychain.A.

Organizations should act immediately:

  • Remove all five affected package versions
  • Purge npm and Yarn caches
  • Hunt for sync.js in OS-specific NodeJS masquerade directories
  • Block outbound traffic to 85.137.53.71 on ports 8080, 8081, and 8091
  • Rotate credentials accessible from systems that imported the compromised packages
  • Review GitHub Actions workflows for unsafe pull_request_target usage and overprivileged tokens

Final takeaway

This incident highlights how trusted publishing and signed provenance do not guarantee safe source changes. Security teams should treat CI/CD workflow hardening, dependency monitoring, and credential rotation as immediate priorities after any exposure to the affected AsyncAPI packages.

Need help with Security?

Our experts can help you implement and optimize your Microsoft solutions.

Talk to an Expert

Stay updated on Microsoft technologies

AsyncAPInpmsupply chain attackGitHub Actionsmalware

Related Posts

Security

Microsoft Digital Defense Report 2026: Key Security Insights

Microsoft's 2026 Digital Defense Report highlights how AI and growing system interconnectedness are reshaping both cyberattacks and defense strategies. The report emphasizes that organizations must secure AI, identities, data, and cloud environments together while improving signal correlation across tools to detect modern threats faster.

Security

Government Cyber Risk in 2026: Microsoft’s 5 Priorities

Microsoft says government agencies were the most targeted sector in 2026, accounting for 27% of observed cyber threat activity. The company urges public-sector leaders to focus on five resilience priorities, including faster response, AI security, bidirectional information sharing, and planning for incidents that spread across suppliers and essential services.

Security

Microsoft Ignite 2026 Security Guide: Key Sessions

Microsoft has published its security guide for Microsoft Ignite 2026, highlighting AI-first security themes, a dedicated Security Pre-Day, and technical sessions focused on securing identities, data, devices, clouds, and AI agents. For IT and security teams, the event offers an early look at Microsoft’s roadmap and practical guidance for building an AI-ready security strategy.

Security

CVE-2026-73570: Zimbra Mail Server Exploitation

Microsoft is tracking active exploitation of CVE-2026-73570, an unauthenticated command injection flaw affecting internet-facing Zimbra mail servers with the optional zimbra-snmp package installed and SNMP notifications enabled. The issue can lead to web shell deployment, privilege escalation, mailbox data theft, and persistent remote access, making immediate patching and configuration review critical for administrators.

Security

Phishing Abuses RMM Tools for Persistent Access

Microsoft security researchers observed phishing campaigns in July 2026 that used a legitimate MSP360 RMM installer disguised as meeting invites, PDF updates, and other lures to gain remote access. Attackers then deployed ConnectWise ScreenConnect for redundant persistence, highlighting the need for tighter controls on remote management tools and better detection of unapproved RMM activity.

Security

Azure DevOps Attack Path Exposed in New DART Report

Microsoft’s latest DART cyberattack report shows how a single compromised identity was used to access Azure DevOps, alter pipelines, and harvest Kubernetes credentials. The case highlights how tightly connected identity, DevOps, and cloud environments can let attackers move far beyond source code, making stronger identity and pipeline controls essential.