Signals, Not Verdicts: Stateful Runtime Protection for Tool-Using Agents
Abstract
Tool-using agents run multi-step workflows under varying risk tolerances, yet existing monitors couple context handling with verdict generation: growing or truncated transcripts drop early constraints and raise false alarms, while slow autoregressive decoding hardcodes one blocking policy. We present PrismGuard, a runtime protection framework built around structured risk signals rather than monolithic verdicts. A State Tracker incrementally summarizes confirmed history into two isolated, verdict-free fields: Task Intent (user goals and restrictions) and Execution Environment (action progress and source-tagged observations), keeping pending tool arguments literal. A question-conditioned Signal Guard reads this state, the pending call, and typed safety questions in one forward pass, scoring all legal answer options in parallel with zero decoded tokens. Deterministic rules combine these signals, letting operators tune blocking strictness or append questions for unseen domains without retraining. Across four offline action-safety benchmarks, PrismGuard reaches up to 91.02% F1 and outperforms baselines by up to 10.60 F1 points on multi-step STAC attacks, while generative state compression cuts false-positive rates (FPR) on every benchmark by up to 22.95 percentage points over fixed truncation. On unseen contextual privacy risks (PrivacyLens), appending three questions to the frozen TS-Bench Guard yields 75.13% F1 at 10.73% FPR, outperforming prompt-adapted baselines by 3.89 to 49.75 F1 points with 57.63 points lower FPR than persistent security memory. In closed-loop deployments with host replanning, the same frozen Guard cuts Qwen3.6 attack success from 36.58% to 8.26% on AgentDojo and 36.36% to 15.19% on AgentDyn, retaining 89.41% AgentDojo benign utility at 138.7 ms mean Guard wait time, 5.2x to 115x faster than baselines.
Community
This paper lists Anhui SparkShield Intelligent Technology as one of its institutional affiliations (Affiliation 2). Several co-authors, including Tian Gao, are affiliated with the organization. SparkShieldLab is the corresponding Hugging Face organization. We would like to associate this paper with SparkShieldLab to reflect the organization's research contributions.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Blocking at the Boundary: Auditing Long-Horizon Agents against Staged Prompt Injection (2026)
- Securing and Auditing Long-Horizon LLM Agents: State-Transfer Auditing and Controls in the Agent Harness (2026)
- PROVISO: Provenance-Informed Action Selection for Secure LLM Agents (2026)
- AgentPolicyForge: From Executable Environments to Policy Benchmarks and Adaptive Guards (2026)
- Jev-Guard: Fast Routing and Auditing Agent Actions over Editable Policy Trees (2026)
- Kernel-Layer Runtime Defense for LLM Agents Against Indirect Prompt Injection (2026)
- ErosionBench: Probing Alignment Decay in Enterprise Multi-Agent Systems (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2612.06137 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper