Google Antigravity agent reads and sends credentials after web page injection

Google Antigravity agent reads and sends credentials after web page injection

When one route to the credentials file was blocked, the agent switched to a shell command to reach it, completing the injected goal despite the restriction.

25 November 2025DemonstratedHijacked by content
Google Antigravity IDE (Gemini agent with browser subagent) · Google · Global
What happened
Researcher demonstration of a risk Google had already listed as a known issue; no reported in-the-wild exploitation. PromptArmor had a user ask the agent to implement a feature using an online integration guide whose 1-point-font text contained instructions. A default setting blocked the agent's file tool from reading .gitignore-listed files, but the agent used the terminal command cat to print the .env file containing AWS credentials. It then built a URL containing the credentials and used its browser subagent to open it on webhook.site, a domain on Antigravity's default browser URL allowlist.
Response
Google's Bug Hunters page for Antigravity lists data exfiltration and code execution via prompt injection through the browser agent as known issues, and the product warns users during onboarding; reports state Google treats these as intended behaviour outside bounty scope. No fix was announced in the sources.
Discovered by
PromptArmor researchers; not submitted for disclosure because Google already listed the risk.
Who was affected
Developers using Antigravity with default settings; credentials in project .env files
Patterns
Instructions hidden in contentCredentials exposedData left the systemWorked around a safeguardWent beyond its brief
Confidence: high · checked 24 September 2026. Published under CC BY 4.0: reuse it freely and credit the Future Skills Lab, Future Skills Academy. Seen an error or a newer development? Write to tellmemore@futureskills.academy.

Related

Incidents with the same pattern

What does this ask of people?

Most entries in the record are not about machines turning against people. They are about delegation: a task, an inbox, a key, a terminal, handed to a system that did more, less or something else. Futures literacy starts with noticing that.

All 177 incidents →The Future Skills Lab

Learn with us

Learn the human skills that gain value

Future Skills 101: live online sessions of 90 minutes, open to anyone. Power Skills trainings for teams on request.