How to Secure Google Antigravity and Gemini Agents: 10 Controls for 2026

Summary: The weeks before someone resigns are when customer lists, pricing and source code are most likely to walk out the door, and AI tools now make that data easier to reshape and carry. Companies that watch data movement on the device, in context, can protect what matters without treating every employee like a suspect.

Kitecyber | Data & Gen AI Security | November 2026

A developer opens Google Antigravity, hands an agent a ticket and lets it plan, edit files, run the build and check the result in its own browser. Another runs gemini in a terminal to refactor a service. A product manager asks Gemini in Chrome to auto browse through a CRM and update twenty records. A finance analyst uses the Gemini desktop app to turn a folder of local spreadsheets into a report. Each of them has put a Google agent to work with their own access to files, terminals, browsers and business data.

That is the promise of agentic AI, and Google is shipping it on every surface it owns: the IDE, the terminal, the browser, the desktop and Workspace. This guide explains where the risk sits, walks through ten controls security teams can put in place using what Google provides, highlights the settings that matter most, and closes with the Gemini app and Workspace policies every organization should configure.

Key takeaways

Why Google’s agents change the risk model

Google Antigravity is an agent-first development platform: a desktop app with an agent manager, the agy CLI and IDE extensions. Agents plan work as reviewable artifacts, edit files, run terminal commands, call MCP servers and drive a built-in browser subagent. It can be used with personal Google accounts, business accounts, or licensed through Gemini Enterprise under Google Cloud terms, and it can run Gemini and administrator-enabled third-party models.

Gemini CLI is Google’s open-source terminal agent. It reads and writes files, runs shell commands, searches the web and calls MCP servers and extensions. Agent mode in Gemini Code Assist uses the same configuration.

Gemini in Chrome can read the current page, act across Google apps and, with auto browse, complete multi-step tasks in browser tabs, including signing in to sites with Google Password Manager when the user allows it. Chrome can also connect to Gemini Spark, an agent that can invoke auto browse in the active browser session.

The Gemini desktop app for macOS and Windows can share screen context, dictate into any app, organize local files into Docs and Sheets, and launch Antigravity in one click.

The Gemini app, Gemini in Workspace and Gemini Enterprise work across Gmail, Drive, Docs, Calendar and connected business systems.

Where Google’s admin-enforced controls exist today

This is the most important thing to understand before rollout, because it decides how much you can enforce centrally.

ProductCentral, admin-enforced controlsWhat that means
Gemini CLIYes: Enterprise Admin Controls (Code Assist Standard and
Enterprise) that users cannot override locally, plus a
system settings.json
You can force strict mode, sandboxing, MCP allowlists
and an authentication method
AntigravityPartly: Gemini Enterprise licensing, IAM, VPC Service
Controls and request/response logging. Agent permissions
are set in the app per user and project
Distribute and verify a baseline. Use endpoint controls
to detect drift
Gemini in ChromeYes: Chrome Enterprise policies by OU or groupYou can turn Gemini, auto browse and Spark on or off
and limit sites
Gemini app and WorkspaceYes: Admin console, DLP for Gemini, Vault, audit logs,
context-aware access
Strong controls for cloud data in your domain

Shared responsibility

Google providesYour organization decides
Model safeguards, product security, sandboxes and patchesWhich accounts, licenses and products employees may use
Enterprise data commitments (Workspace and Google Cloud
customer data is not used to train models outside your
domain without permission)
What data employees may put into prompts, files and
agent tasks
Admin controls: Admin console, Chrome policies,
Gemini CLI admin controls, Gemini Enterprise IAM
Whether those controls are configured, tested and enforced
Audit logs, Vault, request/response logging and
OpenTelemetry export
Who collects and reviews them, and how incidents are handled
Which terms apply depends on how a user signs in. Google’s Gemini CLI terms page states that with a personal account on Gemini Code Assist for individuals, or an unpaid Gemini API key, prompts, answers and related code may be used to improve Google’s products, including model training. Code Assist Standard and Enterprise, paid API and Vertex AI usage are not used for training. Enterprise commitments only help if employees are actually signed in to enterprise accounts.

What has already gone wrong

Researchers have tested Google’s agents heavily since launch. The examples below are drawn from public disclosures.

The pattern repeats across vendors: untrusted content steers an agent that already has the user’s access.

Six surfaces where data can leave through Google’s agents

