arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2612.06137cs.CRcs.AI
收藏

信号而非裁决:面向使用工具的智能体的有状态运行时保护

Signals, Not Verdicts: Stateful Runtime Protection for Tool-Using Agents

The State Key Laboratory of Blockchain and Data Security, Zhejiang University(浙江大学区块链与数据安全全国重点实验室);Anhui SparkShield Intelligent Technology(安徽火花盾智能科技有限公司);iFLYTEK(科大讯飞);Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security(杭州高新技术开发区(滨江)区块链与数据安全研究院)

Tiancheng Zhu, Mingjie Chen, Mingxue Zhang, Tian Gao, Rui Yang, Yuxuan Xi, Chaohui Xu, Shifeng Peng, Shuang Huang, Junhua Liu, Cong Liu, Guoping Hu, Kui Ren

AI总结:

针对现有工具使用智能体监控器的缺陷,提出PrismGuard运行时保护框架,通过结构化风险信号实现有状态保护,在多类基准测试中显著提升安全性能、降低误报率且效率优于基线。

摘要:

使用工具的智能体会在不同风险容忍度下运行多步骤工作流,但现有监控器将上下文处理与裁决生成绑定:增长或截断的对话记录会丢失早期约束并引发误报,而缓慢的自回归解码则硬编码单一阻止策略。我们提出PrismGuard,这是一种围绕结构化风险信号而非整体裁决构建的运行时保护框架。状态跟踪器将已确认的历史增量总结为两个独立的、无裁决的字段:任务意图(用户目标和限制)与执行环境(操作进度和带源标记的观测结果),同时保持待处理工具参数的字面性。基于问题的信号守卫读取该状态、待处理调用以及类型化安全问题,通过一次前向传递并行对所有合法答案选项评分,无需解码任何token。确定性规则组合这些信号,使操作员可调整阻止严格程度或为未见过的领域添加问题,无需重新训练。在四个离线操作安全基准测试中,PrismGuard的F1值最高达91.02%,在多步骤STAC攻击上比基线高出最多10.60个F1点;生成式状态压缩在所有基准测试中比固定截断将误报率(FPR)降低最多22.95个百分点。在未见过的上下文隐私风险(PrivacyLens)上,向冻结的TS-Bench守卫添加三个问题可在10.73%的FPR下达到75.13%的F1值,比提示适配的基线高出3.89至49.75个F1点,且比持久安全记忆的FPR低57.63个百分点。在带有主机重规划的闭环部署中,相同的冻结守卫将Qwen3.6在AgentDojo上的攻击成功率从36.58%降至8.26%,在AgentDyn上从36.36%降至15.19%,同时保留AgentDojo 89.41%的良性效用,平均守卫等待时间为138.7毫秒,比基线快5.2倍至115倍。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