Esc
SafetyCase Closed

The 2026 AI Code Leak and NPM Supply Chain Attack

Is this a scandal?

No longer — the story has resolved. Noise 1/100, cooling down, across 0 sources.

SCAND-69927as of Methodology
Cite this incident"The 2026 AI Code Leak and NPM Supply Chain Attack." SCAND.Ai incident SCAND-69927, noise 1/100 as of September 12, 2026. https://scand.ai/scandal/ai-code-leak-npm-supply-chain-crisis
FORECASTForecast, not fact

Developer platforms like npm and GitHub will likely implement mandatory code-signing and AI-verification protocols for all major libraries to prevent automated poisoning. In the near term, enterprise companies will transition toward 'walled garden' package mirrors, significantly slowing down the speed of open-source adoption in exchange for security.

1

Noise 1/100 — louder than 89% of tracked AI controversies.

AI-assisted analysis · How we work

Why it matters

The attack demonstrates that AI development infrastructure remains highly vulnerable to dependency hijacking, threatening the integrity of enterprise AI deployments and coding assistants.

Key points

  1. Stolen npm credentials allowed attackers to publish malicious Axios versions 1.4.1 and 0.30.4 on March 31, 2026.
  2. Zscaler ThreatLabz attributed the supply chain attack to North Korean actors deploying RAT droppers via plain-crypto-js.
  3. Anthropic confirmed Claude Code exposure was caused by human error rather than a direct platform security breach.
  4. Security researchers found the attack bypassed Trusted Publishing safeguards using phantom dependencies to evade automated scanning.
  5. The compromise affected millions of downstream applications relying on Axios for HTTP requests in AI development workflows.

The story

Attackers compromised the widely used Axios npm package on March 31, 2026, deploying remote access trojans through stolen maintainer credentials. Security firms Zscaler and Huntress attributed the incident to North Korean actors who bypassed Trusted Publishing safeguards by injecting malicious code into versions 1.4.1 and 0.30.4. Anthropic confirmed its Claude Code product was affected but stated the exposure resulted from human error rather than a direct security breach of its systems. The compromised library serves as a dependency for millions of JavaScript applications and critical AI development tools. Researchers from Wiz and Aikido Security later identified that the attack utilized a phantom dependency via plain-crypto-js to evade detection. This incident highlights persistent vulnerabilities in open-source software supply chains supporting artificial intelligence infrastructure. Industry stakeholders are now reassessing dependency verification protocols for AI-assisted coding environments.

Who's involved

Critic
K_A_I11

Argues that the software supply chain is fundamentally broken and that developers no longer have control over the code they execute.

Defender
The NPM Community

Working to identify and remove malicious packages while debating the need for stricter registry controls.

Neutral
Anthropic

Alleged source of the leaked code currently investigating the extent of the infrastructure breach.

Neutral
Axios

Reported as a key entity involved in the exposure of the software crisis through leaked data or reporting.

Most contested claim

The attack was solely caused by the April 11 AI code leak.

Biggest open question

Discrepancy between the reported April 12 hijack date in the topic timeline and the March 31 compromise date cited by Orca Security.

Read the full story

How we got here

Software supply chain attacks targeting package managers like npm represent a recurring pattern in cybersecurity, where adversaries exploit trust relationships between maintainers and downstream users. Historical precedents include the 2021 ua-parser-js hijacking and the 2024 polyfill.io incident, both of which utilized similar vectors of maintainer account compromise or dependency confusion to distribute malicious payloads. These events typically follow a cycle of rapid propagation through automated update mechanisms, followed by community-led remediation and retrospective analysis of registry security controls. The integration of AI-generated code into these attack vectors marks an evolution in this pattern, where leaked proprietary models or codebases provide novel obfuscation techniques or functional payloads that evade traditional static analysis. This recurrence highlights persistent structural vulnerabilities in open-source ecosystems, specifically the reliance on volunteer maintainers and the lack of mandatory cryptographic signing for package updates, rather than isolated failures of specific vendors.

The full story

In early April 2026, the software development community confronted a significant supply chain compromise involving the Axios npm package, an event that analysts and researchers subsequently labeled a 'software crisis.' The incident originated with the unauthorized disclosure of proprietary AI-related source code on public forums around April 11, 2026. Approximately 500,000 lines of code were exposed, leading to immediate speculation regarding the integrity of AI development infrastructure. Anthropic, identified as the alleged source of the leaked material, responded by attributing the exposure to human error rather than a malicious security breach of their internal systems, according to reporting by Coder.com. Despite this characterization, the leaked code was rapidly weaponized.

On April 12, 2026, a malicious payload derived from the leaked AI code was injected into a popular npm library. This update triggered a mass infection event reported globally on April 13, as developers performing standard software updates inadvertently installed compromised dependencies. Security firms including ArmorCode, Huntress, Wiz, and Aikido Security confirmed that the Axios npm package had been hijacked to deploy Remote Access Trojans (RATs). According to Orca Security, the specific compromise of the axios npm package occurred on March 31, 2026, suggesting a timeline where the vulnerability or initial access may have preceded the public leak narrative, or indicating conflicting reports regarding the exact moment of injection. Cloudsmith identified specific affected versions as Axios 1.4.1 and 0.30.4, describing it as one of the most significant software supply chain attacks to date due to the library's ubiquity in millions of applications.