10 controls to secure Antigravity and Gemini agents on employee devices

1. Build an inventory of Google agents, accounts and add-ons

Repeat the inventory regularly. These products release frequently and their settings models change.

Priority: Immediate

2. Pin usage to company identities and licenses

Header-based controls only apply where traffic passes through your proxy, so remote devices need an endpoint-based path.

Priority: Immediate

3. Set and verify a safe permission baseline in Antigravity

Antigravity evaluates every sensitive action as a permission in the form action(target) across Deny, Ask and Allow lists, with Deny always winning. The supported actions include command, read_file, write_file, read_url, execute_url (browser navigation), download_url and mcp, plus unsandboxed in the settings business accounts use.

The most important settings:

command(sudo)
command(rm -rf)
command(regex:curl .*)
write_file(.git/)
read_file(/Users/*/.ssh)
read_file(/Users/*/.aws)

Because these settings live in the app, publish a baseline, check it during onboarding and audits, and watch for projects that override the global preset. Verify current admin options with Google, since enterprise policy controls for Antigravity are still evolving.

Priority: High

4. Enforce Gemini CLI policy centrally

Gemini CLI has the most mature admin controls of Google’s agents.

{
  "security": {
    "disableYoloMode": true,
    "disableAlwaysAllow": true,
    "folderTrust": { "enabled": true },
    "environmentVariableRedaction": { "enabled": true },
    "auth": { "enforcedType": "vertex-ai" }
  },
  "tools": { "sandbox": "docker", "sandboxNetworkAccess": false },
  "mcp": { "allowed": ["corp-tools"] },
  "telemetry": { "enabled": true, "target": "gcp", "logPrompts": false },
  "privacy": { "usageStatisticsEnabled": false }
}

Priority: High

5. Treat repositories, rules files and extensions as untrusted input

Every major Antigravity and Gemini CLI finding started with content the agent read.

Priority: High

6. Govern MCP servers and connectors with least privilege

Priority: High

7. Configure Gemini in Chrome and the desktop app deliberately

Priority: Medium–High

8. Control what sensitive data reaches the prompt

Workspace’s DLP for Gemini is valuable: it can block Gemini from using Drive sources (with Gmail and Chat in beta) that match your rules. But Google states that services such as Gemini Enterprise and Gemini in Chrome are not subject to those Drive restrictions, and it does not see a local .env file that Antigravity reads or a spreadsheet pasted into a desktop app.

Priority: High

9. Monitor usage and prepare an incident playbook

Priority: Medium–High

10. Write an AI acceptable-use policy and train people on it

Map it to frameworks you already report against, such as SOC 2, ISO 27001, HIPAA or GDPR.

Priority: Foundational

Securing the Gemini app and Gemini in Workspace: policies to configure

Most employees will use Gemini through the Gemini app and Workspace rather than coding agents. Review these settings in the Google Admin console before broad rollout. Availability varies by edition.

Area Policy to configure Why it matters
Access Turn the Gemini app, Gemini in Workspace apps, NotebookLM and Gemini Enterprise on only for the OUs or groups that need them. Configuration groups override OU settings. Limits who can use each capability.
Licensing Make sure users have a qualifying edition. Users without one get consumer terms if you grant them access. Enterprise data protections apply only to licensed use.
Device and context Apply context-aware access to the Gemini app and NotebookLM (identity, device posture, IP, location). Keeps Gemini off unmanaged or non-compliant devices.
Connected apps Turn Workspace and other Google apps in Gemini on or off; review Gemini Enterprise access to Workspace data. Controls how far a single prompt can reach.
Data protection DLP for Gemini (Block data access or Audit only), classification labels, IRM, client-side encryption, Drive trust rules. Stops Gemini using sensitive sources.
Retention Set Gemini conversation history and auto-delete (3, 18 or 36 months), and Vault retention rules and holds. Controls how long prompts and responses persist and supports eDiscovery.
Sharing Decide whether users may share Gemini conversations and Gems. Prevents internal oversharing of sensitive chats.
Browser Set GeminiSettings, auto browse and Spark policies; add Chrome Enterprise Premium DLP and URL filtering. Governs Gemini where most work happens.
Audit Review Gemini for Workspace log events, usage reports and Drive access logs; export to BigQuery or your SIEM. Gives evidence for investigations and audits.

