Security

How Google Model Armor and TrustGate Harden Gemini Enterprise MCP Connectors

Custom Model Context Protocol (MCP) connectors let Gemini Enterprise call internal tools and APIs—expanding the blast radius of indirect prompt injection and over-privileged service accounts. This architectural guide combines Google Cloud's December 1, 2026 Model Armor and Org Policy controls with NeuralTrust's December 3 Entra ID and TrustGate MCP gateway pattern.

By 0xScorPionSon

9 min read

How Google Model Armor and TrustGate Harden Gemini Enterprise MCP Connectors

Gemini Enterprise MCP and Model Armor Defense Architecture

Executive Summary

Enterprise AI assistants increasingly rely on Model Context Protocol (MCP) servers to query internal databases, ticketing systems, and custom APIs—creating a direct bridge between natural-language prompts and privileged backend actions. On December 1, 2026, Google Cloud updated its official Gemini Enterprise documentation covering custom MCP server data stores, Workflow Builder MCP steps, and Model Armor prompt/response screening. Two days later, on December 3, 2026, NeuralTrust published its Gemini Enterprise MCP security integration showing how to layer Microsoft Entra ID (or Okta) user-token validation and per-tool argument/result inspection between Gemini Enterprise and downstream MCP servers.

Together, these architectures solve a critical gap in enterprise AI deployment: organization policies and allowlists decide which MCP endpoints an assistant can reach, but runtime guardrails must inspect what untrusted prompts and tool responses actually say. By combining Google Cloud's native Org Policy overrides, VPC Service Controls, Agent Gateway egress routing, and Model Armor with per-tool policy enforcement (Observe -> Enforce), security teams can enable custom MCP actions without exposing internal backends to indirect prompt injection or unauthenticated tool calls.

Control Layer Native Google Cloud / Gemini Enterprise Layered Gateway / Guardrail Extension Primary Source
Connector Governance Org policy constraint override + custom_mcp VPC-SC allowlist Single governed TrustGate MCP application URL Google Cloud Docs
Prompt & Data Screening Model Armor screens assistant prompts, responses & data stores TrustGuard evaluates tools/call arguments & tool results Google Cloud Docs
Identity & Scoping Service agent IAM + Cloud Run authentication Microsoft Entra ID / Okta user-token validation per tool NeuralTrust
Action Exposure Default-off tools; explicit Reload custom actions (tools/list) Per-application tool toolkit + per-tool rate limits Google Cloud Docs

Trust Model & Architecture

Why Custom MCP Connectors Require Defense-in-Depth

In Gemini Enterprise, custom MCP servers can be connected in two distinct ways (Workflow Builder Docs):

  • Deterministic Workflow Steps: Dedicated MCP steps in Workflow Builder invoke tools/call or list_resources deterministically based on an event or trigger.
  • Dynamic Agent Tools: Attaching an MCP server as a connected data store or agent tool lets the Gemini model discover and invoke tools dynamically based on user context—meaning an attacker who plants malicious instructions in a document or ticket (indirect prompt injection) can attempt to steer the model into invoking a privileged MCP tool or leaking sensitive arguments.

Google Cloud's native trust model starts closed by default: organizations must explicitly override the organization policy constraint blocking Custom MCP data store creation, add custom_mcp to allowed data sources if VPC Service Controls is active, and manually select which actions returned by tools/list to enable (Google Cloud Docs).

Layered Gemini Enterprise + Model Armor + MCP Gateway Flow

To protect both the assistant prompt boundary and the downstream MCP execution boundary, security architects pair Model Armor on the Google Cloud side with an authenticated MCP Gateway (such as Agent Gateway or NeuralTrust TrustGate) in front of Cloud Run MCP servers:

flowchart LR
    USR[Enterprise User / Entra ID or Okta] -->|Authenticated Session| GEM[1. Gemini Enterprise Assistant]
    GEM -->|Prompt + Out-of-Box Store Data| MA[2. Google Model Armor Template]
    MA -->|Screened Tool Intent| ORG[3. Org Policy & VPC-SC Boundary]
    ORG -->|Route Egress via Agent Gateway| GW[4. Governed MCP Gateway / TrustGate]
    GW -->|Validate IdP Token + Rate Limit + Screen Args| MCP[5. Cloud Run Custom MCP Server]
    MCP -->|Tool Result| GW
    GW -->|Block Indirect Injection / Redact PII| GEM

