How should business agents handle instructions inside customer messages?

Protect business agents from instructions hidden in customer messages and documents. Use a price-change example to separate content, access and approval.

Workflow for a third-party integration crossing application trust boundaries
OWASP’s third-party integration workflow maps interactions across separate applications and services. Resized and letterboxed for web; image contents are unchanged. The thumbnail shows a selected detail. OWASP Cheat Sheet Series contributors · CC BY-SA 4.0

How should business agents handle instructions inside customer messages?

Customer messages and documents can contain text that tries to redirect an AI application beyond its intended task. Treat that material as untrusted content, rather than permission to change records or disclose information. Combine limited tool access, validated operations, clear approval boundaries and realistic adversarial tests, since a warning prompt alone is insufficient.

Keep these in mind

  • Received content cannot grant authority over business records.
  • Limit which records and operations each workflow can access.
  • Test disguised instructions and ordinary ambiguous messages together.
Read customer content → Extract permitted facts → Check authority → Execute bounded operation
Untrusted content may inform a task, while independent controls decide what the application may do.

A business message can contain two kinds of text

A customer might ask for a delivery update and attach a document. The document may contain useful order details alongside an instruction to ignore the application’s rules and reveal other customers’ prices.

The application needs the order information. The unrelated instruction has no authority merely because it appears in material the model can read. This boundary applies to chat, email, uploads and retrieved web pages.

What indirect prompt-injection research established

The 2023 Greshake and colleagues paper demonstrated attacks through content retrieved by language-model applications. Its contribution concerns a route by which external data can influence application behavior.

The research does not mean every customer message is malicious or that all systems fail identically. The practical question is which operations an application could perform after reading untrusted material.

OWASP’s prevention guidance recommends layered controls around this risk. A statement telling the model to ignore suspicious text is only one part of the arrangement.

Inspect an illustrative price-change attempt

Suppose a customer submits a request for order C-17 and includes a note claiming manager approval for a discount. The system can record that claim, while approval still needs the recognized business process.

A second instruction asking the assistant to apply that price to every open order should exceed the request’s scope. The tool boundary should reject it even if the model proposes the operation.

Illustrative content-to-authority inspection
Received materialAllowed interpretationBoundary to enforce
Customer says a discount was approvedA claim requiring confirmationDo not create approval from the claim
Attachment requests other customers’ pricesUnrelated untrusted instructionRestrict retrieval to permitted records
Message names order C-17Candidate order referenceVerify account and order relationship
Tool proposes a broad price updateOperation outside the requestReject scope beyond authorized action

Use narrow tools and current permissions

A tool that reads one permitted order creates a smaller exposure than unrestricted database access. A price-update operation should require the specific record, allowed fields and appropriate approval.

Validate those requirements where the operation executes. The user’s current access should determine what can be retrieved or changed. A model-generated explanation cannot upgrade that access.

Keep secrets and credentials outside content the model needs to inspect. An ordinary customer-response task rarely requires broad administrative information or unrestricted exports.

Test the entire path after the suspicious text

Give the test environment a safe, representative set of fictional records. Put misleading instructions inside an attachment and inspect proposed tools, returned data and the final record. A polite refusal alone is not enough evidence.

Include a legitimate request with awkward wording. A defense that blocks every unusual customer phrase can damage useful work. Evaluate whether the system can extract the allowed information while rejecting unauthorized instructions.

Also test a restricted employee account. Administrative demonstrations can hide information exposure that occurs when the same workflow runs for ordinary staff.

Prepare a response to uncertain or blocked actions

Show staff what was blocked and which business question remains unresolved. They should be able to continue through an approved route without copying the suspicious instruction into a more privileged workflow.

Retain appropriate operational evidence for investigation while limiting sensitive log content. If a tool boundary fails, restrict the affected capability and review the resulting records before restoring access.

  1. List the untrusted channels the workflow reads.
  2. Define permitted records, operations and approval requirements.
  3. Test disguised instructions in a controlled environment.
  4. Inspect actual retrieval and changes, then repair the failed boundary.

Common questions

Does adding a stronger system prompt solve prompt injection?

A prompt can guide model behavior, while downstream controls must still enforce access and allowed operations. Test how the complete application handles untrusted content. Use limited tools, input checks and approval boundaries so one mistaken model response has a constrained effect.

Should suspicious attachments always be discarded entirely?

Choose a controlled handling route around the task and risk. Useful business facts may coexist with unauthorized instructions. Preserve appropriate evidence, restrict automated actions and ask a responsible person to resolve the business request through an approved process.

Sources & further reading

Primary references for the facts and frameworks discussed. Original worked examples are illustrative and separate from research results.

  1. Not what you’ve signed up for: Indirect Prompt Injection ↗

    Dated 2023 primary research demonstrating attacks via retrieved external content.

  2. OWASP: LLM Prompt Injection Prevention Cheat Sheet ↗

    Supports layered access, validation and monitoring defenses; no complete prevention guarantee is claimed.

Published by the team building Daltn. Comparisons are first-party analysis, not independent reviews. Our editorial approach.

Your contact details

We use your email and role to respond to early-access requests. For an Enterprise demo, we use your name, work email, company and any workflow details you share to follow up about the demo.

You can ask us to update or delete your details by emailing ceo@dotsuper.net.