AegisAI Perspectives · 165

How does a startup protect Gemini in Gmail from prompt injection in email?

A startup protects Gemini in Gmail from prompt injection in email with Google's defenses, Admin console limits, and a check on each email for hidden text.

TL;DR
Answer
A startup protects Gemini in Gmail with Google's built-in defenses, Admin console limits on where Gemini reads mail, and a check on each incoming email for hidden instructions.
Who it's for
If you run IT at a startup, this answers "How does a startup protect Gemini in Gmail from prompt injection in email?" with where each setting sits in the Admin console and what to set.
Watch out for
Turning Gemini off in Gmail does not stop Gemini reaching Gmail data from other apps.
What AegisAI does
Tested against the real thing, reproducing the disclosed 0DIN payload in ordinary benign mail, AegisAI flags it and identifies the hidden text as an injected instruction rather than matching a keyword.
Book a demo

See it on your own Google Workspace or Microsoft 365 tenant. No MX change.

Or get the Q3 2026 State of the AI Attack report (free, instant download)

Not ready for a demo? Check your domain.

How does a startup protect Gemini in Gmail from prompt injection in email?

A startup protects Gemini in Gmail with Google's built-in defenses1, Admin console limits on where Gemini reads mail5, and a check on each incoming email for hidden instructions21. AI assistants such as Gemini read mail for the user, and Google says indirect prompt injection hides malicious instructions in external data such as emails3. AegisAI inspects incoming mail for the concealed payloads engineered to manipulate them21.

If you run IT at a startup and want to protect Gemini in Gmail from prompt injection in email, start with the Google settings below. The email check and the eight general steps for any AI email assistant are in how to protect AI email assistants from prompt injection. How the Google Workspace connection works is on the inbound email security page. Background on Gemini and Copilot as mail readers is in The Inbox Has a Second Reader.

What you can do by the end

  • Find the Admin console screen that turns Gemini on or off in Gmail for each team.
  • Separate Google's built-in prompt injection defenses from the controls an admin can switch.
  • Add a check on inbound mail that reads hidden text as well as visible text.

Key takeaways

- Google lists six layers of defense for Gemini against indirect prompt injection, from content classifiers to model resilience.

- Gemini features in Workspace services, Gmail included, are on by default4.

- Hidden text set to font-size:0 or color:white shows as blank space in Gmail, yet Gemini's summary can repeat it as a fake security alert18.

- The UK NCSC says to reduce the risk and the impact of prompt injection, and to beware any vendor that claims it can stop it17.

The short answer

QuestionAnswerSource
How does a startup protect Gemini in Gmail from prompt injection in email?Google's built-in defenses, Admin console limits, and a check on each incoming email.Google Workspace Admin Help; AegisAI
What does Google build into Gemini against prompt injection?Six layers, from prompt injection content classifiers to model resilience.Google Workspace Admin Help
Where is Gemini turned off for Gmail?Menu, Generative AI, Gemini for Workspace, then the Feature access panel, Edit next to the service, On or Off, Save.Google Workspace Admin Help
Does turning Gemini off in Gmail keep Gemini out of mail?Not fully7. See step 4 and the questions below.Google Workspace Admin Help

Short on time? Watch the explainer, or book a demo.

How does prompt injection in email reach Gemini in Gmail?

It reaches Gemini through the email body. Google's security blog describes indirect prompt injection as hidden malicious instructions within external data sources, which may include emails, documents, or calendar invites3. OWASP says indirect prompt injections occur when a model accepts input from external sources, such as websites or files15.

In a write-up dated July 10, 2025, 0DIN showed instructions styled with font-size:0 or color:white. Gmail rendered them as blank space. Gemini's summary repeated them as a fake security alert.

The root cause is in the model. The UK NCSC says there is no inherent distinction between data and instruction in a large language model16. So an email that Gemini reads is also text that Gemini may follow. Treat every summary of external mail as untrusted output.

What does Google already do, and what stays open?

Google runs six layers inside Gemini. They are prompt injection content classifiers (machine-learning models that detect malicious prompts and instructions), security thought reinforcement (security instructions added around the prompt content), markdown sanitization and suspicious URL redaction (redacting external image URLs and suspicious links), a user confirmation framework, end-user security mitigation notifications, and model resilience (which protects Gemini models from explicit malicious manipulation)1.

Two gaps stay open for a startup.

  • In July 2025, 0DIN said Google had already published mitigations, but the technique remained viable19.
  • The Gmail switch alone leaves Gmail data within reach of Gemini in other apps. Step 4 limits the Gemini app12.

The NCSC advice is to reduce the risk and the impact. Plan for fewer injected emails reaching Gemini and for less that Gemini can reach when one does.

Set the Gemini in Gmail controls in this order

Start with the edition, then set Gemini in Gmail access, admin rights, the Gemini app, smart features, mail flow protections and user guidance. Do them for one organizational unit first, then roll out.

  1. Confirm the edition. Google lists Enterprise Standard and Enterprise Plus, among others, as the editions that can manage Gemini feature access per Workspace service14. Check yours before you plan per-team rules.

  2. Decide who needs Gemini in Gmail. Go to Menu, Generative AI, Gemini for Workspace, open the Feature access panel, click Edit next to Gmail, choose On or Off, then Save.

  3. Give the change to the right admin. It needs the Gemini Settings administrator privilege, and group settings override organizational units6. Check group membership before you test.

  4. Set the Gemini app's reach into Gmail. Go to Menu, Generative AI, Gemini app, then Apps. Turn Workspace apps off for any organizational unit where the Gemini app should not read Gmail12. It is on by default and lets the Gemini app find information in Gmail. Changes can take up to 24 hours13.

  5. Check smart features. Users need smart features and personalization turned on to use Gemini in Workspace services8. A super administrator sets the default under Menu, Account, Account settings, Smart features for Google Workspace9.

  6. Turn on Gmail's mail flow protections. Under Apps, Google Workspace, Gmail, Safety, choose an action for each attachment and spoofing option. The default is Keep email in inbox and show warning, and the other choices are Move email to spam and Quarantine10. Turn on enhanced pre-delivery message scanning under Gmail, Spam, Phishing and Malware11.

  7. Tell users what an injected summary looks like. A Gemini summary that warns of a security problem can repeat hidden text from the email itself. Ask users to forward that email to IT instead of acting on it.

Write the date and the organizational unit next to each step as you finish it.

Use this settings table for Gemini in Gmail

Set each control on the screen in the second column, and compare it with the default in the third. "Not stated" means the Google page gives no default.

ControlWhere in the Admin consoleDefaultWhat it changes for prompt injection
Gemini in GmailMenu, Generative AI, Gemini for Workspace, Feature accessOnRemoves Gemini from Gmail for that unit or group
Gemini app access to Workspace appsMenu, Generative AI, Gemini app, AppsOnStops the Gemini app finding information in Gmail
Smart features for Google WorkspaceMenu, Account, Account settingsOff for domains based in the European Economic Area, Japan, Switzerland or the UK, on in all other regions; a super administrator can set itGemini in Workspace services needs it on
Gmail Safety protectionsApps, Google Workspace, Gmail, SafetyKeep email in inbox and show warning, for each attachment and spoofing optionChecks attachments and spoofing at mail flow
Enhanced pre-delivery message scanningApps, Google Workspace, Gmail, Spam, Phishing and MalwareNot statedDelays suspicious mail for extra checks before delivery
Google's six prompt injection layersInside GeminiBuilt inBuilt into Gemini by Google

Screenshot each screen after you set it, and keep the screenshots with your access review.

How AegisAI handles this

Tested against the real thing, reproducing the disclosed 0DIN payload in ordinary benign mail, AegisAI flags it and identifies the hidden text as an injected instruction rather than matching a keyword23. Hidden regions of the body stay in scope, so an instruction written for Gemini or Copilot is read and judged22. Reads mail through the Microsoft 365 or Google Workspace API after delivery25. Runs in monitoring mode first. Removal needs write access your admin grants and can revoke.

Book a demoSee inbound email security

See your own records: Check your domain.

How to measure it in 30 days

Measure the question "How does a startup protect Gemini in Gmail from prompt injection in email?" with these three records, taken on day 1.

  • Count users with Gemini in Gmail on, by organizational unit, from the Feature access panel.
  • Check whether the Gmail Safety protections and enhanced pre-delivery message scanning are still on for each organizational unit, from the Gmail settings screens.
  • Count reported Gemini summaries that warned of a security problem, from your user reports.

To see which hidden instructions reach your own Gmail, use the demo request page. Compare the three on day 30.

Questions people ask

How does a startup protect Gemini in Gmail from prompt injection in email?

This guide groups the controls into three layers. They are Google's six built-in defenses, Admin console limits on where Gemini reads mail, and a check on each incoming email for hidden instructions. AegisAI inspects incoming mail for the concealed payloads engineered to manipulate them. The UK NCSC says to reduce the risk and the impact of prompt injection.

Can I turn off Google's prompt injection protection for Gemini?

Not on the Google pages cited here. The Admin console controls on those pages turn Gemini on or off per service and set the Gemini app's reach into Gmail. The six layers, from prompt injection content classifiers to model resilience, are built into Gemini.

Is Gemini in Gmail on by default?

Yes. Google says the default setting for Gemini features in Workspace services is on. Turn it off per unit or group under Generative AI, Gemini for Workspace, Feature access.

Does turning off Gemini in Gmail stop Gemini reading email?

Not fully. Google says users can still access an app's data when using Gemini in other apps.

What does an injected Gemini summary look like?

In the 0DIN case, the summary showed a fake security alert built from text the reader could not see. Treat any urgent alert in a summary as coming from the sender.

Sources

  1. (Google Workspace Admin Help: Indirect prompt injections and Google's layered defense strategy for Gemini, updated 10 November 2026)
  2. (Google: Mitigating prompt injection attacks with a layered defense strategy, 13 June 2025)
  3. (Google Workspace Admin Help: Manage access to Gemini features in Workspace services, updated 10 November 2026)
  4. (Google Workspace Admin Help: Let Gemini interact with Google apps, updated 10 November 2026)
  5. (Google Workspace Admin Help: Manage Google Workspace smart features for your users, updated 10 November 2026)
  6. (Google Workspace Admin Help: Advanced phishing and malware protection, updated 10 November 2026)
  7. (Google Workspace Admin Help: Pre-delivery message scanning, updated 10 November 2026)
  8. (OWASP: LLM01:2025 Prompt Injection)
  9. (UK NCSC: Prompt injection is not SQL injection, 8 December 2025)
  10. (0DIN: Phishing for Gemini, July 10, 2025)
  11. (AegisAI: The Inbox Has a Second Reader: Prompt Injection in Gemini and Copilot)
  12. (AegisAI: How to protect AI email assistants from prompt injection)
  13. (AegisAI: Inbound email security, read 18 November 2026)
  14. (AegisAI: demo request page)

Recent posts

Every email, investigated.