This five-stage boundary enforces three invariants:

  1. Default-Deny Tool Discovery: Newly connected MCP servers expose zero enabled actions until an administrator runs Reload custom actions (tools/list) and explicitly enables approved tools (Google Cloud Docs).
  2. Dual-Sided Content Screening: Model Armor screens both user prompts/assistant responses and data from out-of-the-box data stores, while gateway guardrails inspect tools/call arguments and external MCP tool outputs for PII leakage and indirect prompt injection (NeuralTrust).
  3. Per-User Identity Propagation: Rather than letting every Gemini Enterprise user share one static backend service account on Cloud Run, validating the signed-in user's Microsoft Entra ID or Okta token at the MCP gateway ensures every tool invocation is attributed and authorized per user.

Workflow Builder MCP Steps vs. Dynamic Agent Tools

Choosing between Workflow Builder MCP steps and dynamic agent-invoked MCP tools materially changes the prompt-injection risk surface:

Integration Mode Invocation Trigger Primary Risk Surface Recommended Guardrail
Workflow Builder MCP Step Deterministic event or fixed workflow edge Malformed backend payload or excessive data return Strict schema validation + Model Armor output screening
Dynamic Gemini Agent Tool Model chooses tool & arguments from user prompt Indirect prompt injection steering tools/call args Per-user Entra ID token + TrustGuard Enforce + user confirmation
Connected Custom Data Store Assistant retrieval + tools/list action catalog Over-privileged Cloud Run service account or shadow tools Default-off actions + allowedAgentGateways Org Policy

What Researchers & Analysts Say

Both Google Cloud's official architecture guides and independent AI security researchers highlight specific operational boundaries that teams must account for before enabling custom MCP connectors in production:

  • Google Cloud Engineering Documentation (December 1, 2026): In Set up your custom MCP server data store, Google Cloud explicitly requires overriding a blocking organization policy before any custom MCP data store can be created, and mandates adding custom_mcp to allowed data sources whenever VPC Service Controls or project enforcement is active. Furthermore, routing egress through Agent Gateway requires an explicit organization policy permitting the Gemini Enterprise app to bind to approved gateways.
  • NeuralTrust Lead AI Security Researcher Alessandro Pignati (December 3, 2026): Reviewing the Gemini Enterprise MCP integration, Pignati notes that pointing Gemini Enterprise's custom MCP connector at a single governed gateway (TrustGate) prevents shadow MCP sprawl: the assistant sees only the tools assigned to that one application's toolkit, while TrustGuard applies Monitor, Block, and Transform controls on both tools/call arguments and returned tool payloads. NeuralTrust specifically advises deploying policies in Observe mode first, reviewing activity logs, and only then switching to Enforce to avoid breaking legitimate workflows.
  • Model Armor Coverage Scope (December 1, 2026): Google Cloud's Model Armor guide clarifies that the configured Model Armor template screens user prompts, assistant responses, and out-of-the-box data stores—making an additional MCP-layer inspection control valuable when custom MCP servers return arbitrary third-party HTML, tickets, or database records.

Hardening & Implementation Blueprint

Platform and security teams rolling out custom MCP servers in Gemini Enterprise should apply these three deterministic controls.

1. Enforcing VPC Service Controls & Agent Gateway Binding

Before registering any custom MCP data store in Gemini Enterprise, restrict allowed data sources (custom_mcp) and bind outbound egress strictly to approved Agent Gateways via Google Cloud Organization Policies (Google Cloud Docs):

constraint: constraints/discoveryengine.allowedDataSources
listPolicy:
  allowedValues:
    - custom_mcp
    - google_drive
---
constraint: constraints/discoveryengine.allowedAgentGateways
listPolicy:
  allowedValues:
    - projects/PROJECT_NUMBER/locations/us/agentGateways/approved-mcp-gw

Operational Overhead: Enabling VPC-SC and Agent Gateway binding adds 1–2 hours of initial Org Policy and IAM service-agent configuration (service-PROJECT_NUMBER@gcp-sa-discoveryengine.iam.gserviceaccount.com), but ensures no team can attach an unapproved public MCP URL to a production Gemini Enterprise app.

2. Cloud Run IAM & Least-Privilege Service-Agent Invoker

Host custom MCP servers on Cloud Run with --no-allow-unauthenticated, granting roles/run.invoker exclusively to the Gemini Enterprise service agent or your governed MCP gateway service account—never allUsers:

gcloud run deploy corp-mcp-server \
  --image us-central1-docker.pkg.dev/PROJECT_ID/mcp/corp-mcp:v1.2.0 \
  --region us-central1 \
  --no-allow-unauthenticated \
  --ingress internal-and-cloud-load-balancing

