AIToday
Large Language ModelsDaily Dose of Data SciencePublished: May 5, 2026, 10:00 JST1 min read

Five architectural defenses against prompt injection attacks in LLM applications, layering untrusted input labeling, instruction hierarchy, tool restriction, user approval, and dual-model separation.

Five architectural defenses against prompt injection attacks in LLM applications, layering untrusted input labeling, instruction hierarchy, tool restriction, user approval, and dual-model separation.

3 Key Points

  1. OWASP ranks prompt injection as the #1 threat to LLM applications. The article describes five composable defenses: wrapping untrusted text in explicit tags (e.g., <Untrusted> delimiters) or Base64 encoding; assigning explicit trust ranks to instructions so developer prompts override third-party content; restricting tool access to only what an agent needs; requiring explicit user approval before sensitive actions execute; and separating planning (a reasoning layer with no tool access) from execution (a tool-calling layer that never directly consumes untrusted input).

  2. The dual-model pattern (Planner and Executor) is described as the most architecturally robust defense. The Planner reasons over untrusted data but has no tools, producing a structured plan; the Executor has tools but only executes that plan, never directly consuming untrusted input. Google DeepMind's CaMeL framework formalized this approach and solved the AgentDojo security benchmark.

  3. The article states no single defense is sufficient alone. Strongest implementations layer all five defenses together: labeling untrusted content, enforcing instruction hierarchy, restricting tools to minimum required capability, requiring approval for sensitive actions, and separating planning from execution when stakes justify the complexity.

Ask the AI about this article →

Daily Dose of Data ScienceRead Original Article

Get the latest Large Language Models news every morning

For example, today's edition would include:

  • Claude 5.1 adds song lyric ban after Sony, Warner suitSimon Willison's Weblog · 2h ago
  • US military adds ChatGPT and Grok to GenAI.milTHE DECODER · 2h ago
  • AWS Cloud Quest 2.0 launches with AI virtual customersPublickey · 2h ago

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · takes 30 seconds · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. Q&As are published on this page for other readers too.

Related Articles

Next articleAI debate shifts from model quality to harness design; coding agents strain flat-rate pricing models