Prompt injection: testing controls and understanding limitations
An assistant reading a page or attachment receives content that may contain instructions addressed to the model. That text is material to analyze, not user authorization. A product sheet might try to make the assistant ignore the…
Ian · 2026-02-05
Practical guide
A malicious instruction can arrive inside documents or tool responses. Separating instructions from data, limiting privileges and checking actions reduces exposure, but no single test proves infallible protection.
Planning a first application
- Treat retrieved documents and pages as untrusted data.
- Limit tools, network destinations and actions to the task.
- Test direct and indirect attacks and record which control fails.
What to check before deciding
Verify that restrictions exist in tools or infrastructure, not just prompts. Repeat relevant tests after model or connector changes. Retain human approval for sensitive actions and an incident response procedure.
An instruction can arrive inside a document
An assistant reading a page or attachment receives content that may contain instructions addressed to the model. That text is material to analyze, not user authorization. A product sheet might try to make the assistant ignore the question or send information elsewhere. Hiding those instructions in another language or a secondary section does not make them legitimate.
Test the boundary between reading and acting
Prepare test documents containing embedded instructions and fictional data. Check what happens when the assistant summarizes, finds a quotation or has access to a sending tool. The relevant restriction must also exist in the tool: permitted destinations, accessible data and action approval. A text filter alone cannot establish complete protection.
Record the input, tools used and observable outcome. Repeat the case after changing instructions, models or connectors. If the system handles information belonging to several users, verify that answers respect their separate permissions. This exercise seeks failures before expanding access. Passing a test set establishes only the scenarios checked, not immunity to every possible attack variant or the safety of tools that were outside the test scope.
Primary reference: OWASP · Prompt Injection
Talk to Innovatec in a free 30-minute introductory conversation to assess your needs.