Your AI Assistant Can Be Hijacked Through Ordinary Email

October 27, 2026
Shannon Lewis

AI Assistants Now Read Your Inbox as Trusted Input

Most email security architectures were designed to block malicious links and attachments. They scan, quarantine, and alert. But AI assistants operate differently. They retrieve email content, process it as instruction, and act on what they read. That retrieval step creates a new category of risk: indirect prompt injection, where hidden instructions inside ordinary messages steer the assistant toward unauthorized actions.

Traditional phishing filters do not evaluate whether email content could function as a command once an AI reads it. They focus on sender reputation, attachment signatures, and URL analysis. The assistant, however, treats everything it retrieves as part of the user's intent. A crafted email does not need to trick a human. It only needs to reach the assistant's context window.

KnowBe4 researchers demonstrated this in a controlled test. A seemingly benign email, containing hidden HTML instructions, caused an AI assistant to read unrelated inbox content and expose a one-time password. The attack required no click, no download, and no credential entry. The assistant simply followed what it interpreted as valid instruction.

Why This Matters Now

AI assistants are being granted inbox-read permissions across Google Workspace and Microsoft 365 environments. They summarize threads, draft replies, and automate workflows through tools like Apps Script. Each capability expands the range of actions an attacker can trigger by embedding instructions in email.

The risk is not theoretical. Indirect prompt injection has been documented in academic research and replicated in enterprise environments. The attack surface grows as organizations integrate AI into email workflows without revisiting permission models or content-trust assumptions.

Defense strategies built around attachment scanning and link inspection do not address this. The malicious payload is not a file or a URL. It is instructional text, often hidden in HTML, that becomes executable once the assistant processes it. Security teams must now account for what the AI reads, not just what the human sees.

This shift requires visibility into agent behavior, not just inbox content. Organizations need to know when an assistant retrieves data outside the scope of a user query, when it accesses sensitive threads, and when it attempts outbound actions that were not explicitly requested.

Three Strategic Gaps Exposed

Email Filters Are Blind to Instructional Payloads

Traditional filters classify risk based on sender behavior, attachment type, and embedded links. They do not evaluate whether message content could function as instruction once retrieved by an AI. Hidden HTML, benign to a human reviewer, can carry commands that an assistant will execute.

  • Filters designed for human-targeted phishing do not flag content written to manipulate AI logic
  • HTML formatting allows instructions to be visually hidden while remaining machine-readable
  • Assistants process retrieved content as trusted input, bypassing human judgment entirely
  • A single crafted message can remain dormant until the assistant scans it during a workflow

Shared Context Windows Erase Sender Boundaries

Once an email enters the assistant's context window, the AI does not distinguish between user intent and embedded instruction. Everything retrieved becomes part of the same processing session. An attacker's email and the user's legitimate query are treated as a unified prompt.

  • Assistants lack sender-awareness once content is retrieved into working memory
  • Instructions from different sources are combined and executed as a single directive
  • Permission models assume the user controls all input, but retrieval bypasses that assumption
  • The assistant cannot evaluate whether a retrieved instruction aligns with the user's actual goal

Agent Permissions Exceed Human Task Scope

AI assistants are often granted inbox-read access across entire accounts to support automation and summarization. That access, combined with tool-use capabilities, allows an assistant to act on instructions that were never intended by the user. A single hidden directive can trigger data retrieval, draft creation, or external communication.

  • Broad inbox permissions let assistants access threads far beyond the user's immediate query
  • Tool integration enables assistants to write drafts, invoke scripts, and interact with APIs
  • A crafted email can steer workflows that were designed for legitimate automation
  • Audit logs capture actions but rarely flag retrieval patterns that indicate manipulation

The Strategic Shift Required

Defense must move beyond inbox scanning to agent behavior monitoring. Security teams need visibility into what AI assistants retrieve, how they process it, and what actions they attempt. This requires instrumentation at the agent layer, not just the email gateway.

