A significant vulnerability known as 'SneakPeek' was discovered in Anthropic's Claude Code Desktop, posing a serious risk to software developers by allowing attackers to exfiltrate sensitive files silently. This high-severity flaw was found in the automated preview pane of the platform, which is designed to provide real-time previews of HTML files. Researchers from Noma identified three architectural weaknesses that, when combined, bypassed existing sandbox protections. These gaps included the absence of a content security policy, unrestricted origin access, and inactive request filtering.
The potential impact of this vulnerability is alarming. Attackers could exploit it by embedding malicious scripts in HTML files within a standard-looking public code repository. When developers use Claude Code to review or edit such files, the preview pane automatically renders the document, allowing the script to steal AWS credentials, GitHub credentials, API keys, and OAuth tokens without user interaction.
The vulnerability was initially reported to Anthropic on July 4 and patched on July 9. However, Noma researchers found a way to bypass the fix, prompting Anthropic to implement a final patch on August 17. This collaboration between Anthropic and Noma underscores the need for robust security measures in environments assumed to be secure.
Eli Ainhorn from Noma emphasized the importance of maintaining updated coding applications and securing credentials off developer machines. He also highlighted the necessity for comprehensive security solutions offering both visibility and runtime protection as essential standards for companies utilizing autonomous agents.