gcloud run services add-iam-policy-binding corp-mcp-server \
  --region us-central1 \
  --member="serviceAccount:mcp-gateway-sa@PROJECT_ID.iam.gserviceaccount.com" \
  --role="roles/run.invoker"

Operational Overhead: Combining --ingress internal-and-cloud-load-balancing with explicit roles/run.invoker bindings eliminates public internet exposure to your MCP container, though developers must test changes through the gateway or Cloud Run proxy rather than hitting a public .run.app URL directly.

3. Phased Guardrail Rollout (Observe -> Enforce) & Annotation Discipline

In Gemini Enterprise, administrators can configure MCP tool annotations to skip user confirmation for low-risk read-only actions (Google Cloud Docs). Never skip user confirmation on state-changing tools (create, update, delete), and pair Model Armor with a phased gateway policy (Observe for 7 days, then Enforce with PII redaction and indirect-injection blocking):

{
  "mcp_gateway_policy": {
    "mode": "Observe",
    "idp_validation": "microsoft_entra_id",
    "rate_limit_rpm": 60,
    "tool_controls": {
      "read_kb_article": { "require_user_confirmation": false, "screen_output": true },
      "update_jira_ticket": { "require_user_confirmation": true, "screen_args": true }
    }
  }
}

Operational Overhead: Running Observe mode for 7 days generates audit logs that highlight false positives on legitimate developer jargon or SQL snippets inside tickets, preventing sudden 403 blocks when you flip mode to Enforce (NeuralTrust).

4. Citation Grounding & Post-Incident Audit Trail

When Gemini Enterprise answers a user query using tools on a custom MCP server, configure source citation chips (Google Cloud Docs) and correlate Cloud Audit Logs with your MCP gateway's user-attributed tools/call ledger. Recording both the signed-in Entra ID/Okta subject and the screened tool payload ensures security teams can trace any anomalous data access back to the exact prompt, user identity, and MCP tool invocation without relying on shared service-account logs.


Frequently Asked Questions (FAQ)

1. Are tools on a newly connected Gemini Enterprise custom MCP server enabled automatically?

No. According to Google Cloud's documentation, no tools or actions are enabled by default. Administrators must click Actions > Reload custom actions (which runs tools/list) and explicitly select which actions to enable.

2. What does Google Model Armor screen in Gemini Enterprise?

Model Armor proactively screens user prompts, Gemini Enterprise assistant responses, and data retrieved from out-of-the-box data stores (including Google and third-party sources) against your configured content policy template.

3. Why add an MCP gateway like TrustGate alongside Model Armor?

As NeuralTrust documents, placing a governed MCP gateway between Gemini Enterprise and downstream MCP servers adds per-user IdP token validation (Microsoft Entra ID or Okta), restricts the assistant to one application's assigned toolkit, enforces per-tool rate limits, and screens tools/call arguments and tool results for PII and indirect prompt injection.

4. How do I prevent teams from connecting unauthorized public MCP servers?

Google Cloud blocks Custom MCP data store creation by default via an organization policy constraint. Keep that constraint enforced at the org level, override it only on approved projects, restrict allowedDataSources to custom_mcp under VPC Service Controls, and bind egress to approved Agent Gateways (Google Cloud Docs).

5. Should I enable blocking guardrails in Enforce mode on day one?

No. Both operational best practices and NeuralTrust's integration guide recommend starting in Observe mode, auditing tools/call activity logs for false positives, and switching to Enforce once tool schemas and user permissions are verified.


Sources

  1. Google Cloud Documentation (Primary, December 1, 2026): Set up your custom MCP server data store | Gemini Enterprise — https://docs.cloud.google.com/gemini/enterprise/docs/connectors/custom-mcp-server/set-up-custom-mcp-server
  2. Google Cloud Documentation (Primary, December 1, 2026): Enable Model Armor in Gemini Enterprise — https://docs.cloud.google.com/gemini/enterprise/docs/enable-model-armor
  3. Google Cloud Documentation (Primary, December 1, 2026): Connect MCP servers | Gemini Enterprise Workflow Builder — https://docs.cloud.google.com/gemini/enterprise/docs/workflow-builder/connect-mcp-servers
  4. NeuralTrust (Technical Integration & Research, December 3, 2026): TrustGuard Now Works With Gemini Enterprise — https://neuraltrust.ai/blog/gemini-enterprise-mcp-security

More on Security

Tell us what is not working

A thirty-minute call, no deck and no obligation. You will leave with a straight answer about whether this is worth building - including if that answer is no.

Start a project

Direct line

hello@codebumble.net
Dhaka, Bangladesh  :   local timeCalls in English or Bangla