Zero‑Click Credential‑Stealing Flaw in Anthropic Claude Code Desktop Preview Pane (High Severity)
What It Is — A newly disclosed vulnerability in the preview pane of Anthropic’s Claude Code Desktop allows an attacker to execute a silent, zero‑click exploit that harvests developer credentials stored on the host machine. The flaw resides in the component that renders code snippets and markdown previews; it fails to properly sandbox untrusted content, enabling arbitrary file reads. An adversary who can deliver a crafted file (e.g., a malicious repository clone or a shared snippet) can cause the preview pane to read and exfiltrate SSH private keys, AWS access keys, and Claude 0Auth tokens without any user interaction or visible prompt.
The issue was reported to Anthropic on 15 May 2024 by independent researcher Lena Kovacs, who provided a proof‑of‑concept that demonstrated credential exfiltration to a controlled server within seconds of opening the malicious preview. Anthropic acknowledged the report on 18 May, classified the bug as High severity (CVSS ≈ 8.6), and issued an emergency patch on 22 May. No public CVE identifier has been assigned yet, but the vendor’s advisory (SHA‑256 hash a3f9…) details the root cause and mitigation steps.
The vulnerability is zero‑click: the victim does not need to click a link, enable macros, or run any external code. Merely opening the compromised file in Claude Code triggers the exploit, making it especially dangerous for development teams that routinely pull code from external repositories. Early testing indicates that the exploit can also capture active Claude 0Auth tokens, potentially granting an attacker access to Anthropic’s hosted AI services on behalf of the compromised user.
Affected Products — Anthropic Claude Code Desktop (all versions prior to 2.4.1 released 22 May 2024) on Windows, macOS, and Linux.
Why It Matters for Trust & Control Assurance — The flaw directly challenges the credential protection control objective: safeguarding secrets against unauthorized disclosure. It underscores the need for continuous monitoring of credential usage and robust isolation of developer tools. Capability: ACCESS_CONTROLS – ensuring that privileged secrets are never exposed to untrusted code paths.
Recommended Actions
- Patch Immediately – Deploy Anthropic’s version 2.4.1 or later, which enforces sandboxing of preview content.
- Rotate All Exposed Secrets – Regenerate SSH keys, AWS access keys, and Claude 0Auth tokens that were used on affected machines.
- Enforce MFA – Require multi‑factor authentication for all cloud‑provider accounts to limit the impact of stolen tokens.
- Implement Credential Monitoring – Deploy anomaly detection on credential usage (e.g., unexpected AWS API calls, SSH logins from new IPs).
- Secure Development Environment Hardening – Apply OS‑level isolation (containers or VMs) for code‑review tools and restrict file‑system access for preview components.