When an Email Talks to Your AI: The Rise of Indirect Prompt Injection Attacks

When an Email Talks to Your AI: The Rise of Indirect Prompt Injection Attacks

November 24, 2026 / in Cybersecurity Insights / by Kiran Basavaraju, Associate Director, Marketing

How AI-Connected Email Workflows Create New Security Risks.

Imagine a senior executive asking an AI assistant to review the morning inbox, summarize important messages, and identify anything requiring immediate attention. Among dozens of routine emails, it finds a message that appears to be an ordinary business update containing no suspicious attachment, no obvious phishing link, and no request for the executive to share confidential information, but buried within that message is something unusual: instructions directed not at the executive, but at the AI assistant reading the email.

The instructions tell the assistant to disregard certain warnings, retrieve information from another system, or perform an action the executive never authorized. If the assistant mistakes those instructions for legitimate commands, a routine inbox review could become the starting point for a security incident.

This is the emerging threat of indirect prompt injection, a technique that exploits the way artificial intelligence systems interpret external information.

For years, enterprise email security has focused on preventing attackers from deceiving employees through phishing, malicious attachments, impersonation, and business email compromise. Those threats remain significant, but AI introduces another potential target into the communication chain.
Traditional phishing attempts to trick the person reading an email. Indirect prompt injection attempts to trick the AI system reading it.

As organizations increasingly rely on AI assistants and autonomous agents to manage communications and business processes, understanding this distinction is becoming essential for CISOs, CIOs, and security teams.

What Is Indirect Prompt Injection?

A prompt injection attack occurs when an attacker crafts instructions intended to manipulate how a large language model (LLM) behaves. Instead of performing its authorized task, the AI system may produce misleading information, disregard its intended instructions, or attempt actions outside the user's original request.

The OWASP identifies prompt injection as a major security risk in its Top 10 for Large Language Model Applications. It distinguishes between two primary forms: direct and indirect prompt injection. 

OWASP Gen AI Security Project

Direct prompt injection occurs when instructions are submitted directly to an AI system through its input interface. For example, a malicious user might attempt to override an assistant's operating rules by entering commands designed to make it disclose restricted information.

Indirect prompt injection takes a different route. The attacker places malicious instructions inside external content that an AI assistant is expected to read or process. This content might include an email, webpage, document, database record, or API response.

The attacker does not necessarily need direct access to the AI application. Instead, the attacker exploits the AI system's interaction with outside information.

HOW AN EMAIL-BASED INDIRECT PROMPT INJECTION WORKS

Attacker - Creates attacker-controlled content

Email - Carries hidden or disguised instructions

AI Assistant - Processes email as task context

Malicious Instruction - External content is mistaken for authority

Unintended AI Action - Manipulated output or unauthorized operation

Illustrative attack path. Success depends on the AI system's safeguards, access rights, and available tools.

The underlying vulnerability involves a failure to maintain boundaries between trusted instructions and untrusted information. AI systems are designed to interpret natural language, and malicious commands can resemble the legitimate instructions they receive from users.

An email that should be treated purely as information can therefore become an attempted source of operational instructions.

This makes indirect prompt injection particularly relevant to enterprise environments where AI systems regularly consume content originating outside the organization.

Why Email Is Becoming an AI Attack Surface

Email has always been a major entry point for cyberattacks because it connects employees, customers, suppliers, and business partners. However, its role is changing as organizations introduce AI-powered productivity tools.

An AI assistant may now summarize lengthy conversations, prioritize messages, draft responses, extract invoice details, identify commitments, schedule meetings, or initiate workflows across connected applications.

These capabilities improve productivity, but they also create new security considerations.

An email is no longer simply a communication intended for human interpretation. It can also become machine-readable input that influences what an AI system decides or does next.

Consider a finance department using AI to process supplier communications. An assistant might identify outstanding invoices, compare payment details, and prepare recommendations for approval. If an attacker inserts instructions into a supplier email, those instructions may be encountered during normal processing.