Organizations should evaluate AI assistant permissions with the same rigor applied to service accounts. If an assistant can read any inbox thread and invoke external tools, it must be treated as a high-privilege entity. Access should be scoped to the minimum necessary for each workflow, and retrieval behavior should be logged and reviewed.

Content-trust assumptions must also shift. Email that passes traditional filters can still carry instructional payloads. Security architectures must account for the possibility that any retrieved message could influence agent behavior. Detection should focus on anomalous retrieval patterns, not just inbound threats.

  • Instrument agent behavior to detect when assistants access threads outside the scope of a user query
  • Apply least-privilege principles to inbox-read and tool-use permissions for AI assistants
  • Log and review retrieval actions, particularly when assistants access sensitive or unrelated content
  • Extend email security controls to evaluate content as potential instruction, not just as attachment or link

How Agent Risk Manager Addresses This

KnowBe4 Agent Risk Manager provides visibility into AI assistant behavior and detects when agents retrieve or act on content in ways that suggest manipulation.

  • Email Filters Miss Instructional Payloads: Cloud Email Security operates at the inbox layer, analyzing message content for hidden instructions before assistants retrieve it. Agent Risk Manager monitors agent behavior to detect when retrieved content triggers unexpected actions.
  • Shared Context Windows Erase Sender Boundaries: Agent Risk Manager tracks what assistants retrieve and correlates retrieval with user intent. When an assistant accesses threads or data outside the scope of a query, the platform flags the anomaly.
  • Agent Permissions Exceed Task Scope: The platform monitors tool use and outbound actions initiated by assistants. If an assistant attempts to draft a reply, invoke a script, or access sensitive threads without explicit user direction, the activity is surfaced for review.

Who This Is For

  • Security engineers responsible for email security architecture in Google Workspace or Microsoft 365 environments
  • Email security administrators evaluating AI assistant risk and managing inbox-layer controls
  • IAM leads tasked with defining permission models for AI tools with inbox-read or workflow automation access
  • IT managers overseeing AI assistant deployments and ensuring security controls keep pace with adoption

If your AI assistants have inbox-read access, you need visibility into what they retrieve and how they act on it. Visit https://knowbe4.optrics.com/ai-agent-risk-manager.html

FAQ

What is indirect prompt injection?
Indirect prompt injection occurs when hidden instructions embedded in content manipulate an AI assistant's behavior. Unlike direct prompt injection, where a user intentionally alters a prompt, indirect injection relies on the assistant retrieving malicious content from a trusted source, such as email. The assistant processes the hidden instructions as part of its task, often without the user's knowledge.

Why do traditional email filters miss this attack?
Traditional filters scan for malicious links, attachments, and sender reputation. They do not evaluate whether message content could function as instruction once an AI assistant retrieves it. Hidden HTML instructions appear benign to human reviewers and bypass attachment-based detection, but assistants process them as actionable commands.

How does Agent Risk Manager detect this behavior?
Agent Risk Manager monitors AI assistant activity, tracking what content is retrieved, when assistants access threads outside the scope of a user query, and what actions are attempted. It correlates retrieval patterns with user intent and flags anomalies, such as accessing sensitive emails or drafting replies that were not requested.

Which AI assistants are vulnerable?
Any AI assistant with inbox-read permissions and tool-use capabilities is vulnerable. This includes assistants integrated with Google Workspace, Microsoft 365, and custom automation workflows using Apps Script or similar tools. The risk increases when assistants have broad access to email threads and external APIs.


Optrics Logo white shadow
Optrics is an engineering firm with certified IT staff specializing in network-specific software and hardware solutions.

Contact Information

6810 - 104 Street NW
Edmonton, AB, T6H 2L6
Canada
Google Plus Code GG32+VP
Direct Dial: 780.430.6240
Toll Free: 877.430.6240
Fax: 780.432.5630
Copyright 2025 © Optrics Inc. all rights reserved. 
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram