AI Explainers Security

Supply Chain Compromise: Mitigation Guidance for Open Source Package Attacks

A supply chain compromise now more often starts inside an open source registry than inside a vendor's build server.

Abstract illustration of a software dependency network showing a supply chain compromise spreading through connected packages

A single tampered package can now travel through thousands of downstream projects before a maintainer even notices something is wrong. That is the pattern Google Threat Intelligence Group (GTIG) and Mandiant describe in new mitigation guidance for supply chain compromise, drawing on incident response work across a wave of open source campaigns in 2025 and early 2026. The guidance shifts attention away from the boardroom-level breaches that defined the last decade and toward the registries developers touch every day.

For years, GTIG notes, the industry’s mental model of supply chain compromise was shaped by a small number of watershed cases: the 2020 SolarWinds intrusion attributed to the Russian actor GTIG tracks as ICE RELIC, and the 2023 3CX compromise linked to North Korea’s UNC4736. Those were slow, targeted operations aimed at software vendors and their distribution pipelines. GTIG’s newer data points to a different, faster-moving threat sitting inside package managers like npm, PyPI, and Docker Hub.

Open Source Repositories Become the Preferred Target

GTIG assesses with high confidence that open source supply chain compromise expanded significantly in scale during 2025 and early 2026, driven partly by self-propagating worms and repeated, iterative compromises of the same ecosystems. Mandiant’s incident response teams observed this firsthand while supporting customers hit by these campaigns.

One example GTIG highlights is UNC6780, a threat actor also referred to as TeamPCP, which ran extensive compromise operations against PyPI, npm, and Docker Hub between February and May 2026. The group abused the pull_request_target trigger in GitHub Actions to obtain repository secrets and write access, then used compromised packages to deploy credential stealers such as SANDCLOCK. GTIG reports that UNC6780 attempted to pivot from compromised AI software into broader corporate networks during some engagements, and monetized stolen credentials both through direct sale and through partnerships with ransomware and extortion groups.

A second case shows how fast a single compromised dependency can spread. In March 2026, a malicious update to the widely used axios package was traced to a maintainer account compromised through social engineering. GTIG attributes the resulting WAVESHAPER.V2 backdoor to the North Korean actor now tracked as MIDNIGHT NEPTUNE, formerly UNC1069. The npm registry removed the malicious versions within roughly three hours, but axios carries more than 100 million weekly downloads and feeds tens of thousands of other packages as a dependency. GTIG says it supported affected customers across 15 industry verticals and 13 countries, and open sources reported the compromise spreading into several downstream packages before removal.

OpenSSF, the Linux Foundation’s open source security collaboration, provides independent numbers that back up GTIG’s assessment: reported malicious open source packages grew by 1,444% from 2024 to 2025. That figure describes detection volume rather than confirmed breach impact, but the direction lines up with what GTIG and Mandiant describe from direct incident work.

How AI Coding Tools Are Widening the Attack Surface

GTIG expects artificial intelligence to accelerate this trend rather than slow it. Practices like "vibe coding", where developers lean heavily on AI-generated code with light review, give attackers two openings at once: they can manipulate AI functionality directly, and they can use AI tooling to plan and scale their own operations faster than manual reconnaissance would allow.

Open sources cited by GTIG describe threat actors planting malicious resources inside open source AI communities and inserting malicious code into Model Context Protocol (MCP) packages, the standardized layer that lets AI systems call external tools and data sources. In one documented case, North Korean actors uploaded cryptocurrency-themed malicious packages, and an AI coding agent later co-authored a commit that pulled one of those packages into a legitimate cryptocurrency trading project as a dependency. No human reviewer appears to have caught the substitution before it landed in the codebase.

That example illustrates a specific new failure mode: automated coding assistants can propagate a compromised package into production code with the same confidence they apply to a legitimate one, because the agent has no independent way to judge package trustworthiness beyond what the registry already shows it.

Traditional Supply Chain Compromise Is Rare, But Its Impact Is Severe

GTIG draws a clear line between the open source surge and traditional supply chain compromise, meaning direct manipulation of a vendor’s source code or its update and distribution mechanisms. That category, GTIG assesses with high confidence, remains rare, and the handful of cases identified in 2025 and early 2026 were mostly narrowly scoped cyber espionage operations.

