Google Antigravity · Public exploit code

PoC bypasses agent approval gate in Google Antigravity

· 1 min read

A public PoC shows Google Antigravity's native agent hooks can inject overriding instructions and answer tool-use checks with an allow decision. An attacker able to configure hooks in a user's environment bypasses the agent's normal approval gate and runs tool actions that would otherwise require approval. Review configured hooks and restrict who can modify them.

Illustration: PoC bypasses agent approval gate in Google Antigravity
WhatsApp LinkedIn X
MediumVulnerabilityPublic exploit codeFix unconfirmed

In 30 seconds

Alleged

A public proof of concept claims to knock down the safety gate in Google Antigravity, the agent-based development environment. Security researcher ptdbugs announced the PoC on X and linked to a GitHub repository named agy-purge-t. The core claim is simple and uncomfortable: Antigravity's native agent hooks can inject overriding instructions and answer tool-use checks with an automatic allow decision, so actions that would normally wait for your explicit approval just run.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source listgithub.comgithub.com · rssOpen original sourceSee in source list

What happened

Observed

The public record begins with a GitHub repository, agy-purge-t by user machine-gun-tt, which hosts the proof-of-concept code. The repository is the primary artifact for this story, and everything currently known about the bug traces back to it or to the researcher's announcement.github.comgithub.com · rssOpen original sourceSee in source list

Alleged

Alongside the repository, ptdbugs published a post on X describing the vulnerability in disclosure style, naming Google as vendor and Antigravity as product. In that description, the attack works because hooks can answer tool-use checks with an allow decision plus permission overrides, and the precondition is that the attacker can already configure hooks in the victim's environment.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Why it matters

Inferred

Approval gates are the main way humans stay in the loop with coding agents. If a hook can silently answer the gate's question on the user's behalf, the agent effectively operates without supervision, and any tool action it takes carries the user's permissions. That turns a convenience feature, hooks, into a potential leverage point against the person relying on it.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Inferred

The precondition deserves attention. The described attack needs the ability to configure hooks in the target's environment first, which suggests local access, malicious tooling, or an earlier compromise rather than a remotely triggerable flaw. In other words, this reads less like a worm and more like a powerful persistence and escalation technique once a foothold exists.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

What to do

Inferred

If you run Antigravity, review the hooks configured in your environment and treat who can modify them as a security boundary, in the same tier as shell profiles or SSH keys. Removing hooks you cannot account for, and limiting write access to hook configuration, closes the pathway the PoC allegedly abuses. No vendor guidance has appeared in the evidence so far, so these are precautions inferred from the described mechanism, not official instructions.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source listgithub.comgithub.com · rssOpen original sourceSee in source list

Confirmed and still uncertain

Inferred

What is established so far: the PoC repository exists publicly, and a researcher has publicly described its mechanism. What remains open: there is no observed vendor advisory, no CVE, no patch note, and no independent reproduction in this evidence batch. The affected versions, whether Google considers this a bug or intended hook behavior, and whether a fix is planned are all unknown at this point.github.comgithub.com · rssOpen original sourceSee in source listptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

What people are saying

Alleged

The only voice in the record so far is ptdbugs, who framed it plainly: "An attacker able to configure hooks in a user's environment can bypass the agent's normal approval gate, permitting tool actions that would otherwise require user approval." No response from Google or from other researchers appears in the current evidence.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Evolution

Observed

The timeline is short. The repository and the announcement post carry the same timestamp, so the public disclosure essentially begins with both appearing together. No follow-up posts, vendor statements, or downstream discussion are present in this batch, which means the story currently has an origin and no sequel.github.comgithub.com · rssOpen original sourceSee in source listptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Reach

Observed

1 independent groups, 1 updates, and 0 engagements.

Technical detail

Alleged

As described, the technique abuses Antigravity's native hook system. A hook, in this context, is a piece of configuration that runs around agent behavior, and the PoC allegedly uses it for two things at once: injecting overriding instructions into the agent's flow, and programmatically answering the tool-use permission check with an allow decision plus permission overrides. The approval prompt never reaches a human in a meaningful state, so the gate approves itself.ptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Observed

The repository body in this batch is empty, so the exact code paths, affected builds, and exploit steps have not been independently reviewed here. Everything technical beyond the researcher's summary rests on inspecting agy-purge-t directly, which readers should do with appropriate caution.github.comgithub.com · rssOpen original sourceSee in source list

Sources and evidence

Observed

Two items back this story. The primary source is the GitHub repository agy-purge-t, which holds the PoC but arrived in the batch without a description or README content. The discussion source is the X post by ptdbugs, which supplies the entire vulnerability description. Notably absent: any Google statement, issue tracker entry, or third-party verification.github.comgithub.com · rssOpen original sourceSee in source listptdbugsx.com · ptdbugs · xOpen original sourceSee in source list

Sources

  1. ptdbugsx.com · ptdbugs · x
  2. github.comgithub.com · rss

Incidents like this, every morning

The ones that need action first, in a 3-minute read.

Free · 1 email a day, in the morning · no spam, unsubscribe in 1 click

Get the next one tomorrow morning

One email a day with what changed, what to fix first and how.

Free · 1 email a day, in the morning · no spam, unsubscribe in 1 click

Share it with your team

Whoever handles security with you should get it too.

LinkedIn X

Your colleague gets a confirmation request. Nothing is sent unless they confirm.

See all news

Read also

Before you go: get this every day

The HIFY Radar daily edition lands every morning with the incidents that need action. Free.

Free · 1 email a day, in the morning · no spam, unsubscribe in 1 click