top of page

When a Document Tries to Give Your AI Assistant Instructions

Oct 20
3 min read
Document review boundary separating external content from the task's instructions and authorized actions.

A supplier's document contains useful information about a proposed service. It also includes a sentence telling an AI assistant to ignore its task and send internal notes elsewhere. The sentence is part of the document being reviewed; it is not authorization from the business. This is the boundary a document workflow must preserve.


Prompt injection in documents matters whenever an assistant consumes material that someone outside the trusted workflow can influence. The article below offers a defensive review exercise for a team planning such a workflow. It does not demonstrate a deployed FutureOS security capability or claim that any single safeguard eliminates the risk.


Identify where outside content enters


OWASP describes indirect prompt injection as instructions encountered through external sources such as files or websites. It notes that retrieval-augmented generation does not fully remove this problem and recommends multiple mitigations, including constrained privileges and separation of external content.



For your project, draw a simple content path: incoming document, extraction, model input, draft result and any destination action. Mark who can edit each input. A document may come from a trusted employee while still containing copied material from an outside party.


Include attachments, retrieved passages and tool results in the inventory. The relevant question is who controls the content, not whether the text appears in an official-looking format.


State the legitimate task precisely


An illustrative task could be: “Summarize the supplier's delivery assumptions and list unresolved questions, using only the submitted proposal and approved project brief.” The output is a draft for a reviewer.


Now define actions outside that task. The assistant may not send messages, change project permissions or retrieve unrelated internal records. Those boundaries should be reflected in the connected tools and access controls, not only in prose.


Ask the implementer to show which capabilities are actually available during review. If the workflow only needs document reading and draft creation, an unrestricted administrative account adds authority without helping the task.


Keep evidence and instructions distinguishable


The reviewer should be able to identify which statements came from the proposal and which came from the approved project brief. Preserve source references and avoid turning a supplier's request into an internal instruction.


For example, “The supplier asks for access to the full customer database” is a factual description of a request. It is not a decision to grant that access. The draft should leave the business decision with the authorized person.


This distinction also applies to benign-looking content. A template may contain obsolete directions or examples that conflict with the current assignment. The workflow needs an explicit rule for resolving that conflict without silently expanding scope.


Build a controlled test pack


Use synthetic documents and an isolated test environment. Include an ordinary proposal, a proposal with irrelevant instructions, a document that asks the assistant to change the output format and a document that asks for an unauthorized external action.


Define the expected behavior before running the test. A useful outcome may be a normal summary that ignores the irrelevant instruction, or a clear flag explaining that the document contains a conflicting request. The right response depends on the workflow, but unauthorized action is not an acceptable result.


Inspect the connected-system activity as well as the generated text. A polite refusal in the summary is insufficient if the system already attempted an unapproved tool call.


Make approval show the exact proposed action


If the broader workflow later allows an external message, show its recipient, full content and attachments to the authorized reviewer. Approval should apply to that version of the action.


A summary such as “send the requested information” can conceal what information is included. The reviewer needs the concrete proposal and its source. Changes after review should follow the team's established approval rules.


Keep document analysis and action execution separable where practical. This makes it easier to inspect the draft before granting consequential authority.


Record failures without retaining unnecessary material


For a failed test, capture the test identifier, expected boundary, observed output and attempted action. Keep sensitive operational details restricted. A reusable test should not require a real customer's private information.


Fix the underlying path, then rerun related cases. Rewording one prompt may improve a specific example while leaving the same authority problem elsewhere. Document which controls were actually exercised.


Ask for evidence at project acceptance


The handoff should identify the untrusted inputs, allowed actions, tested conflicts and unresolved limitations. Do not accept “the assistant knows to ignore attacks” as the whole explanation.


Use the human approval guide to define consequential checkpoints. Consult the FutureOS introduction when describing a prospective document-review project.


Editorial note: Prepared with AI assistance. Linked sources checked on October 20, 2026. The defensive test scenarios are illustrative; no independent security audit is claimed.


Comments


Commenting on this post isn't available anymore. Contact the site owner for more info.
bottom of page