A sophisticated and self-replicating supply chain attack, dubbed the Miasma worm, successfully compromised 73 Microsoft GitHub repositories on June 5, 2026. The attack leveraged compromised contributor credentials to inject a malicious payload designed to be activated by AI-powered coding assistants. The payload harvested developer credentials, enabling the worm to propagate autonomously. The incident, linked to the threat actor TeamPCP, targeted four major Microsoft GitHub organizations: Azure, Azure-Samples, Microsoft, and MicrosoftDocs. GitHub quickly disabled the affected repositories, but the event underscores a significant escalation in targeting critical developer infrastructure and the novel use of AI tools as an attack vector.
The Miasma worm represents a significant evolution in supply chain attacks, moving beyond simple code injection to a more dynamic and insidious propagation method. By targeting the interaction between developers and AI coding tools, the attackers found a novel execution trigger. The attack appears to be a continuation of a broader campaign, with evidence suggesting the threat actor maintained access from a previous compromise in May 2026.
The initial entry point was a single compromised contributor account, which was used to push a backdated commit to the Azure/durabletask repository. This commit introduced configuration files that lay dormant until a developer interacted with the repository using tools like Claude Code, Gemini CLI, Cursor, or VS Code. Upon activation, the payload exfiltrated credentials, which the worm then used to access and infect other repositories available to the compromised account. This self-replicating nature makes it particularly dangerous, as a single breach can quickly cascade across an organization's entire software ecosystem.
The attack chain demonstrates a deep understanding of modern development workflows and CI/CD pipelines.
T1078 - Valid Accounts.Azure/durabletask, was backdated to evade simple timeline analysis. The payload was designed to execute via a hook or trigger within AI coding assistants when they parsed the repository's code or configuration. This is a novel form of T1059 - Command and Scripting Interpreter.T1070.006 - Timestomp) was a clear attempt to hide the malicious changes within the repository's history.T1555 - Credentials from Password Stores.T1195.001 - Compromise Software Supply Chain).The Miasma worm is assessed as a variant of the Mini Shai-Hulud worm, which was open-sourced by TeamPCP. This has led to its proliferation and modification by various actors, with related malicious repositories appearing on GitHub under names like "Miasma: The Spreading Blight" and "Hades - The End for the Damned".
The immediate impact was the compromise of 73 repositories containing source code and documentation for critical Microsoft services, including Azure and Windows. While GitHub's rapid response in disabling the repositories mitigated further spread, the potential for widespread damage was immense. Had the worm propagated further, it could have injected malicious code into official software releases, leading to a massive downstream impact on Microsoft's customers.
This incident erodes trust in the software supply chain and forces organizations to re-evaluate the security of their development environments, especially with the increasing integration of third-party AI tools. The operational impact on Microsoft involved an immediate freeze on the affected repositories, requiring extensive security audits, code reviews, and credential rotation for all potentially exposed developers before they could be brought back online.
No specific file hashes, IP addresses, or domains were mentioned in the source articles.
Security teams may want to hunt for the following patterns to detect similar activity:
git commit --date='YYYY-MM-DD'--date flag to backdate commits, which is an unusual practice./.vscode/settings.jsonapi.github.comGitHub Audit Logrepo.config_enable or repo.config_disable events from unexpected user accounts or IP ranges.User Geolocation Logon Pattern Analysis (D3-UGLPA) can help identify anomalous access patterns.System File Analysis (D3-SFA) can be adapted to source code repositories.M1026 - Privileged Account Management.M1032 - Multi-factor Authentication.Application Configuration Hardening (D3-ACH).Miasma framework leaked, spawning 'Hades' variant. Attack expanded to 19 PyPI packages and hundreds across npm, with a new 'on-open' IDE trigger.
Enforcing MFA on all developer accounts can prevent attackers from using stolen credentials for initial access and lateral movement.
Implement least-privilege access for developer accounts and CI/CD service principals to limit the blast radius of a compromised account.
Enforce signed commits to ensure the integrity and provenance of code changes, making it harder for an attacker to inject malicious code anonymously.
Run AI coding assistants and other development tools in sandboxed environments with restricted permissions to prevent them from accessing sensitive credentials.
Train developers to recognize the signs of a compromised account and the risks associated with third-party development tools.
Mandate the use of phishing-resistant Multi-Factor Authentication, such as FIDO2 security keys or hardware tokens, for all access to source code management systems like GitHub. This directly counters the attacker's use of compromised credentials (T1078) for initial access. While password-based MFA (TOTP) is better than nothing, hardware-based keys are essential for high-value developer accounts, as they are not susceptible to credential phishing. This should be enforced not only for the GitHub web UI but also for all Git CLI and API operations. Implementing this control would have likely prevented the initial malicious commit, stopping the attack chain before it began.
Implement a strict principle of least privilege for all developer and service accounts within GitHub. A single compromised account should not have write access to 73 repositories, especially critical ones. Use GitHub's team-based permissions to grant access on a need-to-know basis. For critical repositories like Azure/durabletask, enforce branch protection rules that require multiple, independent reviewers for all pull requests. This ensures that even if one account is compromised, a second, uncompromised party must approve any malicious code before it is merged. This granular control limits the blast radius of a single compromised credential set.
Treat AI coding tools and their plugins as untrusted, third-party code. Execute them within a sandboxed or containerized environment on developer workstations. This environment should have restricted network access and no access to local credential stores (e.g., SSH keys, Git credential managers, cloud provider tokens). By isolating the execution of these tools, organizations can dynamically analyze their behavior for suspicious activities, such as unexpected network callbacks or attempts to read sensitive files outside of the project directory. This would prevent a malicious payload triggered by an AI tool from successfully harvesting credentials and propagating.
A previous compromise occurred, suggesting the threat actor maintained access to credentials.
The Miasma worm compromises 73 Microsoft GitHub repositories using a backdated commit.
GitHub staff disabled access to the 73 affected repositories in two automated waves over 105 seconds.

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.
Help others stay informed about cybersecurity threats
Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.
Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.
Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.
Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.
Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.