HarnessSecurity-Bench horizontally evaluates the security mechanisms of six coding agent frameworks.HarnessSecurity-Bench: Do Security Mechanisms Really Protect Coding Agent Harnesses?
Translation in progress — untranslated text is omitted.
Researchers from Sun Yat-sen University, Hong Kong Baptist University, and other institutions propose HarnessSecurity-Bench, a horizontal evaluation of the native security mechanisms of six coding agent frameworks: Claude Code, Codex CLI, Gemini CLI, gptme, Qwen Code, and GitHub Copilot. The study first identifies ten categories of security mechanisms, and across 400 framework-mechanism combinations confirms 205 as implemented, 83 as missing, and 112 as having insufficient evidence. About half of the implemented items are optional features that require users to enable them manually, and the evidence gap is more pronounced for closed-source frameworks. The evaluation completed 2,500 trials under the GLM-5.2 base model, recording 81,155 tool calls and over 2.2 billion tokens. Case studies show that restricting shared capabilities blocks both legitimate and malicious operations, and allowed interpreters can still serve as bypass paths. The researchers recommend that framework providers publicly disclose verifiable security settings and report attack effectiveness, task utility, and execution cost together.
- Coding agent harnesses handle tool invocation and operation authorization, but the implementation of native security mechanisms, their default states, and their runtime security–utility impact lack systematic comparison, and evidence for closed-source products is especially hard to verify.
- The authors use independent human and LLM ratings to build a 400-cell matrix of ten mechanism categories across 40 harnesses, then construct HSB: 23 tasks covering five attack surfaces, with independent deterministic oracles separately checking task utility and attack effects, and comparing native mechanisms ON/OFF.
- RQ2 confirms 205 cells implemented, 83 absent, and 112 undetermined. RQ3 runs 2,500 trials on GLM-5.2 across six harnesses: AA raises both utility and ASR; NI and RO lower ASR but lose utility; CAL, CDL and others preserve or raise utility, yet there remain cases where an allowed interpreter bypasses the restriction.
- The authors note that the AA-OFF results depend on the specified LLM approval configuration, and that RQ1–RQ2 may be affected by researcher and model bias; the core runtime evaluation covers six open-source harnesses with a single GLM-5.2, and Docker and simulated services do not fully reproduce real deployments. The authors plan to extend to closed-source harnesses and more LLMs.
The paper uses 2500 trials to quantify the trade-off between attack success rate and task utility across the security mechanisms of six coding agents, providing comparable data for configuration choices.
Related events and news
2 events · 2 news mentions
- The reports cite this paper
研究发布Coding Agent十大安全机制评测
- This event's paper
编码智能体框架安全机制横向评测
News that mentions this paper
研究发布Coding Agent十大安全机制评测
- 公众号 模安局cites the paper's id or link40 款 Coding Agent 的十大安全机制
2026 年 10 月,中山大学、鹏城实验室等研究机构发布了一篇论文《HarnessSecurity-Bench: Do Security Mechanisms Really Protect Coding Agent Harnesses?
- 公众号 大模型安全研究cites the paper's id or link大模型安全周报:决策性模型护栏也能被攻击者绕过
HarnessSecurity-Bench: Do Security Mechanisms Really Protect Coding Agent Harnesses?