The email itself may appear entirely legitimate to an employee. The malicious component could be concealed within formatting, mixed into ordinary business language, or presented as a supposed system instruction.

This concern is no longer theoretical from a security research perspective. Microsoft explicitly recognizes inbound email as a potential source of prompt injection against AI assistants and has documented email-focused detection capabilities in Microsoft Defender for Office 365. 

The important change for enterprise security teams is that the attack surface now extends beyond what employees read and click. It includes what connected AI systems retrieve, interpret, and potentially act upon. An email that never persuades a human recipient may still become dangerous if an AI assistant treats its contents as authoritative.

How an Email Prompt Injection Attack Could Work

Consider a hypothetical scenario involving an executive assistant connected to an organization's email, calendar, and document systems.

A senior manager asks the AI assistant to review recent supplier correspondence and prepare a summary of outstanding contractual issues.

An attacker, who controls an external email account, sends a message that appears to contain routine contract updates. Embedded within the email is an instruction claiming to originate from an internal automation system.

The instruction tells the AI assistant to locate a confidential pricing document and include its contents in a response addressed to an external recipient.

The attack could unfold through five stages:

  1. The attacker sends a seemingly normal email. The message uses familiar business language and does not necessarily contain malware or a malicious link.
  2. The email carries instructions intended for the AI. The malicious content attempts to impersonate a higher-priority command or an authorized workflow.
  3. The AI assistant processes the message. While performing the legitimate summarization task, the assistant encounters the attacker-controlled instructions.
  4. The trust boundary is crossed. If the assistant interprets the email's content as an instruction rather than untrusted data, its behavior may be redirected.
  5. An unintended result follows. Depending on its permissions and safeguards, the assistant could produce a misleading summary, retrieve unrelated information, or attempt an unauthorized action.

This scenario is illustrative, not a claim that every AI assistant would follow such instructions.

However, public security demonstrations have shown that this class of attack can succeed under certain conditions.

A real demonstration: when an AI agent tried to resign for its user

In a published security demonstration, OpenAI described an attack against an AI agent performing an email-related task.

The attacker planted a malicious email in the user's inbox. When the user later asked the agent to prepare an out-of-office response, the agent encountered the injected instructions and was redirected into sending a resignation email to the user's CEO instead.

The demonstration showed how attacker-controlled email content could redirect an agent away from its legitimate task. OpenAI also described subsequent security improvements that enabled the agent to recognize the attempted injection in the tested scenario. 

OpenAI

Although this was a controlled security demonstration rather than evidence of a widespread enterprise incident, it illustrates a significant risk: an AI agent may encounter malicious instructions during an otherwise legitimate workflow.

For organizations deploying AI across business communications, that distinction matters. The attacker does not need to compromise the AI model itself. The attack may begin with ordinary external content that the AI is authorized to access.

Why Indirect Prompt Injection Is Different From Traditional Phishing

Traditional phishing and indirect prompt injection share a common objective: influencing behavior through deceptive content. Their immediate targets, however, are different.

Traditional phishing Indirect prompt injection
Primarily targets a human recipient Targets an AI assistant or agent
Uses persuasion, urgency, or impersonation Attempts to manipulate model behavior or instructions
Often requires a person to click, reply, or disclose information May activate when AI processes external content
Often includes clues intended to influence a human Instructions may be hidden or irrelevant to human readers
Human judgment is usually the immediate decision point AI interpretation may become the decision or action point
Common defenses include phishing detection and user awareness Requires AI trust boundaries, permission controls, monitoring, and input defenses

The distinction does not mean traditional phishing is becoming obsolete. In fact, attackers may combine both techniques within the same message, targeting a human employee and an AI assistant simultaneously.

A compromised supplier account, for example, could distribute a believable business message that attempts to influence an employee while also carrying instructions aimed at an automated processing system.

This creates an additional challenge for email security. A message can be free of malware, contain no suspicious URL, and still include content designed to manipulate an AI application.

As a result, organizations must expand their understanding of suspicious email behavior beyond traditional indicators of compromise.

