Security engineering · ZST-INS-020

Prompt injection is a permissions problem

Filtering malicious strings is a losing game. The question that changes outcomes is what the agent is allowed to do when an injection succeeds.

Published 28 October 2026 Reading 6 minutes Author Zeests Research

The wrong frame

Prompt injection is usually framed as an input validation problem, which suggests a filter can solve it. It cannot, in the general case, because the space of natural language instructions is unbounded and the boundary between data and instruction is a convention the model does not reliably observe.

Indirect injection makes this concrete. A retrieved document contains a sentence addressed to the model rather than the reader. A web page the agent summarises includes an instruction to exfiltrate a conversation. The user typed nothing hostile, and the application did nothing obviously wrong.

Capability is the real attack surface

If an injection will eventually succeed, the consequence is determined by what the system can reach. An agent with read-only access to one knowledge base and no outbound network has a bad day. An agent holding an administrative token, a mail connector and a browser has an incident.

This reframing is useful because it is actionable. Every tool, scope and credential an agent holds must be justified by the task. Actions with irreversible consequence should require a human approval step, and credentials should be short-lived and narrowly scoped. These are ordinary application security controls applied to a new kind of principal.

  • Enumerate tools, scopes and data sources, then remove everything the task does not require
  • Separate the retrieval context from the instruction context, and label both explicitly
  • Require approval for irreversible actions, with the proposed action shown verbatim
  • Log every tool call with its arguments so an injection is reconstructable after the fact

Detection still matters, but second

Output filters and injection heuristics are worth having as a secondary layer. They raise the cost of the simplest attacks and produce signals that are useful for monitoring. They should not be the control you rely on.

The test we run with clients is a simulated compromise: grant an attacker one successful injection and measure what they can reach, how quickly the credential can be revoked, and whether the action appears in logs. That measurement is more informative than any count of blocked prompts.

Takeaway

Design for the injection that works. Least capability bounds the incident before it starts.

ZST-INS-020 · Zeests Research · Published 28 October 2026

This note reflects our current practice and may change as we learn. It is not professional advice for a specific situation. If you want to discuss how it applies to your estate, we are happy to.

Discuss this with us → All insights