A document can contain instructions your assistant should not follow

Prompt injection happens when content an AI assistant reads tries to redirect what it does. In a business workflow, that content could arrive in an email, an attachment, a webpage or a retrieved document.

The important boundary is between information to analyze and authority to act. A supplier document may describe a requested change; it should not independently authorize your assistant to change account settings, disclose records or send a message somewhere new.

Anthropic describes this risk for agents processing external content in its research on prompt-injection defenses. Its discussion concerns its own research and mitigations, not a guarantee that any business deployment is immune.

What this looks like in an ordinary workflow

Consider a hypothetical assistant that extracts order details from incoming documents. A file also contains a passage telling the assistant to ignore previous instructions and export customer information to another destination.

Extracting the requested order number is within the task. Treating the extra passage as permission to export records is a different action. The fact that it appears inside a document does not make it an instruction from the business owner.

Not every unusual phrase is malicious. Contracts, manuals and quoted conversations naturally contain instructions. The system should be able to summarize them as content without obeying them as operating commands.

Separate reading from making changes

A useful first version can produce a proposed result for review without having permission to send emails or modify business records. Add action permissions only when a clear process requires them.

Where actions are necessary, constrain them outside the model as well as in its instructions. Examples of design controls include:

  • Allowing writes only to the fields required for the task.
  • Restricting external destinations to an approved set.
  • Validating extracted values against expected formats and records.
  • Requiring a separate approval for consequential changes.
  • Keeping credentials outside documents and model-visible output.

These are layers of risk reduction. OWASP’s prompt-injection guidance discusses constraints, validation, limited privileges and human approval as mitigation approaches. A sentence saying “ignore malicious instructions” is not a complete security design, and no combination should be presented as eliminating every attack.

Preserve the original evidence

When the assistant proposes an update, show the relevant source material and the proposed change separately. A reviewer should be able to see whether the document actually supports the extracted value.

Record which source informed the proposal and which person or rule authorized execution. Avoid letting an AI-generated summary become the only evidence for a sensitive change.

Keep logs appropriate to their audience. Reviewers may need access to a protected original document; that does not mean the entire attachment belongs in a general alert channel.

Test the boundaries with harmless examples

Before connecting live actions, use fictional files that contain irrelevant instructions, conflicting text and requests outside the task. Verify that the workflow extracts the intended information while refusing to expand its permissions or destinations.

Test the actual integration, not just the assistant’s chat response. An assistant might say it ignored a passage while an action component still accepts unvalidated output. Inspect the resulting records and tool calls in a controlled test environment.

Include ordinary messy documents too. Security checks that reject all unusual inputs may make the workflow unusable. Uncertain cases should reach a person through a visible automation exception queue.

What to do if a workflow behaves unexpectedly

Pause the affected action path, preserve relevant evidence and have the responsible technical owner review what the system accessed or changed. Do not assume that deleting the suspicious sentence reverses actions already taken.

Does this apply only to chatbots?

No. Any AI process that reads external material and can influence actions deserves a review of this boundary, including document processing and email assistants.

Where should a business start?

List what the assistant may read, what it may change and who authorizes those changes. GGTAMOL’s document and data automation service starts from the workflow and its limits, rather than assuming that unrestricted tool access is necessary.