The NPM Community mobilized to identify and remove the malicious packages while engaging in debates regarding stricter registry controls. Critics, represented by voices such as K_A_I11, argued that the incident demonstrated a fundamental breakdown in the software supply chain, asserting that developers no longer possess adequate control over the code they execute. Conversely, defenders within the ecosystem focused on remediation and detection, with companies like ArmorCode publishing guidance for customers to detect exposure. Arctic Wolf highlighted the broad impact of the attack on widely used infrastructure, emphasizing that the compromise affected core HTTP/S request functionality essential to modern web applications. By April 14, the convergence of the AI code leak and the subsequent dependency hijacking led analysts to formally categorize the sequence as a systemic crisis, underscoring the fragility of trust mechanisms in open-source package management.

What's confirmed, what's disputed

  • ConfirmedAnthropic attributed the code leak to human error rather than a security breach.
  • DisputedThe axios npm package was compromised on March 31, 2026.
  • ConfirmedAxios versions 1.4.1 and 0.30.4 were specifically compromised in the attack.
  • ConfirmedThe malicious payload deployed Remote Access Trojans (RATs) via the compromised library.
  • ConfirmedApproximately 500,000 lines of proprietary AI-related source code appeared on public forums on April 11.
  • ConfirmedTrusted Publishing mechanisms were bypassed during the Axios compromise.

The strongest case each way

Critic's case

The software supply chain is fundamentally broken because developers cannot verify the integrity of transitive dependencies, rendering standard update practices inherently unsafe regardless of individual vendor responses.

Defender's case

The ecosystem's rapid detection and remediation efforts, including specific guidance from security firms and registry takedowns, demonstrate functional resilience and effective incident response despite the scale of the compromise.

Times this happened before

  • Polyfill.io Supply Chain Attack · 2024Widespread CDN takeover led to mass infection and forced migration to alternative providers.
  • ua-parser-js Hijacking · 2021Maintainer account compromise resulted in cryptominer distribution and heightened awareness of npm credential security.

What's at stake

The compromise affects millions of applications relying on Axios for HTTP requests, creating widespread exposure to Remote Access Trojans across enterprise and open-source projects. Organizations using affected versions (1.4.1, 0.30.4) face potential data exfiltration and system backdoor installation. The incident threatens the integrity of AI development pipelines, as leaked proprietary code was directly weaponized, forcing a re-evaluation of trust in automated dependency management. Remediation requires manual auditing of lockfiles and deployment of detection tooling, imposing significant operational overhead on engineering teams globally.

~500,000Lines of code leaked
Axios 1.4.1 and 0.30.4Affected package versions
Millions of applicationsDependency reach

What we still don't know

  • Discrepancy between the reported April 12 hijack date in the topic timeline and the March 31 compromise date cited by Orca Security.

Join the Discussion

Discuss this story

Community comments coming in a future update

Be the first to share your perspective. Subscribe to comment.

Noise Level

Quiet1?Noise Score (0–100): how loud a controversy is. Composite of reach, engagement, star power, cross-platform spread, polarity, duration, and industry impact — with 7-day decay.
Decay: 5%
Reach
0
Engagement
0
Star Power
20
Duration
0
Cross-Platform
0
Polarity
50
Industry Impact
50

The timeline

  1. Crisis Escalation

    Analysts and researchers label the event a 'software crisis' as the scope of the supply chain breach is revealed.

  2. Mass Infection Reported

    Developers report compromised systems globally after performing standard software updates.

  3. NPM Library Hijack

    A popular npm library is updated with a malicious payload derived from the leaked AI code.

  4. Initial Code Leak

    Approximately 500,000 lines of proprietary AI-related source code appear on public forums.

The full record

Sources & methodology

The records from this story's original coverage were pruned, so items marked located later were found by searching for it afterwards. The summary above has since been rewritten to take them into account — it is not the text first published. How we score →

Where the sources disagree

In dispute The attack was solely caused by the April 11 AI code leak.

Established The Axios compromise may have occurred as early as March 31 per Orca Security, suggesting the leak and the hijack may have overlapping but distinct timelines or that the leak was a secondary amplification vector rather than the sole origin.

What's being under-reported

Coverage is heavily weighted toward security vendor perspectives and technical remediation. Missing are voices from individual open-source maintainers who bear the operational burden of cleanup, and enterprise end-users who experienced the actual business disruption. This gap obscures the human cost of supply chain resilience and may overstate the effectiveness of automated detection tools versus manual audit realities.

Who changed their mind, and why
  • AnthropicShifted from silent investigation to public attribution of 'human error' to distinguish the leak from external intrusion. (was: No prior public statement regarding the specific leak event.)
  • NPM CommunityTransitioned from reactive package removal to proactive debate on stricter registry controls and Trusted Publishing enforcement. (was: Reliance on voluntary maintainer security practices.)

The forecast

Developer platforms like npm and GitHub will likely implement mandatory code-signing and AI-verification protocols for all major libraries to prevent automated poisoning. In the near term, enterprise companies will transition toward 'walled garden' package mirrors, significantly slowing down the speed of open-source adoption in exchange for security.

Forecast, not fact — an editorial estimate we score when this resolves.

You're up to date

That's the complete picture as of — nothing more to know right now. We'll update this page the moment it changes.