A purchasing engineer uploads a supplier document to an internal assistant and asks for a summary of its technical requirements. The application extracts the document text, retrieves related records and uses a language model to prepare the answer.

That workflow creates a security boundary which does not exist in conventional document viewing. The document contains data that the system should interpret, but the language model can also interpret language as a request to perform an action. If the application gives the assistant access to other records or tools, a manipulated document may influence behaviour beyond the intended summary.

Indirect prompt injection is the name commonly used for attempts to influence a model through content it processes from an external source rather than through the user's explicit request. In manufacturing, the relevant sources include supplier documents, engineering records, emails and retrieved knowledge-base material.

Classify authority independently of the content

An engineering drawing may be authoritative for a specified product characteristic. That does not give the drawing authority to instruct an application to disclose another customer's documents or modify a production record.

A supplier email may contain a legitimate request for a change. The request must still be evaluated through the established approval process. It cannot acquire approval authority simply because an assistant encounters it during a retrieval operation.

Separate document authority concerning technical facts from application authority concerning access, communication and actions.

Information source — Appropriate system treatment
Information sourceAppropriate system treatment
Approved drawingEvidence for applicable engineering requirements
Supplier submissionUntrusted input requiring the appropriate review
Retrieved historical recordContext subject to revision and applicability checks
Authorized user actionA request evaluated against application permissions
Application policyEnforced restrictions on access and permitted operations

The distinction must be reflected in the system's architecture. Labelling retrieved text as untrusted is useful, but it is not equivalent to enforcing an authorization boundary.

Restrict what the document processor can do

A system that only needs to summarize a document does not necessarily require tools for sending email, changing purchase orders or updating quality records. Limit its access and available operations to what the actual task requires.

Where practical, separate document interpretation from components that perform consequential actions. The interpretation stage can produce structured findings for validation. A separate application component can enforce the permitted operations and check whether the authenticated user is entitled to initiate them.

Do not expose service credentials or broad database access to a model merely because the application may occasionally need information from another system. Retrieve only the necessary authorized data using controlled application logic.

Validate tool arguments and outputs independently. A generated recommendation to perform a particular action is not proof that the action meets the organization's requirements.

Preserve the real permission boundaries

Suppose a supplier-quality assistant supports several customers. The retrieval system must enforce the applicable customer and document access boundaries before information reaches the model. Filtering the generated answer afterwards cannot reliably compensate for unauthorized material entering its context.

The same issue exists within a company. Access to one engineering programme may not authorize access to unrelated commercial or technical information.

Apply permission checks to document retrieval, generated reports, exports and any connected action. Where authorization depends on a record or tenant identifier, establish that identifier from trusted application context and verify it at the relevant server boundary.

An application should not accept the model's assertion that a user is authorized as evidence of authorization.

Establish a defensive evaluation

Use a dedicated test environment with fictional or otherwise approved test documents and non-production data. Include cases in which untrusted material contains irrelevant requests or apparent instructions that conflict with the user's actual task.

Evaluate whether the assistant completes the legitimate task, refuses unauthorized disclosure and avoids initiating operations outside its allowed scope. Observe the underlying retrieval and tool activity, not just the final written response.

A useful evaluation also includes legitimate documents containing procedural instructions. The system must remain capable of explaining a work instruction or extracting a requirement without interpreting that content as permission to carry out the underlying operation.

Treat security evaluation as a continuing process. A change to document extraction, retrieval settings, model configuration or available tools can alter the system's behaviour. Test the relevant boundaries again when the configuration changes.

Preserve oversight where it has practical meaning

For consequential actions, display the proposed operation and relevant evidence to the authorized decision-maker. The person should be able to review what would change and decline or correct the proposal before it is executed.

An approval button is not an adequate safeguard if the displayed information omits the actual recipient, affected record or material consequence. Design the review around the specific decision being made.

Log relevant security events and authorized actions while respecting confidentiality and retention requirements. Logs themselves may contain sensitive material, so apply suitable access controls and avoid unnecessary collection.

Avoid claims of complete prevention

Prompt injection is a persistent challenge in systems that process untrusted language. Input screening, model instructions and output validation may reduce particular risks, but none should be treated as a universal guarantee.

The more dependable objective is to limit the consequences of a model error. A misleading document should not be able to acquire permissions, bypass the approval process or gain access to information that the application would otherwise withhold.

Industrial document assistants are valuable when they make technical information easier to interpret. Their value increases when that interpretation remains clearly separated from the authority to disclose information or take action on the factory's behalf.

Further reading

OWASP — LLM prompt injection prevention guidance.