Claude Code Source Leak: Hackers Exploit Hype to Spread Infostealers

In early April 2026, the crypto and developer communities faced a new wave of cyberattacks. Threat actors began массово creating malicious GitHub repositories disguised as leaked source code of Claude Code — an AI tool developed by Anthropic. Under the promise of “unlocked enterprise features” and “removed limits,” users were tricked into downloading archives containing dangerous infostealers and proxy malware capable of stealing sensitive data and crypto keys.

⚠️ Critical threat: Infection is delivered via a Rust-based dropper that installs two components: the Vidar v18.7 infostealer and GhostSocks — a proxy tool that turns the victim’s device into a residential proxy node.

📦 What Actually Leaked

The incident originated from an accidental exposure by Anthropic: a JavaScript source map (~59.8 MB) was included in an npm package of Claude Code. It contained over 512,000 lines of unobfuscated TypeScript across ~1,900 files.

The leak revealed:

  • AI agent orchestration logic
  • Permission and execution systems
  • Internal APIs and hidden features
  • Build and deployment processes
  • Security and monitoring architecture

The code quickly spread across GitHub and file-sharing platforms — creating perfect conditions for exploitation.

🎣 Attack Mechanism: Fake Repository Trap

1. SEO Manipulation

Malicious repos were optimized for search queries like “leaked Claude Code,” “enterprise unlocked,” and “no limits,” allowing them to temporarily rank high on Google.

2. Social Engineering

README files claimed the code was extracted from official npm source maps, giving the project false legitimacy.

3. Payload Delivery

Users downloaded a 7-Zip archive containing an executable (ClaudeCode_x64.exe) — a Rust-based malware loader.

“The weakest link in security is always the human. One click is enough,” — Kevin Mitnick.

💀 Dual Threat: Vidar + GhostSocks

Vidar Infostealer

Vidar v18.7 collects:

  • Passwords and credentials
  • Crypto wallet keys and seed data
  • Browser cookies and sessions
  • Files, screenshots, system data

Data is sent to attacker-controlled servers for resale or further attacks.

GhostSocks Proxy Malware

  • Turns the device into a proxy node
  • Routes attacker traffic through victim IP
  • Helps bypass detection systems
  • Enables monetization via proxy resale

🔍 Infostealers caused over $1.2B in crypto losses in 2025 alone.

🔎 How to Detect a Fake Repository

  1. New or suspicious author accounts
  2. Promises of “unlocked” or “premium” features
  3. Executable files instead of source code
  4. No license or proper documentation
  5. Keyword stuffing (SEO spam)
  6. External suspicious links

🛡️ Protection Measures

For Developers

  • Download only from official sources
  • Scan dependencies (Snyk, Dependabot)
  • Run unknown code in isolated environments
  • Monitor repo forks and anomalies

For Users

  • Avoid downloading executables from GitHub
  • Use advanced antivirus tools
  • Enable 2FA everywhere
  • Keep software updated
  • Store crypto in hardware wallets

🌐 Broader Trend: Supply Chain Attacks

  • 740% growth in malicious packages (2024–2026)
  • 68% of breaches start from fake libraries/tools
  • GitHub and npm increasingly used as attack vectors

Attackers exploit trust in legitimate platforms rather than breaking systems directly.

⚙️ Why Rust Malware Is Rising

  • Cross-platform compatibility
  • High performance
  • Difficult reverse engineering
  • Static binaries (low dependency footprint)
  • Harder signature detection
“Security is a process, not a product,” — Bruce Schneier.

🔮 What Comes Next

  • AI-generated phishing repositories
  • Targeted attacks on crypto developers
  • Multi-stage malware campaigns
  • Exploitation of trending leaks and hype

Recommendations

  • Platforms: stronger verification and scanning
  • Companies: developer security training
  • Users: critical thinking and caution

✨ Conclusion: Trust Carefully in Open Source

The Claude Code leak shows how quickly attackers adapt. Hype becomes a weapon, and trust in platforms becomes the vulnerability.

For crypto users, the risk is especially severe — stolen keys mean irreversible losses.

🔐 Golden rule: In open source — trust, but verify.

Security today is not about tools — it’s about awareness. And in this environment, the most protected user is the most skeptical one.

06.04.2026, 01:29