# Miasma Supply Chain Worm Infiltrates 73 Microsoft GitHub Repositories in Escalating Campaign


A sophisticated supply chain attack has compromised 73 Microsoft repositories on GitHub, marking a significant escalation in the ongoing Miasma campaign. The intrusion leveraged a GitHub account that had previously been compromised during a separate Miasma attack on Microsoft last month, suggesting attackers maintained persistent access to critical development infrastructure and are exploiting established footholds to maximize reach.


## The Threat


Microsoft's security teams detected unauthorized code insertions and malicious modifications across 73 repositories spanning multiple product lines and development teams. The attack represents a critical supply chain vulnerability—any code merged from these compromised repositories could potentially affect downstream users, dependent applications, and enterprise deployments that integrate Microsoft libraries and frameworks.


Key statistics from the incident:

  • 73 repositories compromised
  • Attack vector: Previously compromised GitHub account (reused from earlier Miasma attack)
  • Scope: Multiple Microsoft product teams and codebases
  • Duration: Attack persisted until detection; timeline of compromise still under investigation

  • The scale and targeting precision suggest sophisticated threat actors with deep knowledge of Microsoft's repository structure, development workflows, and account security gaps.


    ## Background and Context


    The Miasma campaign represents a new category of supply chain threat—one that doesn't rely on exploiting zero-day vulnerabilities in build pipelines or package management systems, but rather on compromising human-controlled access vectors: developer accounts, CI/CD credentials, and authentication tokens.


    Last month's initial Miasma attack on Microsoft resulted in a compromised GitHub account that should have been thoroughly remediated. The fact that the same account was exploited again suggests either:


    1. Incomplete account recovery – The account remained active on additional repositories despite initial containment efforts

    2. Credential reuse – Attackers maintained backup access methods (secondary credentials, API tokens, SSH keys)

    3. Persistence mechanisms – Malware or backdoors left on systems provided continued unauthorized access


    This pattern mirrors historical supply chain attacks like the SolarWinds incident and the 3CX breach, where attackers gain entry through one path, establish persistence, and then expand laterally across organizational infrastructure over weeks or months before detection.


    ## Technical Details


    Attack Methodology


    The Miasma worm operates as a multi-stage supply chain weapon. Unlike traditional malware that directly compromises end systems, Miasma injects malicious code directly into source repositories, where it remains dormant until:


  • Code is compiled and built into release artifacts
  • Dependencies are pulled by downstream developers
  • Libraries are integrated into production systems

  • Repository Compromise Pattern


    Analysis indicates the attackers employed several techniques to maintain persistence:


  • Code commits directly to branches without raising pull requests (bypassing review gates)
  • Workflow file modifications to alter CI/CD pipeline behavior
  • Dependency injection into package manifests (package.json, .csproj files)
  • Fork operations creating hidden mirrors of repositories for backup access

  • Worm Characteristics


    Unlike traditional worms that self-replicate across networks, Miasma spreads through the software supply chain:

  • Propagates when developers pull from compromised repositories
  • Executes during build processes if not properly sandboxed
  • Transfers to production through legitimate release pipelines
  • Reaches end-users through official distribution channels (NuGet, npm, etc.)

  • ## Implications for Organizations


    Risk Categories by Exposure Level


    | Organization Type | Risk Level | Exposure |

    |---|---|---|

    | Microsoft employees / Azure subscriptions | CRITICAL | Direct access to compromised code |

    | Azure Stack users | HIGH | Potential backdoors in platform code |

    | .NET / Windows developers | HIGH | Compromised library dependencies |

    | Enterprise software using Microsoft SDKs | MEDIUM-HIGH | Transitive dependency risk |

    | General end-users | MEDIUM | Risk depends on downstream patch speed |


    Potential Attack Outcomes


    If malicious code persisted undetected in merged pull requests, attackers could have:


  • Installed persistence mechanisms in Windows or .NET runtimes
  • Exfiltrated source code or build secrets from the development environment
  • Injected backdoors into widely-used libraries like ASP.NET Core, Entity Framework, or .NET Standard
  • Established beachhead access into downstream enterprise environments

  • The broader implication is severe: a single compromised GitHub account cascaded into 73 separate breach points, each with potential to affect millions of downstream users.


    ## Recommendations


    Immediate Actions for Microsoft


    1. Full account audit – Review all GitHub accounts with write access to repositories, checking for suspicious activity, secondary credentials, and API tokens

    2. Repository forensics – Perform commit archaeology on all 73 repositories to identify exactly when code was modified and what changes were introduced

    3. Supply chain alerts – Notify all downstream users and integrators of repositories that may have pulled malicious code

    4. Dependency tracing – Identify all packages published with potentially compromised code and issue security advisories


    Recommendations for Organizations


  • Implement code signing verification – Require cryptographic signatures on all commits and verify signatures before merging
  • Enable branch protection rules – Enforce peer review, require status checks, and block direct pushes to main branches
  • Audit CI/CD pipelines – Review build workflows for suspicious modifications or unexpected dependencies
  • Monitor GitHub audit logs – Enable organization-level audit logging and set alerts for unusual commit patterns
  • Dependency verification – Pin specific versions of Microsoft dependencies and verify checksums before deployment
  • Incident response planning – Develop playbooks for responding to supply chain compromises in critical dependencies

  • ## HackWire Analysis


    The Miasma campaign reveals a critical vulnerability in how we conceptualize "account recovery" after security breaches. Microsoft detected and presumably contained the initial attack last month, yet the same account remained sufficiently compromised to facilitate a second, broader attack. This suggests that current incident response practices treat account compromise as a binary state—either "secured" or "breached"—when the reality is far more nuanced.


    What's striking is not that attackers regained access, but that they apparently maintained it without being detected for weeks. This reflects a broader pattern we're seeing across the industry: attackers are shifting from rapid exploitation (smash-and-grab ransomware) to patient, persistent campaigns that prioritize stealth over speed. A compromised GitHub account costs nothing to maintain and offers exponential payoff through supply chain leverage.


    The second-order risk deserves more attention than it typically receives: this attack wasn't targeting Microsoft's customers directly—it was targeting their developers' computers. Every developer who pulls code from a compromised repository potentially installs the malicious code into their local environment, their CI/CD pipelines, and their build artifacts. The blast radius compounds with each layer of integration.


    Organizations should ask themselves: do you know every GitHub account with write access to your critical repositories? Can you definitively prove none of them are compromised? For most enterprises, the honest answer is no. This incident should be a forcing function to implement cryptographic code signing verification, restrict commit privileges aggressively, and treat GitHub accounts with the same security rigor as production credentials.


    — HackWire Editorial


    ## Related Coverage


  • Read more in our [Supply Chain Security](https://www.hackwire.news/category/supply-chain) coverage
  • Cross-reference with [Vulnerabilities](https://www.hackwire.news/category/vulnerabilities) and [Malware](https://www.hackwire.news/category/malware)
  • Stay current via the [HackWire homepage](https://www.hackwire.news/)