Three papers from March 2026 just formed a complete system-level defense against indirect prompt injection. None of them try to detect malicious text. That is the key insight.

Indirect prompt injection is the most practical attack on LLM agents right now. Google reported a 32% surge in IPI attacks in April 2026. HackerOne saw prompt injection reports up 540% year over year. CVE-2025-32711 (EchoLeak) was the first weaponized zero-click prompt injection in production. The threat is real and growing.

But until now, defenses have been piecemeal. Each paper proposed one technique in isolation. Detect bad input text here. Add a filter there. Hope for the best.

Arun Baby's synthesis changes that. He identified three concurrent papers that, together, form a layered defense stack. Architecture. Testing. Runtime attribution. Each layer covers what the others miss.

Let me walk through each one.

The Problem: Why Detection Fails

Most existing defenses treat indirect prompt injection as a text classification problem. Scan the input. Flag the malicious strings. Block them.

This fails for two reasons.

First, adversarial prompts evolve. A detector trained on known attack patterns misses novel payloads. PISmith proves this by generating attacks that break state-of-the-art defenses.

Second, injection does not need obvious malicious text. A legitimate-looking email or search result can contain instructions that redirect an agent. The semantics are ambiguous. What looks like a helpful API response to one user is a weapon to another.

The three papers in this stack abandon detection entirely. Instead, they restructure the system itself.

Layer 1: System Architecture (NVIDIA + JHU)

Paper: "Architecting Secure AI Agents: Perspectives on System-Level Defenses Against Indirect Prompt Injection Attacks" (arXiv: 2603.30016)

Authors: Chong Xiang, Drew Zagieboylo, Shaona Ghosh, Sanjay Kariyappa, Kai Greshake, Hanshen Xiao, Chaowei Xiao, G. Edward Suh

Affiliations: NVIDIA, Johns Hopkins University, Independent Researcher

This is a position paper from the NVIDIA AI Red Team and academic collaborators. It does not propose a specific tool. It proposes an architecture.

The core idea: treat the LLM agent like an operating system. You need privilege separation, constrained execution, and policy enforcement. Not a spam filter.

The paper presents a system architecture with six components:

  • Orchestrator — generates a plan and security policy from the user task
  • Plan/Policy Approver — oversees the orchestrator to ensure the plan and policy are sound
  • Plan — describes how the agent completes the task
  • Executor — takes the plan and generates concrete actions
  • Policy Enforcer — approves or blocks actions based on the policy
  • Environment — returns responses to approved actions

The architecture enforces three positions:

Position 1: Dynamic replanning is necessary. Static plans break in real environments. APIs change. Dependencies fail. The agent needs to replan. But replanning means untrusted data can influence new plans. The solution is not to freeze the plan. It is to secure the replanning process itself.

Position 2: LLMs can make security decisions, but only under strict constraints. You cannot eliminate LLMs from security decisions. Rule-based policies lack expressiveness for complex tasks. But you can restrict what the LLM sees and decides. Feed it narrowly scoped, structured artifacts. Give it a constrained judgment task. The attacker's surface shrinks from "arbitrary text on the internet" to "a single structured decision about policy compliance."

Position 3: Ambiguous cases need human input. Some decisions are fundamentally subjective. What counts as "urgent" in an email? Whether to install a package that looks relevant but might be compromised. These are not algorithmic problems. The architecture must include human-in-the-loop checkpoints for these cases.

The paper also calls out a critical flaw in existing benchmarks. AgentDojo, the most popular benchmark, has only 6 out of 97 tasks that require replanning. All existing benchmarks use static, non-adaptive attack payloads. This creates a false sense of security.

This is the skeleton. The architecture that everything else plugs into.

Layer 2: Automated Red Teaming (PISmith)

Paper: "PISmith: Reinforcement Learning-based Red Teaming for Prompt Injection Defenses" (arXiv: 2603.13026)

Authors: Chenlong Yin, Runpeng Geng, Yanting Wang, Jinyuan Jia

Code: github.com/albert-y1n/PISmith

If you build a defense, you need to test it. Against real attacks. Not just the ones you thought of.

PISmith trains an attack LLM using reinforcement learning to generate adversarial injections in a practical black-box setting. The attacker can only query the defended system and observe outputs. No white-box access. No gradient information.

The key technical contribution is solving RL's reward sparsity problem. When attacking a strong defense, most generated prompts get blocked immediately. The policy's entropy collapses before it discovers effective attack strategies. Rare successes get lost in the noise.

PISmith introduces two fixes:

  • Adaptive entropy regularization — keeps the policy exploring instead of collapsing into repeated failures
  • Dynamic advantage weighting — amplifies learning from scarce successful attacks so they actually shape the policy

The results are sobering. PISmith evaluated 13 benchmarks against state-of-the-art prompt injection defenses. Current defenses remain vulnerable to adaptive attacks. The gap between static benchmark scores and adaptive attack performance is large.

PISmith also tested in agentic settings on InjecAgent and AgentDojo. It broke defenses on both open-source and closed-source LLMs, including GPT-4o-mini and GPT-5-nano.

This is the testing layer. You build the architecture, then you hammer it with PISmith to find the gaps.

Layer 3: Runtime Attribution (AttriGuard)

Paper: "AttriGuard: Defeating Indirect Prompt Injection in LLM Agents via Causal Attribution of Tool Invocations" (arXiv: 2603.10749)

