Claude Code Leak Exploited by Hackers to Deliver Vidar and GhostSocks

Threat actors are actively exploiting a recent source code leak of Anthropic’s Claude Code by using fake GitHub repositories to distribute Vidar and GhostSocks malware.

Organizations must remain vigilant as developers searching for the leaked AI agent architecture are inadvertently downloading dangerous payloads.

The Claude Code Leak

On March 31, 2026, Anthropic inadvertently exposed the complete source code for Claude Code, its terminal-based AI coding assistant.

The leak occurred because a 59.8 MB JavaScript source map file was accidentally bundled into the public npm package @anthropic-ai/claude-code.

Google search results for leaked Claude Code on GitHub returning a malicious repository (Source: Zscaler)
Google search results for leaked Claude Code on GitHub returning a malicious repository (Source: Zscaler)

This file contained over 513,000 lines of unobfuscated TypeScript, revealing the agent’s internal orchestration, execution layer, and hidden feature flags.

The leaked source map revealed the complete client-side agent harness without exposing underlying AI model weights or sensitive user data.

Researchers discovered intricate details regarding persistent memory systems, background autonomous daemons, and inter-process communication mechanisms.

For example, the exposure of over 20 unshipped feature flags gives threat actors unprecedented insight into Anthropic’s internal API design and security telemetry.

Malicious GitHub repository using the leaked Claude Code source as a lure (Source: Zscaler)
Malicious GitHub repository using the leaked Claude Code source as a lure (Source: Zscaler)

Following the public disclosure by a security researcher, the codebase was mirrored and forked thousands of times across GitHub.

Cybercriminals quickly capitalized on this viral interest by creating malicious repositories that masqueraded as the leaked source code.

Zscaler ThreatLabz identified a specific GitHub account, idbzoomh, which ranked high on Google search results and lured victims with promises of an unlocked enterprise version of the AI agent.

When curious developers download the repository’s provided archive, named “Claude Code – Leaked Source Code.7z”, they inadvertently acquire a Rust-based dropper named ClaudeCode_x64.exe.

GitHub repository using the Claude Code leak as a lure to distribute malicious ZIP archives. (Source: Zscaler)
GitHub repository using the Claude Code leak as a lure to distribute malicious ZIP archives. (Source: Zscaler)

Executing this file silently infects the workstation while bypassing basic security checks. The dropper then deploys two distinct forms of malware onto the compromised device to establish persistent access and steal data.

Payload Characteristics

The attack relies on a dual-payload strategy to maximize the compromise of developer environments. The deployed malware strains serve distinct but complementary functions for the threat actors executing the campaign.

Malware TypePrimary FunctionImpact on Victim Workstation
Vidar (v18.7)Information Stealer Steals account credentials, credit card data, and browser history .
GhostSocksNetwork Proxy Tool Masks attacker locations by turning the device into proxy infrastructure .

The widespread distribution of the leaked architecture lowers the barrier for attackers to discover and exploit vulnerabilities like remote code execution flaws.

Threat actors now have full visibility into the agent’s hooks and integrations, making it easier to craft precise project files that trigger silent credential theft.

 Additional GitHub repository hosting the same Claude Code leak lure with a “Download ZIP” button. (Source: Zscaler)
 Additional GitHub repository hosting the same Claude Code leak lure with a “Download ZIP” button. (Source: Zscaler)

This incident coincided with a separate npm supply chain attack, significantly increasing the risk for developers updating their packages.

Security experts strongly advise against downloading, building, or running any code from unofficial GitHub repositories claiming to be the leaked Claude Code.

Organizations should implement a Zero Trust architecture and segment mission-critical application access to contain potential breaches.

Finally, security teams must monitor developer workstations for anomalous outbound connections and rely exclusively on verified binaries from Anthropic.

Follow us on Google News , LinkedIn and X to Get More Instant Updates. Set Cyberpress as a Preferred Source in Google

Trending News

Related Stories