Two practical notes. Admin console settings govern only your domain, so an employee on a personal Gmail account is outside all of them. And tell employees what is monitored and why; clear rules and in-the-moment guidance change behavior better than surprise blocks.

Quick-start checklist

# Control Google option Priority
1 Inventory agents, accounts, configs and add-ons MDM app inventory, Chrome management reports, config review Immediate
2 Company identities and licenses only Gemini Enterprise, Code Assist, enforcedType, consumer-account blocking header Immediate
3 Antigravity permission baseline Default or Request Review preset, Sandbox Mode, Strict mode, deny rules High
4 Gemini CLI enforced policy Admin Controls, system settings.json, disableYoloMode, sandbox High
5 Untrusted repos, rules files and extensions Version floors, folder trust, extension allowlists, artifact review High
6 MCP and connector governance mcp.allowed, admin MCP allowlist, mcp() rules, connected-app settings High
7 Chrome and desktop agents GeminiSettings, GeminiActOnWeb*, GeminiSparkSettings, Chrome Enterprise Premium Medium–High
8 Data-aware controls DLP for Gemini, IRM, CSE, plus endpoint DLP for local data High
9 Monitoring and incident response OpenTelemetry, request/response logging, Workspace audit logs, Vault Medium–High
10 Policy and training Internal Foundational

Where native controls stop

Google’s controls are the right foundation and every organization using these products should deploy them. It is still worth being clear about the gaps:

Closing those gaps means adding controls on the device itself that understand data, user, process and network context across every AI tool, not one vendor at a time.

Where Kitecyber fits

Kitecyber provides Gen AI and data security that runs on the endpoint, the layer where Antigravity, Gemini CLI, the Gemini desktop app and Gemini in Chrome actually work. A single lightweight agent combines device posture, OS and process activity, user activity, network activity and on-device data classification across 80+ categories. That context lets security teams:

Kitecyber can run as SaaS, self-hosted or with your own keys, and typically goes live in about a day. It complements Google’s native controls rather than replacing them.

Book a Kitecyber walkthrough at kitecyber.com to see Antigravity, Gemini and other AI activity, data context and policy on one endpoint view.

Frequently Asked Questions

It can be, with care. License it through Gemini Enterprise, keep the sandbox on, avoid Turbo outside containers, enable Strict mode for sensitive work, restrict browser and MCP permissions, and keep it updated. Google itself lists prompt-injection exfiltration and permissive auto-execution as known risks.

A setting that forces review for terminal commands, browser JavaScript and artifacts, ignores the terminal allowlist, respects .gitignore, blocks files outside the workspace and limits Markdown images and URL reads to your browser allowlist.

Under Workspace and Google Cloud enterprise terms, customer data is not used to train models outside your domain without permission. For Gemini CLI, Google states that free individual Code Assist accounts and unpaid API keys may be used for model training, while Standard, Enterprise, paid API and Vertex AI usage is not. Pin employees to enterprise identities.

Use Enterprise Admin Controls in the Management Console, which users cannot override, and deploy a protected system settings.json that disables YOLO mode, forces sandboxing, enforces the sign-in method and allowlists MCP servers.

Leave it off by default and enable it with GeminiActOnWebSettings only for specific groups. Restrict where it can act with GeminiActOnWebAllowedForURLs and GeminiActOnWebBlockedForURLs, and govern the Spark agent with GeminiSparkSettings.

Not directly. It controls which Drive, Gmail and Chat sources Gemini can use in Workspace services. It does not cover Gemini Enterprise, Gemini in Chrome or local files read by Antigravity or Gemini CLI.

The Antigravity prompt-injection exfiltration and persistence findings (2025), Pillar’s Secure Mode bypass (fixed February 2026), Gemini CLI’s 2025 context-file code execution, CVE-2026-13745 (fixed in Gemini CLI 0.39.1), and Workspace issues GeminiJack and the Gemini Trifecta. All have fixes, but the underlying pattern of prompt injection remains.

Ajay Gulati

Ajay Gulati is a passionate entrepreneur focused on bringing innovative products to market that solve real-world problems with high impact. He is highly skilled in building and leading effective software development teams, driving success through strong leadership and technical expertise. With deep knowledge across multiple domains, including virtualization, networking, storage, cloud environments, and on-premises systems, he excels in product development and troubleshooting. His experience spans global development environments, working across multiple geographies. As the co-founder of Kitecyber, he is dedicated to advancing AI-driven security solutions.

Scroll to Top