Tool-using LLM agents can be redirected by attacker-controlled content into unauthorized actions. Existing tool-level guards may miss within-tool hijacking, where an attacker preserves the intended tool but changes a sensitive argument such as a recipient or destination. We present ToolFence, a provenance-aware dynamic authorization framework that combines model-based and rule-based judges to improve detection accuracy and efficiency. An LLM compiles the authenticated user request into typed, task-scoped capabilities specifying permitted tools, effects, argument sources, workflow stages, and budgets. A deterministic monitor based on Guarded Colored Petri Net (GCPN) checks each proposed call and its concrete argument values before execution. When a legitimate step requires a missing capability, an isolated LLM judge can review the action proposal and update the GCPN monitor. We evaluate ToolFence on AgentDojo, MCPTox, ASB, and AgentLAB on four different LLMs, covering environmental prompt injection, tool poisoning, memory poisoning, and long-horizon attacks. It achieves the lowest or tied-lowest attack success rate in 15 combinations. On AgentDojo with Qwen3-max, attack success falls from 21.2\% to 0\%, with a 2.0-percentage-point reduction in clean-task utility. A measured runtime subset incurs 1.63X overhead, versus 12.95X for CaMeL. Our code is released at https://github.com/PolyLiYJ/ToolFence_v2


翻译:暂无翻译

0
下载
关闭预览

相关内容

《战争中的大语言模型监管》
专知会员服务
24+阅读 · 8月10日
综述 | Always-On Agents:LLM智能体持久状态与治理
专知会员服务
22+阅读 · 6月30日
美陆军新型AI/LLM工具:提升作战效能
专知会员服务
24+阅读 · 2025年8月3日
MMDetection v2.0 训练自己的数据集
CVer
30+阅读 · 2020年8月9日
TheFatRat 一款简易后门工具
黑白之道
36+阅读 · 2019年10月23日
通过Termux打造免root安卓渗透工具
黑客技术与网络安全
16+阅读 · 2019年8月16日
【泡泡图灵智库】Detect-SLAM:目标检测和SLAM相互收益
泡泡机器人SLAM
14+阅读 · 2019年6月28日
用PyTorch做物体检测和追踪
AI研习社
12+阅读 · 2019年1月6日
Focal Loss for Dense Object Detection
统计学习与视觉计算组
12+阅读 · 2018年3月15日
From Softmax to Sparsemax-ICML16(1)
KingsGarden
74+阅读 · 2016年11月26日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
3+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
19+阅读 · 2012年12月31日
VIP会员
最新内容
北约400亿美元反无人机能力投资建设
专知会员服务
2+阅读 · 今天15:19
反小型无人机系统方案评估(27页)
专知会员服务
3+阅读 · 今天15:12
乌克兰无人机饱和战场中的错误教训
专知会员服务
18+阅读 · 11月17日
面向最后一战术英里:美军无人机创新尝试
专知会员服务
14+阅读 · 11月17日
《美空军2026条令文件:对海压制作战》
专知会员服务
31+阅读 · 11月9日
人工智能与战争的未来
专知会员服务
14+阅读 · 11月8日
《Agent Mosaic:识别智能体LLM系统中的机密泄露》
专知会员服务
14+阅读 · 11月8日
相关资讯
MMDetection v2.0 训练自己的数据集
CVer
30+阅读 · 2020年8月9日
TheFatRat 一款简易后门工具
黑白之道
36+阅读 · 2019年10月23日
通过Termux打造免root安卓渗透工具
黑客技术与网络安全
16+阅读 · 2019年8月16日
【泡泡图灵智库】Detect-SLAM:目标检测和SLAM相互收益
泡泡机器人SLAM
14+阅读 · 2019年6月28日
用PyTorch做物体检测和追踪
AI研习社
12+阅读 · 2019年1月6日
Focal Loss for Dense Object Detection
统计学习与视觉计算组
12+阅读 · 2018年3月15日
From Softmax to Sparsemax-ICML16(1)
KingsGarden
74+阅读 · 2016年11月26日
相关基金
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
3+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
19+阅读 · 2012年12月31日
Top
微信扫码咨询专知VIP会员