A business assistant reads an uploaded document to summarize delivery terms. Inside the document is a sentence telling the assistant to ignore its task and send confidential records somewhere else. That sentence is document content, not a legitimate instruction from the business owner.
This is the basic boundary behind indirect prompt injection. I would design document-processing workflows around that boundary before connecting them to email, shared drives or systems that can change business records.
Understand the route into the workflow
An attacker does not always need access to the assistant’s main chat. Instructions can be placed in material the assistant later retrieves: a supplier PDF, a web page, an email, an image or an indexed document. Even ordinary documents can contain quoted instructions that should be analyzed rather than obeyed.
NIST’s technical discussion of agent hijacking evaluations describes malicious instructions embedded in data consumed by an agent. The relevant question is not whether the text looks official. It is whether that source has authority to direct the requested action.
Treat a document claiming to be a system message as a document making a claim. A logo, executive name or urgent tone does not change its role in the workflow.
Limit what the assistant can do
Separate reading and drafting from actions such as sending messages, granting access, placing orders or editing supplier master data. Give each workflow only the tools and data it genuinely needs. A summarizer does not need a general-purpose account with permission to change every connected system.
Keep authorization checks in application logic and supported permission systems. A prompt that says “do not leak information” is useful context, but it should not be the only barrier between retrieved text and a powerful tool.
Where external actions are appropriate, require explicit approval tied to the actual destination and content. A blanket approval given earlier should not allow a new instruction hidden in a document to choose a recipient or change the transaction.
Preserve provenance through the review
Show which document and passage support an extracted statement. Keep the original source available to an authorized reviewer. If the workflow combines several documents, make conflicting versions visible rather than silently choosing whichever text is easiest to quote.
The document-permission guide for internal AI assistants addresses who may retrieve material. Prompt injection is a separate issue: even a document the user is allowed to read may contain instructions the assistant must not follow.
For implementations, AI workflow consulting should cover both data access and action authority. Business software development can enforce those controls outside the model’s generated response.
Test harmless adversarial cases
Use fictional documents in an isolated environment. Include a document that asks for a harmless but unauthorized change, one that claims to override policy, and one that embeds instructions in a quoted passage or image. Define the intended task and prohibited action before running the test.
A successful result should complete the legitimate task where possible while declining to treat the embedded instruction as authority. Inspect tool calls and application logs, not just the assistant’s final sentence. Saying “I ignored the instruction” is not enough if an unauthorized action already occurred.
Keep test destinations non-production and do not use real secrets as bait. Expand the test set when a new retrieval source or tool is connected. These tests reduce uncertainty; they do not prove that every possible injection has been eliminated.
Plan what happens when suspicious content appears
Define whether the workflow should flag the passage, continue with limited analysis or stop for review. Preserve the source reference without copying sensitive content into broadly visible logs. Give the operator a clear way to report and investigate the event.
NIST’s generative AI profile provides broader risk-management context. For a practical starting scope, Contact Us with the document sources and proposed actions, not confidential documents. The first deliverable should be an authority map and a safe test plan, not an unrestricted agent demonstration.