AI agents that interact with the real world through tool calls pose fundamental safety challenges: agents might leak private information, cause unintended side effects, or be manipulated through prompt injection. To address these challenges, we propose to put the agent in a programming-language-based "safety harness": instead of calling tools directly, agents express their intentions as code in a capability-safe language: Scala 3 with capture checking. Capabilities are program variables that regulate access to effects and resources of interest. Scala's type system tracks capabilities statically, providing fine-grained control over what an agent can do. In particular, it enables local purity, the ability to enforce that sub-computations are side-effect-free, preventing information leakage when agents process classified data. We demonstrate that extensible agent safety harnesses can be built by leveraging a strong type system with tracked capabilities. Our experiments show that agents can generate capability-safe code with no significant loss in task performance, while the type system reliably prevents unsafe behaviors such as information leakage and malicious side effects.


翻译:通过工具调用与现实世界交互的AI智能体面临根本性安全挑战:智能体可能泄露隐私信息、引发非预期副作用,或受到提示注入攻击。针对这些问题,我们建议将智能体置于基于编程语言的"安全约束框架"中:智能体不再直接调用工具,而是以具有能力安全性的语言(支持捕获检查的Scala 3)表达其意图。能力作为程序变量,可调节对相关效应与资源的访问权限。Scala的类型系统可静态追踪能力,实现对智能体行为的细粒度控制,尤其具备局部纯净化能力——可强制子计算无副作用,从而在智能体处理涉密数据时防止信息泄露。实验表明,通过利用具备可追踪能力的强类型系统,能够构建可扩展的智能体安全约束框架。我们的实验显示:智能体生成能力安全代码时任务性能无显著损失,同时类型系统可可靠防范信息泄露与恶意副作用等不安全行为。

0
下载
关闭预览

相关内容

《人工智能在网络防御中的机遇》
专知会员服务
13+阅读 · 6月8日
《军用自主人工智能系统的治理与安全》
专知会员服务
19+阅读 · 4月21日
智能体工程(Agent Engineering)
专知会员服务
40+阅读 · 2025年12月31日
AI智能体面临的威胁:关键安全挑战与未来路径综述
专知会员服务
54+阅读 · 2024年6月7日
专知会员服务
49+阅读 · 2021年6月25日
《人工智能安全测评白皮书》,99页pdf
专知
36+阅读 · 2022年2月26日
基于车路协同的群体智能协同
智能交通技术
10+阅读 · 2019年1月23日
人工智能对网络空间安全的影响
走向智能论坛
21+阅读 · 2018年6月7日
群体智能:新一代人工智能的重要方向
走向智能论坛
12+阅读 · 2017年8月16日
国家自然科学基金
4+阅读 · 2017年12月31日
国家自然科学基金
6+阅读 · 2017年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
19+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
18+阅读 · 2014年12月31日
国家自然科学基金
18+阅读 · 2009年12月31日
VIP会员
最新内容
《衡量语言模型中的作战规划能力》
专知会员服务
4+阅读 · 10月20日
Maven智能系统:帕兰提尔军事人工智能平台详解
专知会员服务
6+阅读 · 10月20日
《测试自动化框架在敏捷软件开发中的角色》
专知会员服务
4+阅读 · 10月20日
俄罗斯如何拦截乌克兰无人机与巡航导弹
专知会员服务
9+阅读 · 10月15日
《武器-目标分配问题:精确与近似求解算法》
专知会员服务
14+阅读 · 10月15日
综述|谁来改进机器人?迈向物理递归自我改进
专知会员服务
11+阅读 · 10月14日
软件定义无人机蜂群给防空带来全新压力
专知会员服务
10+阅读 · 10月13日
相关VIP内容
《人工智能在网络防御中的机遇》
专知会员服务
13+阅读 · 6月8日
《军用自主人工智能系统的治理与安全》
专知会员服务
19+阅读 · 4月21日
智能体工程(Agent Engineering)
专知会员服务
40+阅读 · 2025年12月31日
AI智能体面临的威胁:关键安全挑战与未来路径综述
专知会员服务
54+阅读 · 2024年6月7日
专知会员服务
49+阅读 · 2021年6月25日
相关基金
国家自然科学基金
4+阅读 · 2017年12月31日
国家自然科学基金
6+阅读 · 2017年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
19+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
18+阅读 · 2014年12月31日
国家自然科学基金
18+阅读 · 2009年12月31日
Top
微信扫码咨询专知VIP会员