← Lab /Security & privacy

Google's Antigravity IDE enables remote code execution and data exfiltration via prompt injection

The Antigravity IDE contains multiple unmitigated vulnerabilities that enable remote command execution and data exfiltration.

Security & privacy Embrace The Red 25 Nov 2025 Disclosure Prototype evidence

Published as “Antigravity Grounded! Security Vulnerabilities in Google's Latest IDE”

Why it matters

Developers should avoid using Antigravity IDE until Google adds mandatory human-in-the-loop controls and disables auto-execute of tools.

Summary

The researcher examined Google’s new Antigravity IDE and built working exploits for five distinct issues, including indirect prompt-injection that leads to arbitrary remote code execution, hidden Unicode-tag instructions that cause the LLM to run malicious commands, and two data-exfiltration paths via the read_url_content tool and image rendering. Demonstrations show the AI can download and execute scripts without human approval and can leak .env secrets to external servers. The evidence consists of live demo videos and screenshots, but no large-scale telemetry or real-world incident data.

What they found 3

  1. Remote command execution via indirect prompt injection

    “This shows that we achieve arbitrary code execution via the remote script.”

  2. Hidden Unicode Tag instructions cause the model to execute malicious commands

    “An attacker can hide instructions in code or other data sources (invisible to users in the UI), and when Antigravity sends it to Gemini it will follow the hidden instructions.”

  3. Data exfiltration via the read_url_content tool

    “The issue here is the read_url_content tool, which can be invoked without human in the loop during an indirect prompt injection attack.”

Caveats 3

  • I am not including the exploit payload details for now
  • The default setting is for the AI to decide if a command is “safe” to execute or not, without human in the loop
  • These are relatively simple bug fixes to have an out-of-box secure experience

What’s new here 4

  • Identification of five concrete vulnerabilities in the Antigravity IDE.
  • Demonstration of indirect prompt injection achieving remote code execution on Gemini 3 and Claude Sonnet 4.5.
  • Discovery that invisible Unicode Tag characters can embed malicious instructions that the model follows.
  • Showcase of data exfiltration via read_url_content and markdown image rendering.