The most severe case GTIG describes involved UNC4899, a North Korean actor that used social engineering to compromise a developer’s machine at a web3 organization, then injected malicious code into frontend systems tied to smart contract functionality. The tampering altered transactions initiated through a multi-signature wallet shared with a third-party organization, and led to an estimated $1.4 billion in stolen cryptocurrency assets. GTIG notes the attack never touched the targeted organization’s own infrastructure directly, which shows how a single developer endpoint can become the weak point in an otherwise well-defended system.

Other traditional cases GTIG tracked include a compromise of Notepad++’s update-hosting infrastructure attributed to UNC6688, running from June to December 2025 and affecting organizations in South Korea and France, and an early 2026 compromise of DAEMON Tools installers by UNC6863. In the DAEMON Tools campaign, the actor deployed the SLICKDEMON tool for broad reconnaissance, then selectively delivered a shellcoded loader called BADFALL to strategically valuable targets before installing the QUIC RAT for hands-on-keyboard access. GTIG says that campaign reached targets in Russia, Brazil, and Turkey, with follow-on activity against government and scientific entities in Belarus and Thailand.

Open Source Risk Compared With Traditional Distribution Attacks

The contrast GTIG draws is useful for prioritizing defenses. Traditional supply chain compromise requires an attacker to gain durable access to a vendor’s build or distribution pipeline, which takes planning, patience, and often a foothold on a specific developer’s machine. It stays quiet longer and hits a narrower, more deliberately chosen set of victims, as the UNC4899 and Notepad++ cases show.

Open source compromise works on a different logic. GTIG describes it as offering attackers similar reach and stealth at entry, but at a fraction of the planning cost, because a single maintainer credential or a misconfigured CI trigger can expose a package with millions of downstream consumers. The tradeoff is that these compromises tend to surface fast once triggered; the axios incident was pulled from npm within three hours specifically because widescale download activity and community monitoring flagged it quickly. Security teams evaluating where to invest should weigh that speed-of-detection against the sheer blast radius of a popular dependency, since a three-hour exposure window on a package with 100 million weekly downloads can still touch a large number of environments before removal completes.

A Builder’s Workflow: Where Dependency Reviews Break Down

Consider a small engineering team shipping a Node.js service that pulls in axios, along with dozens of transitive dependencies neither pulled in directly nor reviewed individually. A developer runs a routine `npm update` ahead of a release, CI passes, and the build ships. If one of those transitive dependencies had been swapped for a malicious version in the hours before the update, standard automated testing would not catch it, because the malicious package still behaves like a working library until its embedded backdoor activates.

This is exactly the scenario GTIG’s guidance is aimed at: the compromise happens upstream of anything the team directly controls, and the first signal a builder gets is often a public advisory or registry takedown rather than an internal alert. Teams using AI coding agents to auto-generate dependency additions face a variant of the same problem, since the agent may add a package based on apparent popularity or a plausible-looking name without the human context a careful reviewer would apply.

Questions Security Teams Should Ask Before Trusting a Package

GTIG and Mandiant’s guidance points toward practical controls rather than abstract policy. Teams evaluating their own exposure to open source supply chain compromise can use questions like these to structure a review:

  • Does the CI pipeline restrict which GitHub Actions triggers can access repository secrets, given that UNC6780 exploited pull_request_target specifically to obtain write permissions?
  • Are maintainer accounts for critical dependencies protected with hardware-backed multi-factor authentication, since the axios compromise traced back to a socially engineered maintainer login?
  • Does the organization pin dependency versions and review diffs on updates, rather than automatically pulling the latest release for high-impact packages?
  • Is there a process for reviewing packages an AI coding agent adds to a project, given documented cases of agents incorporating malicious dependencies without human sign-off?
  • Does incident response planning account for credential theft as a monetization path, since GTIG reports threat actors reselling stolen data or partnering with ransomware groups after a successful compromise?

None of these questions guarantee protection on their own, and GTIG’s guidance does not claim they do. Detection speed in the open source ecosystem depends heavily on community reporting and registry responsiveness, which varies package by package and is not something an individual organization controls. Teams should also recognize that GTIG’s incident data comes primarily from cases Mandiant was called in to investigate, which likely skews toward more severe or high-profile compromises rather than the full population of attempted attacks.

The Trend GTIG Expects to Continue

GTIG states plainly that it expects open source supply chain compromise to keep growing through the rest of 2026 and beyond, as other threat actors emulate the worm-based and iterative techniques seen in the UNC6780 and axios campaigns. The open question the current data leaves unanswered is whether registry operators and the open source community can improve detection speed fast enough to offset the growing scale of automated, AI-assisted attacks, or whether the three-hour response seen in the axios case turns out to be closer to a best-case outcome than a typical one.

Sources