What the Authors Did
Kept the user's rules apart from everything else. Task Intent only accepts updates from user-role messages, so a tool output or retrieved document can't rewrite what the user authorized. Execution Environment records outside facts and third-party instructions with their source, plus progress: which calls were planned, which ran, which were blocked. The tracker is told not to judge safety itself. In their example, the forged "auditor approved" note stays in Execution Environment as unverified outside text and never becomes user consent. The tracker is a frozen, prompted Qwen3-4B-Instruct-2507 model.
Asked three typed questions instead of one. The Signal Guard is Qwen3.5-4B with rank-32 LoRA adapters and a joint classification head in the style of Jev and Clef. It answers:
- Harmful Intent (H): does the user's own goal in Task Intent seek a harmful or unauthorized outcome? (true or false)
- External Redirection (A): is the pending call following untrusted text? Options are none, observed only, action linked, or unknown
- Operational Risk (U): how severe is this action in context? 0 safe, 1 controversial, 2 unsafe
The "observed only" versus "action linked" split is the key idea for false alarms. An agent that read an injection and ignored it shouldn't get every later step blocked.
Moved the blocking policy out of the weights. The paper gives three postures over the same signals. Strict blocks if any flag fires. Balanced blocks an externally redirected call, or a risky call paired with harmful intent. Permissive blocks only when redirection and a risky action coincide. In the quarterly-report example, Balanced blocks the hijacked email and still allows a later local draft save. Because each block traces back to specific flags, you can audit why it happened without parsing a free-text rationale.
Added new questions without retraining. To test a different risk type, they took the guard trained only on TS-Bench, froze it, and appended three privacy questions (is data leaving, is it a private fact, does it conflict with a user restriction) for the PrivacyLens benchmark.
Trained for calibrated probabilities. The guard is trained with cross-entropy plus a Brier penalty, so its option probabilities are usable in rules and thresholds, not just its top answer. Labels missing from a benchmark were filled in by larger LLM teachers (DeepSeek and GLM models), and anything still unknown was masked rather than assumed safe.
Compared against retrained baselines. StepGuard, TS-Guard and ShadowMem were all fine-tuned by the authors on Qwen3-4B-Instruct-2507 with matched LoRA settings and the same splits. AR-Multi is their own control: same backbone, state, questions and rules, but it generates its answers token by token.
Findings With Numbers
Offline detection (Table 2). PrismGuard had the best F1 and accuracy on all four benchmarks:
| Benchmark | PrismGuard F1 | PrismGuard FPR | Best other F1 |
|---|
| PI (prompt injection) | 89.37% | 2.71% | 88.05% (StepGuard) |
| STAC (multi-step chained attacks) | 85.33% | 3.28% | 74.73% (ShadowMem) |
| StepGuard subset | 88.94% | 17.70% | 87.78% (StepGuard) |
| TS-Bench | 91.02% | 11.75% | 89.39% (AR-Multi) |
The clearest win is STAC, the multi-step benchmark, where the lead is 10.6 F1 points. The others are close, and PrismGuard doesn't have the lowest false-positive rate everywhere: StepGuard's 2.48% beats it on PI. ShadowMem, the closest stateful design, gets high recall but at 26.23% to 53.98% false positives on STAC and the StepGuard set. AR-Multi, the token-by-token version of the same design, collapses to 33.96% F1 on STAC.
The 91.02% has a footnote (Table 7). That number is the cross-entropy plus Brier model on TS-Bench. The plain SFT version of the guard actually scores higher there: 91.83% F1 at 7.82% FPR. The Brier version wins on multi-step STAC (85.33% vs 80.56%) and stays within 0.81 F1 points of SFT on the other three. It also has the best calibration on all four benchmarks. Reward-only RL (GRPO-style) collapsed on STAC to 9.09% F1.
Keeping state beats truncating it, mostly (Table 3). Holding the SFT guard, questions and rules fixed, the model-maintained state lowered the false-positive rate on all four benchmarks compared with fixed truncation. The biggest cuts were 22.95 points on STAC (26.23% to 3.28%) and 12.39 points on the StepGuard set. F1 rose 3.89 points on PI and 4.47 on STAC. On the short-horizon StepGuard and TS-Bench checks, truncation kept slightly higher F1, as you'd expect when the relevant cue sits right next to the pending call.
New risk type, frozen weights (Table 4). On PrivacyLens, the TS-Bench guard plus three appended questions reached 75.13% F1 at 10.73% FPR. That's 3.89 to 49.75 F1 points ahead of the prompt-adapted baselines and 9.40 ahead of AR-Multi. ShadowMem's false-positive rate there was 68.36%, 57.63 points higher.
Live agents (Table 5). Hosts were Qwen3.6-35B-A3B and Spark X2.6-4B, with 85 clean and 462 attacked episodes on AgentDojo and 51 clean and 363 attacked on AgentDyn. A blocked call returns a notice and the host can replan, up to four blocked attempts per episode.
| Host, benchmark | No guard ASR | PrismGuard ASR | PrismGuard benign utility |
|---|
| Qwen3.6, AgentDojo | 36.58% | 8.26% | 89.41% (unguarded 90.59%) |
| Qwen3.6, AgentDyn | 36.36% | 15.19% | 56.86% (unguarded 70.59%) |
| Spark X2.6-4B, AgentDojo | 14.64% | 4.05% | 92.59% (unguarded 93.75%) |
| Spark X2.6-4B, AgentDyn | 15.28% | 7.44% | 52.00% (unguarded 66.67%) |
The guards with near-zero attack success got there by breaking the tasks: ShadowMem hit 0.00% attack success and 0.00% benign utility on AgentDyn, and StepGuard kept 23.53% utility there. PrismGuard isn't the lowest on attack success. On Qwen3.6 AgentDyn, AR-Multi got 9.64% versus PrismGuard's 15.19%, but finished only 33.33% of clean tasks. The authors say closing the remaining AgentDyn gap needs stricter rules.
Speed, with the full bill (Table 6). The guard's blocking decision takes 133.0 to 149.2 ms per check, 138.7 ms on average. That's 5.2x to 6.6x faster than StepGuard and AR-Multi, up to 29.6x faster than ShadowMem, and over 100x faster than TS-Guard, whose checks take about 14.5 to 15.5 seconds. Against TS-Guard specifically, the best case is 114.9x, which is where the abstract's "115x" comes from. But updating the state record takes 5.76 to 7.94 seconds per check in their test harness, and it runs synchronously. The authors point out it only reads confirmed history, so it could run in parallel while the host model generates its next call. They haven't benchmarked that yet. Tokens per check stayed nearly flat at 3.0k to 3.3k, while guards that re-read the raw transcript grew from 3.2k-4.2k on AgentDojo to 5.7k-7.4k on the longer AgentDyn runs.
No code yet. The authors say the implementation will be released upon acceptance.
Limitations
What the authors say themselves:
- The tracker can drop things. It's a frozen prompted model, not a learned compressor or a deterministic taint tracker. It can still omit an early user constraint, merge tool outputs too aggressively, or blur where a piece of text came from when the wording is subtle. If the summary loses a scoped permission or prohibition, the guard loses that evidence too
- Adaptive attacks are untested. Testing the State Tracker against adaptive injections is open work
- Only covered tools are protected. Calls that go around the tool boundary, and the agent's plain-text replies, aren't checked. Recovery after a block depends on the host replanning within its retry budget
- Latency off the critical path is a proposal. Running compression asynchronously with bounded queuing is future systems work
- New questions can nudge old ones. Appending unfamiliar questions can slightly shift probabilities on the existing dimensions
From my own reading:
- Read each headline number with its condition. The 91.02% is one training objective on one benchmark (SFT scores higher there). The 22.95-point cut is one benchmark under the SFT guard. The 138.7 ms excludes the 5.76 to 7.94 seconds of state compression. The "5.2x to 115x" range spans different baselines
- Utility still drops on harder tasks. On AgentDyn, benign completion fell from 70.59% to 56.86% (Qwen3.6) and 66.67% to 52.00% (Spark), with 15.19% and 7.44% of attacks still getting through
- Home-trained baselines. Every baseline was retrained by the authors on a 4B model. That keeps the comparison fair on size, but it isn't the same as testing the published versions
- Industry authors. Two of the four affiliations are companies, Anhui SparkShield Intelligent Technology and iFLYTEK. That's normal for applied work, and worth knowing
- Preprint, and no code yet. Nobody outside the team can reproduce it today
My Takeaways
These are mine, not the authors' recommendations.
- Don't let your guard forget the user. If your tool-call monitor works on a sliding window of transcript, the first rule the user gave is the first thing it loses. Keep the user's goals and prohibitions in a separate record that tool output can't write to
- Tag where every piece of text came from. "A file said the auditor approved this" is not approval. Keeping provenance on outside text is the simplest version of this paper's idea, and you can do it today
- Pass the pending call through untouched. Summaries are lossy. The recipient, path and amount in the call you're about to run should reach the guard exactly as written
- Separate "saw it" from "acted on it." A guard that blocks everything after an injection appears will train your team to turn it off. Score adoption, not exposure
- Keep the policy in rules, not weights. Different deployments need different strictness. Signals plus a rule you can read and edit beat a model that only says yes or no
- Count the whole latency. A fast guard on top of a slow state update is a slow guard until the update runs in parallel. Measure end to end
- Map it to the OWASP agentic list. Indirect injection that redirects a tool call is ASI01 Agent Goal Hijack in the OWASP Top 10 for Agentic Applications for 2026. That mapping is mine, not the authors'
The Bottom Line
PrismGuard makes a good architectural point: the part of a guard that remembers context and the part that decides should be separate, and the decision should come out as signals a plain rule can combine. The biggest gains are where that matters most, on multi-step attacks and false alarms after an injection. The numbers need their conditions attached, the state update is slow today, and there's no code to check yet. I'd borrow the design (a user-only intent record, provenance tags, literal pending arguments) now and wait for the release before trusting the benchmarks.
Sources
Read the full paper on arXiv. If you run a guard in front of your agent's tool calls, I'd like to know how you keep it from forgetting the user's first instruction. Reach me on X.