Execution-Grounded Security Testing for Coding Agents in Software Engineering Pipelines

Yifei Ge, Weisong Sun, Jinkun Xiao, Yuchen Chen, Yebo Feng +6 more
6/1/2026
cs.AIcs.SE

No confident code implementation found for this paper.

Abstract

Coding agents are increasingly integrated into system operations, where their tool use can directly modify project artifacts, execution environments, and the underlying system. For example, if a coding agent inserts a hook into a system startup or configuration script, that change can persist after the interaction, be triggered later, and abuse delegated user or system privileges to modify the system.

Show full abstract

This makes security testing a system problem: the key question is not only what the agent says, but what it actually does to the surrounding environment. We present an execution-grounded red-team testing framework for probing this execution-layer security boundary using observable sandbox evidence, including tool invocations, runtime traces, and file-system diffs. Our framework embeds target unsafe operations into routine software engineering workloads, including unit testing, regression testing, crash reproduction, and validation, and uses an execution oracle to guide refinement when an initial probe is rejected or fails. Across multiple agent frameworks and model backbones, our red-team workload reformulation substantially increases verified unsafe execution, reaching 73.61% on code carriers and 53.93% on text carriers. These results show that coding agents in system operations remain insecure under task disguise: once risky intent is hidden inside plausible engineering tasks, the agent can be induced to carry out unsafe actions on the surrounding system. More broadly, coding agents in system operations still demand stronger security testing and safeguards.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ge2026executiongrounded,
  title  = {Execution-Grounded Security Testing for Coding Agents in Software Engineering Pipelines},
  author = {Yifei Ge and Weisong Sun and Jinkun Xiao and Yuchen Chen and Yebo Feng and Peizhuo Lv and Xia Feng and Chunrong Fang and Zhihong Zhao and Zhenyu Chen and Yang Liu},
  year   = {2026},
  eprint = {2607.22569},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.22569v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.22569.svg)](https://codeofpaper.com/paper/2607.22569)

Discussion