Zum Inhalt springen
Kontakt
Einblicke

Six architectural controls against prompt injection in agents

  • DatumDecember 3, 2026
  • KategorieSecurity

Dieser Artikel ist derzeit nur auf Englisch verfügbar.

Prompt injection is listed first, as LLM01:2025, in the OWASP Top 10 for LLM Applications 2025. For a chat assistant that only answers questions, a successful injection produces a misleading or embarrassing response. For an agent with tool access, the stakes are different. The agent reads external content and acts on it, so a manipulated instruction hidden in that content can turn into an executed action.

Agents are particularly exposed to indirect injection. They read emails, web pages, documents and tickets that were written by people outside the organisation's control. They then act through tools that can send messages, update records or trigger payments. An instruction embedded in an incoming email, such as a request to forward the conversation to an external address, may be followed if the agent treats retrieved content as part of its instructions.

A better system prompt does not solve this problem. Models do not reliably separate instructions from data, and detectors that look for injection patterns can be bypassed. The realistic objective is therefore not zero injections but bounded, traceable impact. That is an architecture question, and six controls address it.

Control one, mark trust boundaries: external content is labelled as data and passed to the model separately from the system context. Retrieved content never replaces or extends the agent's instructions. This does not make the model immune, but it gives the model and downstream checks a clear signal about the origin of each piece of context.

Control two, least privilege per tool: an agent that summarises emails needs no write access to the ERP system. Scopes are assigned per tool, and where possible per call, so that a successful injection can only use the permissions that the current task actually requires.

Control three, approval for consequential actions: payments, external emails and deletions require human approval. The approval view shows what the agent intends to do and on what basis, including the content that led to the proposal. A person who sees that an external transfer was triggered by an unknown attachment can stop it.

Control four, check tool calls against policy: the model proposes, the platform decides. Before every execution, the tool call is validated against a strict schema and a policy. An illustrative policy for an email tool might accept only recipients in the organisation's own domain and require approval whenever the recipient is external or an attachment originates from retrieved documents. The decision is made by deterministic code outside the model.

Control five, restrict egress: agents can reach only approved destinations. Arbitrary HTTP requests are not allowed, and rendered output must not load images from external URLs, which can otherwise be used as an exfiltration channel by encoding data in the address.

Control six, test and trace: injection cases belong in the golden dataset, red teaming takes place before releases, and traces record the origin of every context chunk. When an incident occurs, the trace shows which document introduced the instruction and which tool call followed.

The honest limit is that no single control currently prevents injection completely, and the combination of all six does not either. What they achieve is containment. A successful injection meets narrow permissions, a policy check, an approval step or a blocked egress path, and leaves a trace. There are also costs. Approval steps slow down processes and can lead to approval fatigue if they are triggered too often. Strict egress rules can break legitimate use cases. Each control has to be calibrated to the risk of the specific agent.

For a security or architecture team, the next steps are concrete. Classify your agents by the content they read and the actions they can take, and start with those that combine untrusted input with write access. For each, review tool scopes and remove what is not needed. Define which actions require human approval. Introduce a policy check in front of tool execution and an egress allowlist. Add injection scenarios to the evaluation dataset and schedule red teaming before major releases. Finally, verify that traces capture the origin of context.

The design principle: contain the damage, do not expect zero injections, and design for the successful attack.

cloudstrata builds and operates AI platforms for enterprises. AI Foundry is our managed runtime for AI agents, with multi-tenant workspaces, routing of models and tools, knowledge retrieval, evaluation hooks, usage and cost metering, audit trails and central governance. To discuss agent security controls in your environment, you can arrange a technical introductory conversation via cloudstrata.io/contact.

KONTAKT

Sprechen wir über Ihr Projekt

Beschreiben Sie Ihren Anwendungsfall. Sie bekommen einen konkreten nächsten Schritt – kein Verkaufsgespräch.

Wir antworten innerhalb eines Werktags.

Folgen Sie Cloudstrata auf LinkedIn und Instagram — so bleiben Sie über unsere Arbeit und offene Stellen informiert.

Angaben nur zur Beantwortung. Datenschutz

Six architectural controls against prompt injection in agents | cloudstrata