Skip to content

HarnessSecurity-Bench horizontally evaluates the security mechanisms of six coding agent frameworks.HarnessSecurity-Bench: Do Security Mechanisms Really Protect Coding Agent Harnesses?

Paper Tracker· arXiv:2610.07639· Zhengyang Zhu, Liming Huang, Runmin Ji, Mingxi Ye, Zihan Zhou, Hanyang Guo, Jingwen Wu, Yuhan Ye, Yuming Feng, Hong-Ning Dai, Zibin ZhengSchool of Software Engineering, Sun Yat-sen University; Peng Cheng Laboratory; East China Normal University; Department of Computer Science, Hong Kong Baptist University; Tsinghua University; Department of New Networks, Peng Cheng LaboratoryIndexed by this site · 2026-10-07· Originally publishedSelected EvaluationSelectedAttention42

Translation in progress — untranslated text is omitted.

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

AI summaryResearchers 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.

Questions
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.
Methods
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.
Experiments and results
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.
Limitations and future work
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.
Why it was selectedThe 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.

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

News that mentions this paper

研究发布Coding Agent十大安全机制评测

  • 公众号 模安局cites the paper's id or link
    40 款 Coding Agent 的十大安全机制
    2026 年 10 月,中山大学、鹏城实验室等研究机构发布了一篇论文《HarnessSecurity-Bench: Do Security Mechanisms Really Protect Coding Agent Harnesses?

Related papers

Read originalarxiv.org