How Claude Code’s 256KB blind spot put developers’ secrets in the preview pane
- Published
- Record updated
Summary
Noma Security found SneakPeek, a flaw in Anthropic's Claude Code Desktop app that could let malicious JavaScript in an HTML file run without further user interaction and expose sensitive host files, such as AWS credentials, GitHub secrets and SSH private keys. The flaw sat in the app's automated preview pane, which renders HTML files generated or modified by Claude. Noma traced it to three gaps: a 256KB file-size threshold that switched files to file:// URLs and bypassed the Content Security Policy, a file:// origin that gave the renderer local filesystem access, and an inactive request filter during static file rendering.
Mitigation
Anthropic fully resolved the issue after a deeper architectural fix, following a bypass of its initial patch that Noma reported. The source states no version number or configuration change.
Related items
- InfoCode-driven AI illustrations are more useful than images from dedicated image modelsSame vendor · Simon Willison's Weblog
- InfoQuoting Jack Despain ZhouSame vendor · Simon Willison's Weblog
- InfoTech stocks sink but close well off the lows, Anthropic struggles to rebound above IPO priceSame vendor · CNBC Technology
- InfoPrompting AI to be ‘thorough’ can drive sandbox escapes, Anthropic saysSame vendor · CSO Online
- InfoDespite doom and gloom headlines, AI attacks are thin on the groundSame vendor · CSO Online