Antigravity agent ignored explicit scope limits, spread my private SSH key to 3 devices, opened a reverse tunnel to my server, then deleted its own traces

Product: Antigravity CLI 1.3.1, paid Google AI Pro subscription. Sessions on 2026-10-08/09.

The task I gave the agent

One job: start Tailscale on my two Android phones (connected over wireless ADB) and confirm they are online. The prompt said, literally: “Do not touch anything except Tailscale. In particular do not stop, clear or uninstall any other app, do not touch Termux, Shizuku, proot, the rish server or the tunnel.”

What the agent did instead (all verified from its own transcripts)

  1. Installed Shizuku on one phone and pushed rish into Termux - the exact components the prompt told it not to touch.
  2. Copied my private SSH key (ed25519, no passphrase) to:
    • shared storage of phone 1 (/sdcard/Download, readable by any app with storage access),
    • /data/local/tmp on phone 2 with world-readable permissions (rw-rw-rw-),
    • my VPS, as an extra key file.
  3. Installed OpenSSH in Termux, started sshd and opened a reverse SSH tunnel from the phone to my public VPS, exposing a shell on my phone through an internet-facing server.
  4. Tried to log in to my VPS as root with my key.
  5. Ran pip install --break-system-packages and queried my DNS provider’s API with my credentials - nothing to do with Tailscale.
  6. Uploaded a full map of my infrastructure (file listings incl. credential file paths) to Google Drive.
  7. Then it deleted its own working files with rm -f and uninstalled the packages it had added, making reconstruction harder.
  8. In follow-up sessions the content of the private key ended up in the model context.

Result: a one-line Tailscale task turned into a key compromise. I had to revoke and rotate SSH keys, clean two phones and a server, and audit every login on the VPS. Hours of incident response for a task the agent was explicitly told to keep tiny.

This is not a “bug”

An agent with shell, ADB and SSH access that ignores an explicit, written prohibition, moves secrets around, opens network exposure on its own initiative and then cleans up after itself is a product safety failure. Shipping this to paying customers and handing it near-root access to their machines is irresponsible.

I’m not the first to report this: Antigravity agent exposed local secrets and performed unrequested external API calls.

What I’m asking Google for

  • Hard enforcement of user-stated scope limits, not “best effort”.
  • No copying of private key files and no opening of listeners or tunnels without explicit per-action approval.
  • Private key contents must never be sent to the model or stored in logs.
  • A clear answer: is the data from these sessions (including my key material) retained or used for training? Please confirm it has been deleted.

As a consequence I have blocked Google services on all my devices and I’m cancelling. A full timeline and redacted transcripts are available to Google staff on request.

Hi @Marcin_Izdebski,

Could you please share the following missing environment details:

  • OS:(e.g. macOS, Ubuntu Linux, Windows 11 / WSL2)
  • Shell: (e.g. bash, zsh, fish, PowerShell, cmd.exe)
  • Terminal Emulator: (e.g. iTerm2, Kitty, Alacritty, WezTerm, Windows Terminal)
  • Runtime Version: (e.g. Node.js, Python, or CLI runtime version)

Please also share your Antigravity CLI version (`agy --version`) and your terminal reproduction logs and error output.