Close-up of an electronic circuit board and its components

AI-assisted editorial content. Methodological examples are not completed audits or empirical results. Sources retain their recorded access dates; verify current applicability before relying on them.

Separate the source from the mandate

A document used by an assistant may contain statements attempting to change the system's behaviour. OWASP describes prompt injection as a risk in language-model applications [1]. The operational proposal is to keep task authority separate from retrieved content: a source may inform an answer, but should not grant new permissions or replace the user's instructions.

This issue also affects apparently ordinary material such as notes, attachments and text imported from external services. A useful assessment must consider the actual path by which this material reaches the model. Testing does not end with checking whether the answer repeats a suspicious phrase: it must examine attempted actions, changes of destination and disclosure beyond the authorised scope.

Build harmless, recognisable tests

We propose defensive cases in a controlled environment, using synthetic documents and tools without external effects. Content may attempt to make the assistant ignore the question or request an out-of-scope operation, without including harmful operational instructions. Expected outcomes must be defined before testing and cover the entire service's behaviour, not just the final text.

In an illustrative example, an attachment asks the assistant to consult an unrelated store. The test observes whether a call is proposed or executed, and whether access control rejects it. A model that makes the request but encounters a technical block provides different evidence from a model that never makes the request. The report must preserve this distinction.

Verify multiple boundaries

OWASP's RAG security guidance provides a reference for protecting document workflows [2]. In the proposed method, we observe content entry, source selection, available tools and data output. Defences must be examined together because unexpected model behaviour should not be sufficient to bypass every service control.

Evaluation material also requires careful handling. A test document must not accidentally enter the operational corpus or a client demonstration. Keep identifiers, environments and destinations clearly distinct. The test should leave enough traces to reconstruct the workflow while protecting any confidential information in the testing infrastructure.

Communicate the result precisely

Passing a collection of tests does not demonstrate that every future attack is impossible. The report must describe case classes, examined components and limitations. Retain failures as regression cases and repeat them when the model, instructions or tools change. A correction effective in one configuration may not transfer automatically to another.

For a future voluntary GPIRL scheme, prompt injection could form a defensive assessment area with public criteria and controlled test details. The aim would be to demonstrate observed behaviours and boundaries without absolute claims of invulnerability. Clients could then understand which protections were verified and which operating conditions require further checks.

Practical takeaway

Test the complete system with synthetic content and observe actions and access, rather than checking only the response text.

Sources and further reading

References do not imply product certification or endorsement.

Have a related operational question? Discuss a research or consultation proposal →

Related reading