Distributing Security Controls Through Harness Engineering

Agent Tool Learning Autonomous Workflows AI Safety / AI Ethics AVAR RA AI Systems and Hardware PVDAR
人工智能编程代理正以史无前例的速度被广泛采用,但安全与风险问题仍是阻碍其在组织内规模化部署的主要障碍。当前面向编程代理的安全管控措施尚未系统化地分发至各工程团队;而厂商原生的安全解决方案则会引入特定技术生态的依赖关系,未必适配所有实际部署场景。本文旨在探究:能否将现成可用(off-the-shelf)的安全控制机制部署于商用人工智能编程代理之上,并借助定制化的代理运行时框架(agent harness),将其规模化推广至分布式用户群体?研究采用分阶段测试方法,针对四种代理配置展开评估——包括两款商用代理(分别启用与未启用安全控制)、一个基础版运行时框架,以及一个经安全加固的运行时框架——并使用基于《OWASP 面向智能体应用十大风险》(OWASP Top 10 for Agentic Applications)构建的23项测试用例组成的测试套件进行验证。本研究开发的可分发式安全运行时框架 SHarD(Secure Harness Distribution),基于 Pi 代理运行时框架构建,结果表明:操作系统级沙箱隔离、技能(skill)扫描与工具调用限制这三类安全控制机制,均可通过单一安装命令嵌入并分发至终端用户,且其防护效能与直接在商用代理上部署同等控制措施完全一致。SHarD 在全部测试中取得100%的校准得分,与表现最优的安全配置商用代理持平,且在任一测试类别中均未出现性能退化或防护能力下降。研究还发现若干重要现象:大语言模型固有的非确定性(non-determinism)会导致安全效果波动不一致;而智能体的自主行为可能突破系统边界,此类越界行为恰恰可通过操作系统级沙箱机制予以直接遏制。本文据此初步提出“控制型运行时框架适用性评估框架”(control harness fitness framework)的关键特征维度,并进一步提出第三个待深入研究的问题,供后续工作探索。
AI coding agents are being adopted at historic speed, yet security and risk concerns remain the primary barrier to scaling agentic AI across organizations. Existing security controls for coding agents are not systematically distributed to engineering teams, and vendor-native solutions introduce ecosystem dependencies that may not suit every deployment context. This paper investigates whether off-the-shelf security controls can be implemented on commercial AI coding agents and scaled to a distributed user base via a custom agent harness. A phased testing methodology was applied across four agent configurations --- two commercial agents with and without controls, a baseline harness, and a security-hardened harness --- using a 23-test suite derived from the OWASP Top 10 for Agentic Applications. SHarD (Secure Harness Distribution), a distributable harness built on the Pi agent harness, demonstrated that three categories of security controls --- OS sandboxing, skill scanning, and tool restriction --- can be embedded and distributed via a single install command while retaining equivalent efficacy to direct installation on commercial agents. SHarD achieved an adjusted score of 100\%, matching the best securely configured commercial agent, with no regression across any test category. Notable observations include evidence that model non-determinism produces inconsistent security outcomes and that autonomous agent behavior can cross system boundaries in ways that OS sandboxing directly mitigates. Initial characteristics toward a control harness fitness framework are proposed, and a third research question is identified for future investigation.
许愿