AI summary attack conceals code that tampers with LLMs
Spectra Assure Free Trial
Get your 14-day free trial of Spectra Assure for Software Supply Chain Security
Get Free TrialMore about Spectra Assure Free TrialKey takeaways
Researchers have demonstrated that AI summaries of email can be altered using hidden HTML code for launching an indirect prompt-injection attack.
In a measured laboratory proof of concept, researchers at Forcepoint X-Labs isolated a single email summarizer running an unguarded LLM pipeline, embedded a hidden prompt-injection payload using common HTML concealment techniques, and confirmed that indirect prompt injection can silently hijack summarizer output without signaling tampering to the reader.
The research shows that attackers can silently tamper with information that employees use to make decisions, said X-Labs security researcher Ben Gibney. The hidden payload then issues summaries that contain fabricated data and omit facts, yet they seem legitimate, he said.
The research confirms known design failures, and its rigorous measurement proves that the attack succeeds reliably in production conditions, Gibney said. Security teams need to recognize that email summarizers reading unverified content are attack vectors, he said â one with the potential for drastic consequences.
âThe real business impact emerges when AI gains agentic capabilities. A summarizer with permission to send emails or approve requests becomes a much higher-severity target.â
âBen Gibney
Hereâs what you need to know about this AI summary of email-based attack vector â and why threat intelligence is key to getting out in front of it.
[ See webinar: Threat Intel 201: The Intelligence Foundation | Get guide: Best Enterprise File Scanning Tools of 2026 ]
When mounting the attack, the researchers sent an email containing an indirect prompt-injection payload, but because it was styled with an HTML tag calling for a font size of 0 pixels, white text, and 0 line height, it was invisible to humans though machine-readable.
The instructions told the email summarization service to ignore the messageâs legitimate text, or authoritative record, and summarize the hidden text instead. It also instructed the summarizer to mention neither the instructions nor the legitimate text.
Forcepoint noted that nearly half of what it passed to the summarizer was hidden from the user: 1,009 characters sent to the model, 537 displayed, and 472 hidden injection text.
The only cue that might be noticed was extra whitespace between the last line and the sign-off, where the injection text sits between two tags, and not a consequence of the injection itself.
Whatâs important, the researchers said, is that the resulting email summaries carried information only from the injected text. The reader of the summary saw no indication that the information was fabricated or that the email contained contradicting instructions.
The stealthy part of the injection was a success, Forcepoint said. None of the summaries mentioned the notice to the summarizer, the superseded draft, or the authoritative record. âThis finding matters because it turns a trusted helper into a quiet liar,â said Waseem Ahmed, head of engineering at Secure.com.
âThe summary reads clean while the numbers and dates are fabricated, and the reader gets no warning. It does not create a new risk. It confirms a known design flaw that teams keep shipping anyway.â
âWaseem Ahmed
The advantage of this approach is that an adversary does not need to figure out how to submit the prompt to the target LLM, said Scott Miserendino, CTO at DataBee.
âA service such as your email system is going to automatically send content to the LLM. Indirect prompts just need to be part of that content. Direct access to LLMs is usually heavily restricted behind network protections, as well as user accounts paying for the LLMâs use.â
âScott Miserendino
Steve Wilson, founder and co-chair of the OWASP GenAI Security Project, praised X-Labsâ work as âa good educational demonstration.â
âIt is simple and reproducible, and it shows clearly how an attacker can manipulate the integrity of an AI-generated summary without the human recipient realizing that the source email contained hidden instructions.â
âSteve Wilson
Wilson pointed out, however, that indirect prompt injection has been a known problem almost from the beginning of modern LLM application security. âI led the OWASP Top 10 for LLM Applications project when we released the original list in 2023 and continue to lead the project today. Prompt iInjection was LLM01 in that original list, and we explicitly distinguished direct prompt injection from indirect prompt injection, where malicious instructions arrive through external data such as websites, documents, and emails that the LLM is asked to process,â he said.
Wilson noted that in 2024, Johann Rehberger demonstrated indirect prompt-injection attacks against Microsoft 365 Copilot using attacker-controlled email and documents, including techniques for hiding instructions from the human reader. âMicrosoft itself was using almost exactly this email-summarizer scenario when it introduced Prompt Shields for indirect prompt injection in 2024,â he added. âSimilar attacks have subsequently been demonstrated against other assistants.â
That does not mean the risk is acceptable, Wilson continued. âIn many enterprise scenarios, indirect prompt injection is actually more concerning than direct prompt injection because the attacker does not need access to the AI interface at all,â he said.
âIf that AI only produces a summary, the impact may be false information, omitted facts, or manipulated decisions. If the AI has access to sensitive data or tools, the consequences can become much more serious, including data disclosure or unwanted actions performed with the userâs privileges.â
âSteve Wilson
Wilson noted that evidence of broad exploitation in the wild is still limited. There are signs that attackers are experimenting with indirect prompt injection and that tools for generating these attacks are being discussed and sold in underground communities, he said, âbut I have not seen evidence that this has become a routine, large-scale email attack technique yet.â
âThat distinction matters. This is a very real vulnerability class, but that is not the same thing as saying it is already commonplace in production attacks.â
âSteve Wilson
He recommended that security teams avoid treating every prompt-injection problem as if it requires solving prompt injection itself. âDetecting arbitrary prompt injection is hard,â he observed. âDetecting evidence that someone is deliberately hiding text from a human reader is much easier.â
Zero-size fonts, white-on-white text, off-screen elements, suspicious CSS, encoded content, and large differences between what a human sees and what a machine receives are all things security controls can look for before the content ever reaches an LLM, he said.
That gives defenders an important advantage, he asserted. âYou do not necessarily have to answer the much harder question, âIs this sentence secretly a malicious prompt?â if you can first ask, âWhy does this email contain a large amount of content that the recipient cannot see?ââ
John Bambenek, president of Bambenek Consulting, said that while the Forcepoint indirect prompt injection isnât the most significant one out there, it does reinforce that indirect prompt injection does happen in a wide variety of applications.
âPeople have always been lazy, and AI supersizes the risk of that laziness. An email summarizer gives an opportunity for a user to take some action based on the summary and not the content of a message, so the social engineering possibilities are unlimited.â
âJohn Bambenek
Indirect prompt attacks turn âgarbage in/garbage outâ into âgarbage in/gospel out,â said John Strand, the principal at Black Hills Information Security.
âIf we can inject garbage into a data stream and then that garbage gets picked up as gospel and acted on by other AI agents or even other people, thatâs a new way of looking at an old adage in computer security.â
âJohn Strand
Because attacks using these methods keep evolving, Erich Kron, CISO advisor at KnowBe4, recommends a âtrust nothingâ mindset when accepting input from an outside source, whether websites or digital messaging.
âAny HTML should be checked and scrubbed prior to reaching a userâs inbox, and we must closely monitor the actions of agents in order to detect anomalies that are potentially covered up by their own summaries.â
âErich Kron
Prompt injection should be treated as an authorization problem, said Noelle Murata, a senior security engineer at Xcape.
âIf we can treat this issue as a representation of a problem that security has already solved, we can put proper guardrails and architectural controls in place and hopefully make the internet a slightly safer place.â
âNoelle Murata
The attack vector described by Forcepoint is something old made new by AI, said Jacob Krell, senior director for secure AI solutions and cybersecurity at Suzu Labs.
âAttackers donât't need new tradecraft, as techniques originally designed to hide content from people or confuse scanners can now carry instructions for the AI processing the message.â
âJacob Krell
The email summarizer is one instance of a broader condition. Files, attachments, packages, and documents arriving at an organization are no longer read primarily by people; they are parsed in full by systems that see everything the sender included, including what was deliberately hidden from human view.
That breaks the assumption underneath most trust decisions, which is that a known sender, a valid signature, or a familiar file format tells you what a file will do. As KnowBe4's Kron noted in his "trust nothing" framing, the artifact itself now has to be inspected before it reaches a model, an agent, or an inbox â and inspection is only as good as the intelligence behind it.
This is where efficacy, rather than volume, separates useful threat intelligence from noise. Defenders need decisive classifications across the file types and archive formats actually in circulation, depth to reach content nested several layers down, and a low enough false-positive rate that verdicts can be acted on automatically.
Stale indicators carry a higher cost in AI-driven workflows than they did in human ones, because a wrong or ambiguous verdict propagates into downstream decisions at machine speed with no one pausing to sanity-check it. High-efficacy threat intelligence, built on a large corpus of both goodware and malware and capable of reclassifying files previously judged clean, is what lets teams answer the question Wilson posed about hidden content before that content ever shapes an output.
See our new guide: Best Enterprise File Scanning Tools of 2026.
ExtraHop's Kanaiya Vasani unpacks the concept of the agentic SOC â and how the Agentic SOC Alliance is working to build them out.
Organizations donât realize how pervasive shadow AI has become. And as AI's capability grows, shadow use is harder to manage.
How it works
Once you click Generate, Ollama reads this article and crafts 5 comprehension questions. Your answers are graded against the article content â general knowledge won't be enough. Score 70+ to count toward your certificate.
Questions are cached â you'll always get the same 5 for this article.