Antigravity prompt injection: Read browser local storage remotely
introvertmac.wordpress.com·10h·
Discuss: Hacker News
🛡️WebAssembly Security
Preview
Report Post

TLDR;

A class of vulnerabilities exists in AI-powered command-line interfaces (CLI) and IDE that can be exploited to exfiltrate sensitive browser storage data. When these tools automatically open HTML files in a user’s browser without explicit confirmation, malicious repositories can leverage this behavior to steal cookies, localStorage, and sessionStorage contents: potentially including API keys and authentication tokens.

Demo Video:

The Attack Surface

Modern AI coding assistants and IDE often include the ability to preview HTML files by opening them in the user’s default browser. While convenient for legitimate development workflows, this capability introduces a significant attack vector when combined with:

  1. Instruction-following behavior that prioritizes README or conf…

Similar Posts

Loading similar posts...