What Can an Indirect Prompt Injection Attempt to Do?

The consequences of a prompt injection attack depend on the AI system's capabilities, the information it can access, and the controls governing its actions. Some attacks attempt only to influence the information an assistant produces. Others seek to exploit agents connected to enterprise systems.

Manipulating summaries and recommendations: An attacker might attempt to make an AI assistant omit unfavorable contract terms, misrepresent a supplier's performance, or prioritize a fraudulent request. Even without access to external tools, manipulated outputs could affect business decisions.

Suppressing security warnings: Malicious instructions could attempt to persuade an AI assistant to ignore suspicious content or present a questionable transaction as routine. Whether this succeeds depends on the system's design and safeguards.

Disclosing sensitive information: An attacker may try to redirect an assistant toward confidential documents, internal communications, customer records, or other information beyond the legitimate task.

Initiating unauthorized actions: In systems with tool access, an attacker could attempt to trigger email sending, document sharing, calendar changes, or API calls without proper authorization.

Influencing downstream workflows: A manipulated AI output may affect subsequent processes if another system accepts it without sufficient validation. For example, an inaccurate classification could influence how a request is routed or reviewed.

OWASP identifies information disclosure, content manipulation, unauthorized access to functions, and interference with decision-making among the possible consequences of prompt injection. These are documented risk categories, not evidence that every outcome has occurred in a production environment. 

OWASP Gen AI Security Project

The business implications extend beyond immediate data exposure. Incorrect AI-generated recommendations can undermine operational confidence, while unauthorized actions may create compliance, financial, or reputational consequences.

Why AI Agents Increase the Stakes

It is important to keep in mind that not all AI applications create the same level of risk, an assistant that summarizes a document without accessing other systems has a relatively limited ability to cause direct operational harm and it may only generate inaccurate information, but its ability to perform actions is constrained.

However, an autonomous AI agent connected to email, cloud storage, customer databases, calendars, and enterprise applications presents a different security challenge. The potential impact of an attack can be understood through three connected factors:

A SIMPLE MODEL OF AGENTIC AI RISK

Access - What data can it read?

Autonomy - What can it decide?

Permissions - What can it change?

Access × Autonomy × Permissions

A conceptual framework for assessing exposure, not a quantitative risk formula.

The more information an agent can access, the more decisions it can make independently, and the more permissions it possesses, the greater the potential consequences if its behavior is manipulated.

This concern aligns with OWASP's classification of Excessive Agency, which highlights risks arising from excessive functionality, permissions, and autonomy in LLM-based systems. 

OWASP Gen AI Security Project

For CISOs, agentic AI security therefore requires more than evaluating the accuracy or safety of a language model. It requires understanding the entire environment in which that model operates.

Security teams need visibility into which systems an agent can reach, what actions it can initiate, how it handles external content, and where human approval is required. The central question is no longer simply whether an AI assistant can recognize a malicious instruction. It is also what the assistant would be capable of doing if that instruction succeeded.

How Businesses Should Defend Against Email-Based Prompt Injection

Protecting enterprise AI environments requires a layered security strategy. No single prompt, filter, or AI security product can guarantee protection against every indirect prompt injection technique. Effective defenses must address both the content entering AI systems and the permissions governing their behavior.

  1. Treat external content as untrusted

Emails, attachments, webpages, and externally supplied documents should be classified as untrusted input, regardless of how credible they appear. An AI assistant may use this information to complete an authorized task, but it should not treat embedded instructions as commands from the user or system administrator.

  1. Separate data from instructions

AI applications should maintain clear boundaries between trusted system instructions, legitimate user requests, and externally retrieved content. This includes identifying the origin of information and applying controls that prevent untrusted text from overriding higher-priority instructions. These safeguards reduce risk but cannot guarantee that a model will never be influenced.

  1. Apply least-privilege access

Organizations should grant AI assistants only the permissions required for their intended functions. An agent designed to summarize email generally does not need unrestricted access to confidential repositories or the ability to send messages automatically. Thus, limiting access reduces the potential damage if an attack succeeds.

  1. Require human approval for consequential actions