Authors: Yu He, Haozhe Zhu, Yiming Li, Shuo Shao, Hongwei Yao, Zhihao Liu, Zhan Qin

This is the runtime defense. The thing that runs in production and blocks attacks in real time.

AttriGuard takes a fundamentally different approach from input-level defenses. Instead of asking "is this input malicious?", it asks "why did the agent make this tool call?"

The answer to that question determines whether the call was caused by the user's intent or by injected content. This is causal attribution.

The mechanism works through parallel counterfactual tests. When the agent proposes a tool call, AttriGuard re-executes the agent under a "control-attenuated view" of external observations. If the tool call survives when untrusted observations are suppressed, the call is causally driven by user intent. If the call disappears, it was driven by injected content.

Three technical components make this work:

  • Teacher-forced shadow replay — prevents attribution confounding by ensuring the counterfactual test stays on the original execution path
  • Hierarchical control attenuation — suppresses diverse control channels in untrusted data while preserving task-relevant information
  • Fuzzy survival criterion — accounts for LLM stochasticity so the test does not produce false negatives from random variation

The results are strong. Across four LLMs and two agent benchmarks, AttriGuard achieved 0% attack success rate under static attacks with negligible utility loss and moderate overhead. Under adaptive optimization-based attacks, where leading defenses degrade significantly, AttriGuard remained resilient.

This is the production layer. The thing that actually stops attacks at runtime.

Why These Three Fit Together

Here is why the stack works.

The NVIDIA/JHU paper gives you the architecture. It tells you how to structure your agent so that security decisions happen in the right places with the right constraints. Privilege separation. Policy enforcement. Constrained LLM judgments. Human checkpoints for ambiguity.

PISmith tells you whether your architecture actually holds up. Static benchmarks create false confidence. You need adaptive red teaming that evolves its attacks. PISmith provides that. It is the stress test.

AttriGuard gives you the runtime enforcement. When an attack slips past the architecture and the testing, AttriGuard catches it at the moment of action. It asks the causal question: was this tool call caused by the user or by injected content? If injected, block it.

Each layer assumes the others might fail. The architecture assumes attacks will reach the agent. PISmith assumes defenses will have blind spots. AttriGuard assumes the architecture is imperfect.

Defense in depth. From three independent research teams. Published within weeks of each other. Covering architecture, testing, and runtime. None relying on detecting malicious input text.

What This Means for Practitioners

If you are building LLM agents today, take three things from this stack.

Stop relying on input detection. Every defense in this stack abandons the idea that you can classify malicious text at the input layer. The attack surface is too broad. The semantics are too ambiguous. Structure your system instead.

Adopt privilege separation. The NVIDIA/JHU architecture is a blueprint. Separate plan generation from execution. Separate policy from action. Constrain what your LLM-based security decisions can observe. You do not need to implement their exact architecture, but the principles apply universally.

Test with adaptive attacks. If your defense only works against static payloads from a benchmark, it does not work in production. PISmith proves this. Run adaptive red teaming against your system before you ship.

Add runtime attribution. AttriGuard's counterfactual testing approach is the most promising production defense available right now. 0% attack success rate under static attacks. Resilient under adaptive attacks. Moderate overhead. You should be testing this in your pipeline.

The field has been waiting for a defense stack. Not a single technique. Not a filter. A layered, complementary approach that covers architecture, testing, and runtime. These three papers deliver that.


Suggested Title

The Defense Stack for Indirect Prompt Injection Has Arrived

Word Count

~1,450 words

Citations

Fact-Check Notes

  • arXiv IDs confirmed: 2603.30016 (NVIDIA/JHU, submitted March 31, 2026), 2603.13026 (PISmith, submitted March 13, 2026), 2603.10749 (AttriGuard, submitted March 11, 2026). All three are March 2026, consistent with "March-April 2026" framing.
  • AttriGuard 0% ASR claim: Taken directly from the paper abstract. Confirmed "0% ASR under static attacks with negligible utility loss and moderate overhead." The adaptive attack resilience claim is also from the abstract. Verify exact benchmark names and LLM models used if citing specific numbers in a final version.
  • PISmith adaptive attack findings: The paper states "state-of-the-art prompt injection defenses remain vulnerable to adaptive attacks" and "PISmith consistently achieves the highest attack success rates." Confirm specific baseline comparisons and benchmark names from the full paper if quoting exact numbers.
  • NVIDIA/JHU architecture positions: Three positions are directly from the paper abstract and introduction. The six-component architecture (orchestrator, approver, plan, executor, policy enforcer, environment) is from Figure 1 and Section II.
  • AgentDojo benchmark limitation: The paper states only 6 out of 97 AgentDojo tasks require replanning. This is a specific claim that should be verified against the referenced paper [15/S3] in the original.
  • Google 32% IPI surge and HackerOne 540% increase: These come from prior coverage (Google Security Blog Apr 23, SecurityWeek Apr 27, HackerOne data) and are not from these three papers. Flagged separately if included in published version.
  • CVE-2025-32711 (EchoLeak): Referenced for context about real-world IPI attacks. Not from these three papers. Verify separately if cited.
  • Arun Baby synthesis URL: Confirmed via web search that the post exists at arunbaby.com with the synthesis of these three papers. The specific content was not fully retrievable due to fetch issues, so the synthesis framing in this article is based on the task brief and the three original papers.
  • PISmith GitHub stars: 5 stars as of search date. The paper is recent (March 2026). Star count will grow. Verify current count before publishing.