Key takeaway: artificial intelligence (AI) agent data security on Google Cloud means protecting data from agents that act for many users. Give every agent its own SPIFFE-based Agent Identity, route its traffic through Agent Gateway, fence it with virtual private cloud (VPC) Service Controls rules that read Model Context Protocol (MCP) attributes, and enforce row and column policies in BigQuery so the data layer gets the final say.
A year ago, when we reviewed enterprise cloud services on Google Cloud, the AI part of the conversation was mostly about models: which ones were allowed, where prompts were logged, who could fine-tune. That has changed. The workloads we review now are agents that open a BigQuery connection, call three MCP tools and write a ticket, all on behalf of a user who never sees any of it.
The hard question is no longer “is the model safe?” It’s “whose permissions is this agent using, and what stops it reaching data its user should never see?” Google shipped much of the answer in 2026, but the pieces live in different products and docs. This post puts them together in the order we deploy them. For the platform-wide baseline (organization policies, Security Command Center, landing zone), start with our guide to Google Cloud security for enterprises; if your agents run on Kubernetes, our GKE security baseline covers the cluster side.
Why do AI agents change data security on Google Cloud?
Agents break the assumption that one application uses one service account with one fixed set of permissions. An agent serves many users, picks its own tools at runtime and can chain calls in ways no developer wrote down. If it runs as a broad service account, every user inherits that account’s reach.
The classic pattern was a service account per application, granted roles at the project or dataset level. It worked because the application’s code paths were known. With agents, the model decides the code path at runtime, so a role that looked reasonable in a design review becomes the blast radius of a single bad prompt.
In the reviews we run, the same four gaps come up again and again:
- Shared, long-lived service accounts. One account, often with a downloaded key, backs several agents and a few scripts. When something goes wrong, the audit log says “the service account did it” and nothing more.
- No end-user context at the data layer. BigQuery sees the agent’s identity, not the analyst it’s working for, so row-level rules can’t tell users apart.
- Open egress. The agent runtime can reach any MCP server or software as a service (SaaS) application programming interface (API) on the internet, which turns a prompt injection into a data exfiltration path.
- Write tools nobody meant to grant. A read-only use case quietly gets a tool that can run arbitrary Structured Query Language (SQL) or send email.
Each gap maps to a 2026 Google Cloud control. The rest of this post follows the order data actually flows: identity first, then the gateway, then the perimeter, then the data itself.
What is Google Cloud Agent Identity?
Google Cloud Agent Identity is a strongly attested, cryptographic identity based on the Secure Production Identity Framework for Everyone (SPIFFE) standard that Google Cloud gives each agent, so it can authenticate to Google application programming interfaces (APIs), tools and other services. Unlike service accounts, agent identities aren’t shared by multiple workloads by default, can’t be impersonated, and don’t allow long-lived service account keys.
According to the Agent Identity overview, each agent gets an X.509 certificate that is valid for 24 hours and kept current automatically. Direct calls to Google Cloud APIs use mutual Transport Layer Security (TLS), and access tokens are cryptographically bound to the agent’s certificate, which makes a stolen token far less useful. Agent Identity is supported on Gemini Enterprise Agent Platform Runtime (Agent Runtime), Gemini Enterprise, Cloud Run and Google Kubernetes Engine.
How does the identity show up in IAM?
Each agent appears as an identity and access management (IAM) principal. In a project that belongs to an organization, it looks like this:
principal://agents.global.org-ORGANIZATION_ID.system.id.goog/resources/SERVICE/RESOURCE_PATH
You grant roles to that principal directly in allow policies, and deny policies work against it too. A Principal Access Boundary policy limits which resources the agent can reach, regardless of the roles it collects later. That cap is the control we value most: it limits damage even when someone over-grants a role under deadline pressure.
Three operational details that catch teams out
- A replacement agent is a new principal. If you delete an agent and deploy a replacement, it gets a new resource ID and therefore a new principal, so its roles must be granted again. Put the grants in Terraform next to the agent, not in a ticket.
- Deleting an agent leaves its bindings behind. IAM bindings that reference a deleted agent aren’t removed for you. Add a cleanup step to your decommissioning runbook, or your policies fill with orphans.
- External services need a different path. To reach external backends, custom APIs or other clouds, agents request OpenID Connect (OIDC) ID tokens or use the Agent Identity auth manager for stored credentials, rather than API keys in code.
Agent Identity can act on the agent’s own behalf or on behalf of an end user, which matters for the data layer below. For the identity model across clouds, see our guide to AI agent identity.
How does Agent Gateway control what agents can reach?
Agent Gateway is Google Cloud’s enforcement point for agent traffic, both into agents (client-to-agent) and out of them (agent-to-anywhere). On egress it enforces workload-bound identity, destination registry compliance, IAM access policies and payload sanitization before a request reaches a tool, an MCP server or another agent.
The design choice that matters most is the default. The Agent Gateway overview states that “by default, all connections are blocked unless an explicit IAM policy grants access.” That’s the opposite of most agent frameworks, where an agent can call anything its code can reach, and it’s the main reason we put agents behind the gateway even for internal tools.
The gateway supports several policy types, all enforced through authorization policies or extension bindings:
- IAM Unified Access Policies tie an agent’s identity to the tools and endpoints approved in Agent Registry.
- Model Armor scans prompts and tool responses for prompt injection, sensitive data leaks and harmful content.
- Semantic governance policies express plain-language rules about tool use.
- Custom authorization engines plug in through Service Extensions. Token management policies are listed as coming soon.
The gateway terminates mTLS, enforces Demonstrating Proof of Possession (DPoP) for agent traffic, and works with the Agent Identity auth manager for Open Authorization (OAuth) 2.0 and Workload Identity Federation. Check availability per runtime: Google lists agents on Gemini Enterprise Agent Platform and Google Kubernetes Engine (GKE) as supported, with Cloud Run and Kubernetes clusters outside Google Cloud in limited preview.
How do VPC Service Controls protect data from AI agents?
VPC Service Controls draw a perimeter around Google Cloud services so data can’t leave it, even with valid credentials. In 2026 Google extended perimeters to understand agents: you can write ingress and egress rules for agent identities and condition them on which MCP tool is being called.
Google’s June 27, 2026 update on securing agentic AI added three capabilities:
- Agent identities in directional rules. A single principal maps to one agent; a
principalSetmaps to a fleet. If an agent is compromised, you can revoke its access at the perimeter immediately, even while it still holds valid IAM credentials. - MCP attribute conditions. Rules can test
mcp.toolName,mcp.methodandmcp.tool.isReadOnly. Google’s own example grants an agent read access to a Workspace MCP server while denying its ability to send email. - Native Agent Platform protection. When Gemini Enterprise Agent Platform is a protected service inside a perimeter, public internet access to the instance is blocked automatically.
On November 9, 2026, IAM-role-based ingress and egress rules became generally available, and Workload Identity Federation for GKE in perimeter rules entered preview (SecurityBrief). Together they cut down the long lists of manual exceptions that usually make perimeters brittle.
The mcp.tool.isReadOnly condition is the one we add first. It turns “this agent should only read” from a design intention into a rule the network enforces, whatever the agent’s prompt or code says.
How do you keep BigQuery data safe when agents query it?
BigQuery is where most agent data risk ends up, because it’s where the sensitive tables live. Keep agents read-only by default, give them their own identity, and push row and column rules into BigQuery itself so every agent and every tool gets the same answer.
Lock down the BigQuery MCP server
Google’s BigQuery remote MCP server (endpoint https://bigquery.googleapis.com/mcp) is enabled when you enable the BigQuery API. Using it requires the MCP Tool User, BigQuery Job User and BigQuery Data Viewer roles. The only tool that isn’t read-only is execute_sql; execute_sql_readonly covers read queries.
Google recommends a separate identity for agents and documents a deny policy that restricts read-write MCP tool use. For read-only agents we deny execute_sql that way. Also note the server’s defaults: query processing is limited to three minutes, and results are capped at 3,000 rows. Those caps are guardrails, but they aren’t access control.
Push row and column rules into BigQuery
Row access policies and policy tags make the data layer the final authority. A row access policy looks like this:
CREATE ROW ACCESS POLICY claims_east_only
ON `my-project.claims.cases`
GRANT TO ("group:claims-east@example.com")
FILTER USING (region = "US-EAST");
Column-level security uses policy tags, with dynamic data masking for fields such as national IDs or card numbers. The rule we give clients is simple: an agent should never be the reason a column is visible. If a human analyst in that role can’t see it, the agent working for them shouldn’t either.
Where you can, let the agent act on behalf of the end user for data access, so BigQuery can apply that person’s row and column policies. Where the agent must act as itself, give its principal a narrow, filtered policy. Either way, test it: run the same query as the agent and as a restricted user in a non-production project, and compare the rows returned before you go live.
Where does Model Armor fit?
Model Armor is the content layer: it screens prompts and responses for prompt injection, sensitive data leaks and harmful content. It doesn’t decide who can see what; it catches what slips through the identity and data layers.
Use it in two places: as Agent Gateway policy, so tool responses are scanned before they reach the model, and as a floor setting with MCP sanitization for MCP traffic, an optional configuration the BigQuery MCP documentation describes. One caution from the same page: with logging enabled, Model Armor logs the entire payload, which can expose sensitive information, so route those logs to a restricted bucket.
In November Google also previewed a Model Armor custom topic detector. For a claims or patient-intake agent, it’s a cheap way to catch conversations drifting outside approved topics.
Which layer stops which threat?
No single control covers an agent end to end; each layer stops a different failure. This is the map we use when a client asks “do we really need all of these?”
| Threat | Identity (Agent Identity, PAB) | Gateway (Agent Gateway) | Perimeter (VPC Service Controls) | Data (BigQuery row and column security) | Content (Model Armor) |
|---|---|---|---|---|---|
| Stolen agent credential | Certificate-bound tokens, 24-hour certificates | mTLS and DPoP at the gateway | Perimeter blocks use outside the boundary | Limits what the token can read | — |
| Over-granted role | Principal Access Boundary caps reach | Deny-by-default tool access | Rules scoped to agent principals | Rows and columns still filtered | — |
| Prompt injection via a tool response | — | Scans responses before the model sees them | Blocks unapproved egress | Agent can’t read beyond its policy | Detects the injection |
| Exfiltration to the internet | — | Egress only to registered endpoints | Data can’t leave the perimeter | — | Flags sensitive data in outputs |
| Agent uses a write tool it shouldn’t | Deny policy on the tool | Authorization policy per tool | mcp.tool.isReadOnly condition |
Read-only roles | — |
| Cross-user data exposure | Act on behalf of the end user where possible | — | — | Row access policies and masking | — |
Read it down the columns, not across. If one column is empty for a threat you care about, at least two others should be covering it.
What does this look like in a real deployment?
Here’s an illustrative pattern, not a client story: a claims-assistant agent for an insurer, built with the Agent Development Kit and deployed on Agent Runtime. Adjusters ask it to summarize open claims and draft letters. It reads from BigQuery and a document store, and it can create tickets.
- Identity. The agent gets its own Agent Identity. Its roles are granted in the same Terraform module that deploys it, with a Principal Access Boundary limiting it to the claims project.
- Data access. Queries run on behalf of the adjuster where possible, so their regional row access policy applies. Policy tags mask claimant national IDs from everyone except the fraud team.
- Tools. BigQuery MCP with
execute_sqldenied, a read-only document tool, and one write tool, ticket creation, behind Agent Gateway with an authorization policy and human approval for letters. - Perimeter. The claims project, Agent Platform and BigQuery sit inside one VPC Service Controls perimeter. Egress rules let the agent principal reach only the ticketing MCP server, and only for its create method.
- Content. Model Armor on gateway traffic for injection and sensitive data, plus a custom topic detector limited to claims handling.
- Evidence. Gateway, IAM and BigQuery audit logs go to the security information and event management (SIEM) (Google Security Operations, or Microsoft Sentinel in a multi-cloud estate), keyed on the agent principal and the end user.
“Agents multiply the number of paths to your data. If authorization lives only in the agent’s code, every new agent is a new place to get it wrong. Give the agent a real identity, then make the network and the data layer check it independently.”
iNET SYSTEMS Cloud Practice
What changed on Google Cloud in November 2026?
November brought several agent security updates and one announcement worth tracking. Watch the status column: several are previews and shouldn’t carry production controls on their own yet.
| Date | Update | Status |
|---|---|---|
| Nov 22, 2026 (reported) | Agent Compute Engine: agents run in isolated microVMs; credentials stay outside the sandbox, and an external Agent Gateway authenticates requests and injects the required secrets | Announced; not yet available, preview targeted “in the coming months” |
| Nov 9, 2026 | Auth Manager: credentials in a Google-managed vault governed by IAM, with automated OAuth 2.0 and Proof Key for Code Exchange (PKCE) flows | Generally available |
| Nov 9, 2026 | Agent Identity JSON Web Token (JWT) support: standard OIDC tokens so agents reach Amazon Web Services (AWS), Azure, on-premises back ends and MCP servers without static API keys | Preview |
| Nov 9, 2026 | VPC Service Controls ingress and egress rules based on IAM roles | Generally available |
| Nov 9, 2026 | Workload Identity Federation for GKE in perimeter rules | Preview |
| Nov 9, 2026 | Model Armor custom topic detector | Preview |
| Nov 9, 2026 | Cloud next-generation firewall (NGFW) advanced malware sandboxing (Palo Alto Networks WildFire) | Generally available |
Agent Compute Engine is the one to watch. Keeping API keys and refresh tokens outside the agent’s sandbox means a compromised agent process has nothing durable to steal.
What is the 10-step baseline for AI agent data security on Google Cloud?
It’s the minimum control set we apply before an AI agent gets production data access on Google Cloud. Steps 1 to 3 cover identity, 4 to 6 the network path, 7 and 8 the data, and 9 and 10 operations.
- One Agent Identity per agent. Retire shared service accounts and downloaded keys for agent workloads.
- Cap reach with Principal Access Boundary. Limit each agent to the projects it serves, whatever roles it collects later.
- Manage grants as code. Grant roles in the agent’s Terraform module, and remove bindings when the agent is deleted.
- Route agent traffic through Agent Gateway. Keep its deny-by-default posture and register every approved tool.
- Put Agent Platform and data services in a VPC Service Controls perimeter. Scope ingress and egress rules to agent principals.
- Condition rules on MCP attributes. Start with
mcp.tool.isReadOnlyfor agents that should only read. - Make BigQuery read-only for agents. Deny
execute_sqlunless a use case truly needs writes. - Enforce rows and columns in BigQuery. Use row access policies, policy tags and masking, tested as the agent and as a restricted user.
- Screen content with Model Armor. Apply it on gateway and MCP traffic, with logs in a restricted bucket.
- Log against both identities. Send gateway, IAM and data access logs to your SIEM, keyed on agent principal and end user.
This baseline also produces audit evidence. Per-agent identities, perimeter rules and data access logs map directly to System and Organization Controls 2 (SOC 2) access-control and monitoring criteria; our guide to SOC 2 for AI agents lists the full evidence pack.
Are your agents querying BigQuery through a shared service account?
Book a Google Cloud security assessment with iNET SYSTEMS. We’ll review your agent identities, Agent Gateway policies, VPC Service Controls perimeters, BigQuery access and logging, and give you a prioritized remediation plan you can act on this quarter. Book your assessment or explore our Google Cloud consulting services.

