Claude Code Source Leak Fueled Malware Campaigns and Exposed New Attack Paths
Malware Intelligence · 2 sources · Updated 5mo ago · First seen Apr 3, 2026

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.