Sensitive operations such as sending confidential documents, modifying financial records, changing access permissions, or initiating external transactions should require appropriate authorization. Human approval is particularly important when an AI agent is acting on information received from external parties.

  1. Strengthen inbound email inspection

Email security remains an important first layer of defense. Organizations should evaluate whether their security controls can identify suspicious instructions, malicious content, impersonation, and other indicators of email-based attacks before messages reach AI-connected workflows. Traditional malware and phishing detection remain necessary, but they should not be assumed to detect every prompt injection attempt.

  1. Monitor AI behavior and maintain audit logs

Security teams should monitor agent activity for unusual access patterns, unexpected tool calls, unauthorized data retrieval, and actions inconsistent with the user's original request. Maintaining records of AI-initiated operations can support incident investigation, accountability, and continuous improvement.

  1. Test AI systems against adversarial content

Organizations should regularly evaluate their AI applications using controlled prompt injection scenarios. Testing should include malicious emails, manipulated documents, misleading tool outputs, and attempts to cross application trust boundaries. OWASP recommends measures including input and output validation, least-privilege permissions, human approval, separation of untrusted content, and adversarial testing as part of a defense-in-depth strategy. 

OWASP Gen AI Security Project

For enterprise security leaders, these measures should form part of a broader LLM security and AI agent security program rather than being treated as isolated technical fixes.

Why Email Security Must Evolve Alongside AI Security

The emergence of indirect prompt injection highlights a broader change in cybersecurity: organizations must protect not only the people who consume information, but also the AI systems that increasingly interpret and act upon it.

This does not eliminate the need for established email security controls. Instead, it reinforces their importance while introducing additional requirements for monitoring, access governance, and AI-specific defenses.

An attacker-controlled email can be the starting point for several different threats. It may attempt to deceive an employee, impersonate a trusted business partner, expose confidential information, or manipulate an AI assistant.

These risks can also intersect. A compromised third-party account might distribute a message that appears credible because it comes from a familiar sender and arrives within an existing conversation. If an AI agent processes that message, the same communication channel could expose both human and machine-driven workflows to manipulation.

This is where a more proactive approach to email security becomes valuable.

RPost's RMail email security capabilities and RAPTOR™ AI threat intelligence technologies are designed to help organizations address risks surrounding email communications, suspicious activity, and sensitive information exposure.

By bringing additional intelligence to email security, identifying concerning communication patterns, and supporting stronger data protection practices, RPost can contribute to a layered defense strategy as organizations adopt AI-driven workflows.

However, email threat intelligence and AI prompt injection protection are not interchangeable. Defending against indirect prompt injection also requires safeguards within the AI application itself, including instruction boundaries, controlled permissions, approval mechanisms, and agent activity monitoring.

For enterprises, the strongest approach is to combine established email security with purpose-built AI security controls, rather than expecting either layer to provide complete protection on its own.

The Next Email Security Challenge: Protecting What AI Reads

AI assistants are becoming part of everyday enterprise operations, helping employees process information, make decisions, and automate repetitive work. As their responsibilities expand, so does the importance of securing the information they consume.

Indirect prompt injection demonstrates how a seemingly ordinary email can become an attempted instruction channel for an AI system. The attacker may no longer need to convince an employee to take the wrong action. Instead, the attacker may attempt to influence an assistant acting on that employee's behalf.

For CISOs and CIOs, the priority is to ensure that AI adoption does not create new paths for unauthorized access, data exposure, or operational manipulation.

That requires a combination of secure AI architecture, least-privilege permissions, human oversight, continuous monitoring, and intelligent email security.

The next generation of email security must consider two audiences: the human reading the message and the AI system processing it.

As businesses move toward increasingly autonomous AI workflows, protecting both will become a critical part of enterprise cybersecurity strategy.

Explore how RPost is advancing intelligent email security and proactive threat intelligence to help organizations reduce communication-related cyber risks.