Glossary · Prompt Injection & AI Security

indirect-prompt-injection

Indirect prompt injection is an attack where malicious instructions reach an AI through external content, such as a PDF, web page, email or database record, rather than through the user's own prompt.

What Is Indirect Prompt Injection?

The attacker never talks to the model. Instead they plant instructions in content the model will later ingest: a vendor PDF, a CV, a shared document, a web page, a calendar invite or a retrieved passage in a RAG system. When a user asks the AI to summarize or process that content, the hidden text enters the context and may be followed as a command.

NIST describes it as prompt injection carried out through control of a resource rather than direct user input. Cloud Security Alliance research from April 2026 reports that it has moved from proof of concept to live exploitation, with Google observing a 32% relative increase in malicious injection content on crawled pages between November 2025 and February 2026.

How Indirect Prompt Injection Works

Indirect injection works because AI tools treat document text as part of their working context. The attacker's instruction can be concealed from humans in many ways: hidden text, white-on-white text, tiny fonts, off-page text, zero-width characters, metadata and annotations or text inside images. Because the user did not write or see it, the usual advice to watch your own prompts does not help.

Practical Industrial Use

Any workflow that ingests third-party files is exposed: procurement reading vendor proposals, recruiters screening CVs, insurers reading claims, legal teams reviewing counterparty drafts, and agents that browse the web. In an agentic workflow the injected instruction can trigger tools, so the agent, not the attacker, performs the privileged action.

What Happens Without It

Teams often discover indirect injection only after the output is wrong or data has moved. Standard antivirus and email filters see a clean file, because nothing in it is executable code.

Input filters on the user's prompt miss it entirely, since the malicious text never passes through the prompt box.

Risk Without Protection From Indirect Prompt Injection The most dangerous instruction your AI receives this year may be in a file that looks perfectly ordinary to everyone who opens it.

With Protection Against Indirect Prompt Injection

  • Documents are compared as machine text versus rendered page before model handoff
  • Findings are scored and routed to review or block
  • Sensitive data is anonymized so exfiltration yields little
  • Agents keep least-privilege access

Without It

  • Files are trusted because they came from a known sender
  • Hidden text is read by the model but never by a person
  • Agents act on injected commands with real credentials
  • Missed checks are silently treated as clean

Treat all uploaded and retrieved content as untrusted data that may inform an answer but never gains authority over the task.

How This Relates to Questa AI

This is the core problem Questa Blackbox's Visual Injection Check addresses. It compares what a machine extracts from a PDF with what a person sees on the rendered page and surfaces the gap, including hidden text, invisible characters, metadata and annotation instructions, visible instruction-like text and text that appears only inside images.

Questa Blackbo is a privacy firewall that sits between your documents, data and AI models. It is available as a SaaS service and as an on-premises deployment, and in both the principle is the same: content is inspected before it reaches a model, not after something has gone wrong. Sensitive entities are anonymized, and PDF files go through the Visual Injection Check, which compares what a machine extracts from a file with what a person sees once the page is rendered.

Each file receives one of three verdicts, no findings, review or block, shown per file in the File Tool and across all files in the Visual Injections dashboard, with the finding type and location (for example "Page 1, tiny font"). Security teams can use these verdicts to hold flagged files before they are handed to a model or an agent. Two honest limits apply. The check reports findings; it does not itself stop file handoff, so the verdict needs to drive your workflow. And "no findings" means nothing was found, not that a file is guaranteed safe. Files that are too large, too long, unreadable or not checked to completion are never counted as clean.

Because Blackbox also anonymizes personal and sensitive data at each step, a missed injection has far less to steal: names, identifiers and other protected entities have already been replaced with tokens before the model sees them. With the on-premises option, files, findings and audit records stay inside your own network boundary; with SaaS, you get the same inspection without running infrastructure. Layered with least-privilege agent permissions and human review, this reduces the risk to your network, data, cyber security and AI agents. It does not claim to eliminate it, and no single control can.

Frequently asked questions

Related terms

Prompt Injection

A technique where malicious instructions are hidden inside content an AI model processes — a document, a webpage, an email — so the model follows those hidden instructions instead of, or in addition to, the task it was actually given.

Identifiable Information (PII)

Personally identifiable information: the specific category of data most AI regulation is actually built around, and the most common thing an AI tool ends up exposed to by accident — a name, an email, an account number typed into a prompt without a second thought.

Identity Theft

The real-world harm that most data protection regulation ultimately exists to prevent — and the reason a leaked name, ID number, or set of identity documents is never just a compliance abstraction, but the raw material someone else can use to become you on paper.

Image-Only Text Injection

Image-only text injection places instructions inside an image or scanned page, so they are not in the text layer at all.

Insight Generation

Using AI to surface patterns, summaries, and conclusions from an organization's own data — one of the clearest business cases for AI adoption, and one that quietly requires feeding an organization's most valuable and sensitive data into a model to produce anything useful at all.

Insurance Compliance

The layered set of regulatory obligations an insurer carries — state and national insurance law, data protection rules, and now AI-specific requirements — that all converge on the same workflows, like claims processing and underwriting, where AI adoption has moved fastest.

See indirect-prompt-injection in practice

Questa AI anonymizes sensitive data before it reaches any AI model — across documents and live prompts, with governance and data-residency control.

Contact

Contact Us

Have questions or ready to explore how Questa AI can transform your business?