Skip to main content
Mallory
← Back to News
credential-stealer-activitysearch-ad-manipulationloader-delivery-mechanismai-platform-security

Claude Code Source Leak Fueled Malware Campaigns and Exposed New Attack Paths

Malware Intelligence · 2 sources · Updated 5mo ago · First seen Apr 3, 2026

Claude Code Source Leak Fueled Malware Campaigns and Exposed New Attack Paths

Anthropic accidentally exposed roughly 512,000 lines of production source code for Claude Code, and attackers quickly turned the leak into a lure for developers seeking “unlocked” or leaked versions of the tool. Researchers reported malicious GitHub repositories repackaging the exposed material and distributing ZIP archives containing a Rust-based dropper that installed Vidar v18.7 information-stealing malware and GhostSocks proxy tooling. One malicious repository reportedly ranked prominently in Google search results for queries related to leaked Claude Code, increasing the chance that developers would download the payloads, while duplicate repositories under different GitHub accounts were linked to the same actor.

The leak also created a broader security risk by exposing Claude Code’s internal architecture, including system prompt construction, tool definitions, safety boundaries, and anti-distillation mechanisms. Because Claude Code can access file systems, execute terminal commands, and modify development environments, researchers warned that disclosure of the full agentic harness gives adversaries a clearer path to craft prompt injections, evade protections, and audit the codebase for exploitable flaws. Those concerns intensified after a critical vulnerability in Claude Code was publicly reported within days of the source exposure, highlighting how the incident expanded the threat surface beyond malware delivery into direct exploitation of organizations using the tool.

Why it matters

Impact assessment

The immediate impact is targeted developer compromise through malware-laced GitHub repositories masquerading as leaked or “unlocked” Claude Code builds. Organizations with developers, DevOps engineers, and AI engineering teams using Claude Code or searching for leaked copies face risk of credential theft, workstation compromise, and follow-on abuse through proxy tooling.

The broader impact is longer-term exposure of Claude Code’s internal agentic architecture, which increases the likelihood of prompt-injection bypasses, tool abuse, and direct exploitation against environments where Claude Code is deployed. Exposure appears targeted rather than indiscriminate, but the lure was amplified by prominent Google search placement and duplicate repositories, increasing practical reach.

Supporting facts

  • Affected populations: developers, AI engineers, DevOps teams, and organizations using Claude Code in development environments.
  • Affected product: Anthropic Claude Code.
  • Leak scope: approximately 512,000-513,000 lines of production TypeScript across 1,906 files.
  • Immediate business risk: Vidar information theft can expose credentials, browser data, tokens, and other sensitive developer artifacts.
  • Operational risk: GhostSocks can provide attacker-controlled proxy capability from compromised hosts, enabling persistence or follow-on access.
  • Strategic risk: leaked source exposed system prompt construction, tool definitions, permission model, sandbox boundaries, safety classifiers, and anti-distillation mechanisms.
  • Known in-the-wild abuse: malicious GitHub repositories were observed distributing a Rust-based dropper; one ranked highly in Google search results for “leaked Claude Code.”
  • Exposure scope: not a mass wormable event, but a credible and active campaign leveraging trust signals and developer curiosity.
  • Additional concern: a critical Claude Code vulnerability was publicly reported within days of the leak, indicating active code auditing by researchers and potentially adversaries.
Hunt this familyPull IOCs and campaign context straight into your stack.
Get the IOCs
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · Mar 31, 2026 – Apr 3, 2026
  1. Apr 3, 20268mo ago

    Malicious Claude Code repository gained visibility in Google results

    One malicious GitHub repository briefly ranked highly in Google search results for “leaked Claude Code,” increasing the likelihood that developers would download the malware. The campaign leveraged trust signals around GitHub releases and the leaked Claude Code branding.

    Claude Code source leak exploited to spread malware - Help Net Security
  2. Apr 3, 20268mo ago

    Threat actors used leaked Claude Code to spread malware on GitHub

    After the leak, threat actors created malicious GitHub repositories advertising “unlocked” Claude Code versions and distributing a ZIP archive with a Rust-based dropper. Zscaler linked duplicate repositories under different GitHub accounts to the same actor and observed multiple archive variants delivering Vidar v18.7 and GhostSocks.

    Claude Code source leak exploited to spread malware - Help Net Security
  3. Apr 3, 20268mo ago

    Critical Claude Code vulnerability was publicly reported after leak

    Within days of the source code leak, a critical vulnerability in Claude Code was publicly reported. Trend Micro says this showed how the leaked code enabled attackers and researchers to systematically audit the codebase for exploitable flaws.

    Weaponizing Trust Signals: Claude Code Lures and GitHub Release Payloads | Trend Micro (US)
  4. Mar 31, 20268mo ago

    Anthropic accidentally exposed Claude Code source code

    Anthropic accidentally exposed the source code for its Claude Code tool, leaking approximately 512,000 lines of production code. The leak revealed internal implementation details including system prompt construction, tool definitions, safety boundaries, and anti-distillation mechanisms.

    Weaponizing Trust Signals: Claude Code Lures and GitHub Release Payloads | Trend Micro (US)
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Claude Code

Organizations

1 linked
Anthropic
Do you run this?Pull the IOCs, campaigns, and victimology behind this family, ready to push into your SIEM and EDR.
Hunt This Malware
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.