In brief: Email-based prompt injection succeeds when an agent ingests untrusted message content and follows embedded directives as if they were authorized instructions. Detection lowers the chance of success; runtime controls limit damage when detection misses.
What Prompt Injection via Email Is
Prompt injection via email occurs when an AI agent that reads, summarizes, or acts on email content encounters instructions embedded in a message that the agent processes as commands rather than as data. Unlike phishing or malware delivered through email, this attack does not require a user to click a link or execute a file. It succeeds when the agent's underlying model ingests the email content and follows directives contained in that content as though they originated from an authorized user or system operator.
This matters for enterprise agents that triage inboxes, summarize threads, draft replies, or trigger downstream actions such as updating a support ticket, forwarding a document, or invoking an internal API. If the agent cannot reliably separate the semantic content of an email from instructions embedded within it, anyone able to send a message to a monitored address has a potential path to influence agent behavior, without needing credentials or network access.
How Email Injection Differs from Other Indirect Vectors
Prompt injection via email shares its core mechanism with other indirect prompt injection vectors, such as instructions embedded in web pages or uploaded documents: untrusted external content reaches the model without being labeled as untrusted. Email introduces a few characteristics that distinguish it operationally from those other vectors.
Email content arrives through multiple parsing surfaces beyond the visible message body. HTML rendering, header fields, reply-chain quoting, and attachment metadata can each carry text that an ingestion pipeline extracts and passes to the model, multiplying the number of places an instruction can hide. Many enterprise email agents are also configured to ingest messages automatically, ahead of any human review, so an injected instruction can reach model context before a person reads it. This differs from many web-browsing agent scenarios, where a user-initiated fetch typically precedes model exposure. Finally, email's conversational structure, including forwarded threads and nested replies, gives an attacker a plausible way to bury instructions inside content that reads as ordinary correspondence history rather than as an obvious payload.