PreprintCited by 0Security and Verification in ComputingAdversarial Robustness in Machine LearningInformation and Cyber Security

HarnessSecurity-Bench: Do Security Mechanisms Really Protect Coding Agent Harnesses?

Open access
Zhu, Zhengyang, Huang, Liming, Ji, Runmin, Ye, Mingxi, Zhou, Zihan, Guo, Hanyang, Wu, Jingwen, Ye, Yuhan +3 more·2026·arXiv

Abstract

Coding agent harnesses mediate tool use and authorize actions, yet their security mechanisms and runtime effects remain incompletely characterized. We present HarnessSecurity, the first systematic empirical study and benchmark of open- and closed-source coding agent harnesses. First, we derive a ten-mechanism taxonomy and then assess 400 harness-mechanism cells using independent ratings by researchers and large language model (LLM) judges. We find that about half of confirmed mechanism implementations are opt-in, while closed-source harnesses exhibit substantial evidence gaps. Second, we introduce HarnessSecurity-Bench, a benchmark of 23 tasks across five attack surfaces without sacrificing legitimate task requirements. Using separate deterministic oracles to measure task utility and attack effects with security setting comparisons, we evaluate nine mechanisms across six leading harnesses: Claude Code, Codex CLI, Gemini CLI, gptme, Qwen Code, and GitHub Copilot. Under a controlled LLM baseline GLM-5.2, we conduct 2,500 trials, recording 81,155 tool calls and over 2.2 billion tokens. Enabling auto-approve increases utility and raises attack success from 29.2% to 95.6%. Network isolation and read-only mode reduce attack effects with substantial utility losses, while command allowlisting and command denylisting reduce attack effects with a small utility loss and a utility gain, respectively. Task-level cases show that restrictions on a shared capability can obstruct both legitimate and malicious operations, and that allowed tools or commands can leave unauthorized operations reachable through alternative execution paths. Harness providers should make security settings verifiable, test alternative execution paths to protected operations, and assess attack effects alongside task utility and execution costs.

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

DataCite · 10.48550/arxiv.2610.07639

Cites

26 of 26 references verified0 citation errors · 0 not checkable

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

Flagged first, then by citations

Research works printed but not linked: 8

  1. [12][12] Dimitrios Stamatios Bouras, Yihan Dai, and Sergey Mechtaev. 2026. Authority Is Not a String: A Capability-Scoped Harness for Prompt-Injection-Resistant Coding Agents. arXiv:2609.08371 https://arxiv.org/abs/2609.08371v1 Version 1. - · arXiv
  2. [15][15] Zhaorun Chen, Zhen Xiang, Chaowei Xiao, Dawn Song, and Bo Li. 2024. AgentPoison: Red-Teaming LLM Agents via Poisoning Memory or Knowledge Bases. In Advances in Neural Information Processing Systems , Vol. 37. doi: 10.52202/ 079017-4136 -
  3. [26][26] Daoyuan Li. 2026. RepoGuardBench: Repository-Borne Prompt Injection Attacks and Lightweight Defenses for Local Coding Agents. 5th Deep Learning for Code Workshop at ICML. https://github.com/DaoyuanLi2816/RepoGuardBench/ blob/main/paper/main.pdf Non-archival workshop presentation; official evaluation artifacts. -
  4. [27][27] Junjie Li, Xi Xiao, Yunbei Zhang, Chen Liu, Lin Zhao, Xiaoying Liao, Yingrui Ji, Janet Wang, Yingqiang Ge, Weijie Xu, Xi Fang, Xiang Xu, Tianchen Zhao, Youngeun Kim, Jihun Hamm, Tianyang Wang, and Chandan K. Reddy. 2026. Agent Harness Engineering: A Survey. https://picrew.github.io/LLM-Harness/main.pdf Survey preprint. -
  5. [50][50] Anselm L. Strauss and Juliet M. Corbin. 1998. Basics of Qualitative Research: Techniques and Procedures for Developing Grounded Theory (2 ed.). SAGE Publications, Thousand Oaks, CA, USA. -
  6. [56][56] Yu Yang, Zhenyuan Li, Xiandong Ran, Jiahao Liu, Jiahui Wang, Bo Yu, and Shouling Ji. 2026. Towards Scalable and Interpretable Mobile App Risk Analysis via Large Language Models. In Proceedings of the 48th IEEE/ACM International Conference on Software Engineering (ICSE) . https://arxiv.org/abs/2508.15606 - · arXiv
  7. [57][57] Hanrong Zhang, Jingyuan Huang, Kai Mei, Yifei Yao, Zhenting Wang, Chenlu Zhan, Hongwei Wang, and Yongfeng Zhang. 2025. Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents. In The Thirteenth International Conference on Learning Representations . https://proceedings.iclr.cc/paper\_files/ paper/2025/hash/5750f91d8fb9d5c02bd8ad2c3b44456b-Abstract-Conference.html -
  8. [58][58] Wei Zou, Runpeng Geng, Binghui Wang, and Jinyuan Jia. 2025. PoisonedRAG: Knowledge Corruption Attacks to RetrievalAugmented Generation of Large Language Models. In 34th USENIX Security Symposium (USENIX Security 25) . USENIX Association, 3827-3844. https://www.usenix.org/conference/usenixsecurity25/presentation/zou-poisonedrag

Authors
Zhu, Z., Huang, L., Ji, R., Ye, M., Zhou, Z., Guo, H., Wu, J., Ye, Y., Feng, Y., Dai, H.-N., & Zheng, Z.
Affiliations
  • Sun Yat-sen University (CN)
  • East China Normal University (CN)
  • Hong Kong Baptist University (HK)
  • Tsinghua University (CN)
  • Peng Cheng Laboratory (CN)
Venue
arXiv
Publisher
arXiv
Published
2026
ISSN
2331-8422 (ISSN-L)
OpenAlex
W7221035517
Cited by
0
References
26
Type
posted content
Language
en
Open access
Locations
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Security and Verification in Computing
  • Physical Sciences › Computer Science › Artificial Intelligence › Adversarial Robustness in Machine Learning
  • Physical Sciences › Computer Science › Information Systems › Information and Cyber Security
Keywords
security mechanisms, security benchmarks, attack surface, network isolation, GitHub Copilot, Claude Code

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review