betaFeedback

WorksComputer Science

Natural Code Transformation Confuses Agents in Vulnerability Analysis

Abstract

Having demonstrated a strong potential for automating vulnerability discovery, AI agents can also be used to attack software systems at scale. Today's software systems need mechanisms to level the playing field by slowing down potential attacks, giving them time to patch vulnerabilities and strengthen software. Along this line, our study of agent trajectories in vulnerability analysis shows a surprising finding: agents produce dramatically different results across real-world code commits that carry the same functionality and the same vulnerability. This phenomenon appears consistently in multiple code domains and vulnerability categories. It motivates us to study natural and functionality-preserving code transformations derived from real-world software development, and their potential as a defense against attacker agents. We build a corpus of natural transformations by mining recurring development patterns from real-world code commits, and apply them to evaluate impact on agentic vulnerability analysis. Our results show that even a single form of transformation can effectively "confuse" frontier agents, e.g., Claude Mythos 5.2 with Claude Code, reducing successes in vulnerability discovery. We also study different agent failures, whether transformations can be composed to provide stronger protection, and adaptive attackers who seek to reverse them. Overall, our study of natural code transformation significantly expands the research space of using code transformations to defend against malicious agents.

Introduction

Frontier AI agents can now analyze large volumes of software code to identify vulnerabilities [25, 50]. Bad actors can use them as powerful tools to discover and subsequently exploit zero-day vulnerabilities in widely used software [7, 26, 49]. Yet many companies and institutions lack the computational resources to scan their own software using advanced agents, leaving them vulnerable to attackers wielding more powerful ones. Less resource-rich stakeholders need a way to level the playing field, a way to slow down attackers long enough to give themselves time to identify and repair their own software.

In our analysis of agent trajectories in CyberGym [50], we make intriguing observations that different versions of the same codebase often exhibit varying levels of resilience to AI agents scanning for vulnerabilities § 2.2. More specifically, within a single repository, the agent’s success rate in vulnerability analysis fluctuates significantly across adjacent code commits that carry the same functionality and the same vulnerability Figure 1. In many cases, the agent either fails to identify the vulnerability after exhausting the budget or generates false positives in which the proof-of-concept (PoC) input cannot trigger the vulnerability. Such a pattern is consistently observed across multiple code domains and vulnerability categories.

Figure 1. Vulnerability analysis results of frontier agents (GPT-5.6 Sol with Codex in this example) vary significantly across commits in the same software. Commit 0 is the original version evaluated by the agent; +/- denotes preceding/following commits; the dotted line marks the vulnerability-fixing commit. Bar color = agent results; bar height = agent token cost (% of budget). The table summarizes result variance, with “flip” indicating the agent’s result changed between consecutive commits.

This finding suggests that agents’ ability to identify software vulnerabilities is highly sensitive to the code representation (i.e., syntax and structure) used in real-world software development. It further prompts us to consider the concept of natural and functionality-preserving code transformations, and their potential as a defense to slow down or even stall attacker agents. Conceptually, natural, functionality-preserving code transformations are like “imperceptible adversarial perturbations” in adversarial attacks [44], which are intentional content modifications that preserve the original content’s primary utility while manipulating how it gets interpreted by AI models.

Prior work has studied fixed code obfuscations for testing code models’ robustness, applying a predefined set of local syntax-preserving code rewrites, e.g., variable renaming, equivalent control-flow rewrites like while-to-for, and unreachable-code injection [33, 48]. However, these transformations are limited in both diversity and impact on agents (§ 4.1); some of them are easily identifiable and thus trivially reversible [29]. In fact, we find prior simple transformations are not robust when the adaptive attacker agents are allowed to proactively transform the code, and they quickly become ineffective when the attacker agents are explicitly told the code is transformed so they can identify and reverse the transformations (§ 4.2).

In contrast, we recognize that real-world software development activities, e.g., those exposed in commit histories, provide opportunities to identify natural code transformations that capture a much broader range of structural and semantic code changes, enabling diverse instantiations across code. Since these transformations occur naturally during normal software development, they leave few discernible clues for agents to recognize and reverse. These considerations make them attractive as potential techniques for code hardening against attacker agents.

To explore the feasibility of this approach, we mine recurring patterns from a large volume of real-world code commits [34], distill them into reusable transformation skills [22, 27], and instantiate and compose them into diverse implementations based on the code context. This leads to a large space of transformations resilient to adaptive agents attempting to reverse them. We validate transformed codebases to ensure that functionality and vulnerabilities are preserved modulo the ground-truth tests [24], and evaluate their effectiveness in slowing down or stalling a variety of frontier agents. Our key findings include:

  • Natural transformations substantially reduce frontier agents’ success: A single form of natural transformation can already effectively “confuse” frontier agents and lower their success rates significantly. For GPT-5.6 Sol with Codex, the agent’s mean success rate falls from 63.3% to 36.8% (−42%) under natural transformations, compared with 45.0% (−29%) under synthetic ob-

fuscations. Among the agent failures, 80% result from the agent generating a wrong PoC that cannot trigger any vulnerability, while 20% are due to budget exhaustion.

  • Composition of transformations can be even more effective. For GPT-5.6 Sol with Codex, combining two or three transformations reduces agent success by up to an additional 40% relative to the best single-transformation condition (Table 1). The agent’s success rate even drops to 20.0%, compared with 63.3% without transformation.

  • Adaptive code rewriting by the agent remains ineffective. Even when told which transformation was applied, the agent (GPT-5.6 Sol with Codex) recovers 25.9 percentage points of success on synthetic obfuscations on average, but only 3.5 points on natural transformations. Its success on our transformed repositories remains 30.1 points below that on the original code.

  • More computation does not close the success gap within the tested limits. With 4× the default budget, the agent’s success on transformed repositories still trails that on the original repositories by 19.8 points, and at max reasoning effort it still trails by 25.1 points. The gap varies by at most 2.0 points across 1 to 9 repeated runs per task.

GPT-5.6 SolOpus 5Sonnet 5
S2 + R3S2 + P1S2 + R3 + P1X1 + X3 + X5R6 + S11R6 + S11
Composed26.723.320.033.316.710.0
Individual33.3 / 36.733.3 / 33.333.3 / 36.7 / 33.353.3 / 30.0 / 46.730.0 / 23.326.7 / 13.3

Table 1. Success rates (%) of composed transformations for GPT-5.6 Sol with Codex (left) and Claude Code (right). Individual success rates are shown below each composition.

Our work validates the feasibility of mining real-world coding activities to identify rich and diverse code transformations that can protect source code against AI agents scanning for vulnerabilities. In § 5, we highlight several open challenges in translating this concept into a practical and robust toolkit for code hardening against agentic vulnerability analysis. Although related approaches have demonstrated effectiveness in traditional program analysis [16, 23, 46], extending them to agentic settings introduces new exciting open challenges.

Intriguing Observations from Real-World Code Commits

This work was motivated by our surprising observations from analyzing trajectories of AI agents that detect and reproduce software vulnerabilities in CyberGym [50]. We discuss these findings below, beginning with a brief discussion of the problem context.

Related Works as Context

Agentic vulnerability analysis Driven by their ability to understand and reason about code, recent work demonstrates agents’ strong potential in vulnerability detection by generating proof-of-concept (PoC) input [12, 17, 32, 50, 54, 56, 57], patching [35, 42, 47, 55], and penetration testing [14, 30, 41, 43]. Agentic vulnerability analysis has also become the foundation for offensive tasks like exploit generation [7, 26, 49, 58, 59]. Despite the strong reported performance, it remains unclear whether this performance is robust, e.g., stays consistent across variants of the same program, and can be potentially leveraged to harden the software against attackers. This gap motivates our work.

Indeed, prior studies show that code models can be sensitive to program representations [19, 20, 28, 33, 40, 45]. This raises concerns that agentic vulnerability analysis benchmarks [25, 26, 49, 50] might overlook the impact of program representation and instead attribute performance differences solely to vulnerability characteristics and agent capabilities. Our work examines this concern by studying agent behavior under natural code transformations derived from real-world software development activities.

Robustness of code models Robustness of code models is typically evaluated using semantics-preserving perturbations [5, 13, 18, 21, 31, 33, 52] through manually crafted, context-agnostic code obfuscations, e.g., identifier renaming and dead-code insertion [18, 29, 33]. The local, syntactic nature of these transformations limits the diversity of program changes, often yielding recognizable, thus removable patterns (see § 4.2). Our work targets a different goal and considers different types of transformations, i.e., those that naturally arise during software development and are widely observed in real-world codebases.

Agentic Vulnerability Analysis Is Susceptible to Coding Activities

Real-world software development activities can change how code is organized and represented while leaving an existing vulnerability untouched. While vulnerability analysis typically targets a single version of the software (e.g., CyberGym uses a particular commit with a known vulnerability as the ground truth), real-world software often undergoes continuous maintenance represented by a sequence of code commits. The commits before and after the targeted version often differ only by minor changes, preserving the same functionality and often the same vulnerability. This motivates us to ask the question: can an agent’s success in identifying a vulnerability on a program transfer to neighboring commits sharing the same vulnerability?

To answer this question, we consider projects from CyberGym in which the agent has successfully identified the ground-truth vulnerability, i.e., generated a PoC input. We then test the frontier code agent on the commits before and after this specific project version that also hold the same vulnerability (verified by replaying the PoC). For both the original program in CyberGym and the other versions in our sampled commits, the agent is explicitly tasked with detecting the ground-truth vulnerability.

Interestingly, we find that the agent’s vulnerability analysis results vary significantly across commits, even though they have been extensively pre-trained by most frontier LLMs [34]. Figure 1a shows two projects included in CyberGym, while we have made consistent observations across diverse projects and LLM agents (§ 4.1). Its success rate in finding the ground-truth vulnerability fluctuates, often resulting in either failing to identify the vulnerability after exhausting the budget or generating false positives where the PoC cannot trigger the vulnerability.

A concrete example Figure 2 illustrates how a small change in the program representation can redirect the agent’s investigation. Two adjacent commits, c409cca (top) and a88a11c (bottom), in the Mongoose networking library [8] contain the same vulnerability and are functionally identical. The small code change is highlighted in a88a11c. The agent locates the vulnerability in c409cca (reflected by its “Action” and “Reasoning” results), but fails to locate any on a88a11c. The two commits differ only in that a88a11c places two function calls in separate files, but this separation makes it harder for the agent to link them, leading it to pursue false leads and exhaust the budget.

Figure 2. A small change between code commits, c409cca (top) and a88a11c (bottom), flips the agent’s vulnerability analysis from success to failure. a88a11c’s simple code refactoring (extracting copy-and-transmit into tx_payload) sends the agent to a false lead, failing to reproduce the crash.

From real-world software evolution to natural code transformations Our findings above show that existing code development activities provide a rich set of natural, functionality-preserving code transformations that can elicit diverse agent behaviors and reasoning trajectories. Compared to existing work studying fixed obfuscations that manipulate simple code syntax (§ 2.1), real-world software evolution introduces a much broader (and unpredictable) range of structural and semantic code transformations. And since these transformations occur as part of normal code evolution, they are difficult to identify or to reverse. These properties make them attractive as potential techniques for a code hardening defense against attacker agents [26, 49].

Mining and Applying Natural Code Transformations

Having established the potential benefits of natural code transformations, we now explore how to mine them from real-world development activities while keeping them broadly applicable to diverse codebases. First, we mine recurring development patterns, e.g., refactoring activities, from code commits and organize them into base transformations represented as agent skills. We then use a coding agent to localize applicable program points and implement these skills as concrete transformations. We evaluate their efficacy as a potential defense against vulnerability analysis agents in § 4.

Mining transformation categories from existing codebases We group recurring development patterns into transformation categories, e.g., extracting duplicated cleanup code into a shared utility function. The categories abstract away commit-specific names and locations so the same transformation can be applied to other repositories. Specifically, we use CommitPackFT [34], which contains 702,062 real-world commits across 14 major software development tasks (e.g., refactoring, cleanup, etc.) paired with instruction-like commit messages. Given that existing agentic vulnerability analysis targets primarily memory-unsafe languages, we focus on C and C++ commits. After removing duplicate commits and those with fewer than ten changed lines, we retain 1,196 C commits and 851 C++ commits for mining base transformations.

We iteratively apply DeepSeek-V4.1-Flash [11] to extract up to three atomic transformations per commit. Each action follows the form action + concrete code element + purpose, e.g., extract into a helper + duplicated cleanup statements + to centralize resource release. The transformation is described independently of the particular functions and variables modified by the commit. Instructions to guide the extraction include 15 manually written seed categories as in-context examples of the desired format and level of abstraction. Our instructions explicitly exclude identifier-only changes, added tests, and new features. We show them in our anonymous repository.

From transformations to skills We leverage text-embedding-3-large [36] to embed the transformation descriptions and apply Ward hierarchical agglomerative clustering [51] to the L2-normalized embeddings. For each cluster, we inspect representative transformations and their supporting commits, remove superficial edits such as variable renaming, and merge overlapping categories at different levels of granularity. The resulting catalog contains 48 transformations: 25 for structure, 15 for robustness, and 8 for performance. For evaluation purposes, we select a subset of 21 transformations that occur the most frequently in our analysis, which already cover 84% of commits in the dataset. As shown in Figure 3, we represent each mined category as a skill that contains a concise instruction and a before–after code snippet [22, 27]. The instruction specifies the development action identified during mining, while the example illustrates the concrete implementation. For example, S2 instructs the agent to extract shared logic, with an example that replaces repeated statements with calls to a helper.

Figure 3. Top 21 most frequently occurring natural transformations identified by mining CommitPackFT, grouped into 3 categories: structure ( ), robustness ( ), and performance ( ). Each card shows a representative code snippet before and after the transformation. Each transformation is then represented as a skill, allowing diverse applications to target codebases. Unlike synthetic transformations, these transformations encode human intent and may be harder for agents to distinguish.

Such an abstract representation of transformations enables diverse, thus less predictable applications to target codebases. This significantly expands the search space faced by an adaptive attacker agent attempting to identify and reverse-engineer the transformations (§ 4.2), strengthening the robustness of the transformed codebase.

Instantiating transformations for a specific codebase We leverage DeepSeek-V4.1-Flash to apply the mined skills to the target repository by instantiating them as concrete transformations. Since agents have built-in stochasticity in their execution, applications of the same skill across instances can vary in the precise transformations and locations where they are applied, thus increasing the difficulty of detecting or reversing them. We also note that transformations can be composed simply by applying transformations sequentially in diverse orders. The specific ordering of composed transformations adds additional diversity, making reversing transformations even harder.

To ensure our transformed code matches the original in functionality, we rebuild/recompile the transformed variant and run the codebase’s own test suites to ensure that the original and transformed versions are equivalent modulo the given tests [24]. Beyond these existing tests, we apply fuzzing tests on original programs for 48 hours to collect additional input-output pairs. We then replay these inputs on the transformed version and compare the outputs, keeping only transformations that do not introduce behavior discrepancies. These extensive input-generation efforts give higher confidence that the transformations are semantics-preserving, even though this is unsound and does not guarantee equivalence. We also replay the ground-truth PoC to ensure that the original vulnerability remains present. If these tests fail, we feed the errors back to the agent as feedback to iteratively reapply the transformations. As proving functionality-preserving can be an undecidable problem, we add a few case studies based on manual inspection of the instantiated transformations to gain more confidence by studying how they preserve the functionalities (Appendix § 8).

Evaluation

We now evaluate the impact of natural, functionality-preserving code transformations on agentic vulnerability analysis, i.e., whether/how they slow down or stall a variety of frontier agents.

Target code Our evaluation uses tasks from CyberGym [50]. With CyberGym’s default budget setting ($2 or 100 steps per task), evaluating frontier agents and LLMs on all tasks across 21 transformations would require roughly $24K in API credits for one model-harness combination. We take the following steps to keep our costs manageable. First, since our study focuses primarily on robustness rather than performance, we only consider tasks solvable by existing agents with sufficient budget. Specifically, we consider tasks that GPT-5.6 Sol with Codex at extra-high reasoning successfully solves within 20 minutes. We further excluded tasks with trivial (zero-byte) PoCs and selected a subset of the remaining samples whose distribution across PoC size, crash depth, and other features was similar to that of the original dataset. This subset still results in approximately $10K in API credits due to the combinations of transformed variants, models, and agents, and the default three runs per transformed sample. CyberGym defines multiple task levels that expose different amounts of information about the target vulnerability to the agent. In our evaluation, we use level 0 as our primary setting, where agents receive the codebase and are tasked with generating PoC input that crashes the vulnerable version and passes the patched version.

Agent/LLM tested Given the reasoning-intensive nature of our evaluation, we primarily focus on models with strong reasoning capabilities and coding performance. We evaluate seven state-of-the-art LLMs spanning both open-weights and proprietary models: DeepSeek-V4.1-Flash [11], GPT-5.6 Sol [38], GPT-6 Sol [39], Claude Opus 5 [2], Claude Sonnet 5 [3], GLM-5.3 [15], and Claude Mythos 5.2 [4] (we obtained permissions from OpenAI Daybreak and Claude Cyber Verification Program). We pair these models with three widely used agent harnesses: Claude Code [1], Codex [37], and DeepSeek Harness [10], based on known model-harness combinations on the CyberGym leaderboard [9].

Impact of Code Transformations

Figure 5 shows the agent’s success rate across all tasks for each transformation listed in Figure 3. Appendix § 7 provides detailed success rate values, relative changes, and comparisons across transformations and model-harness combinations. Across the LLM agents and transformations, the mean success rate falls from 32.8% on the original codebases to 19.1% across transformed ones, a mean relative drop of 40.0%. The largest relative drop occurs for Claude Sonnet 5 with Claude Code under R4, where the success rate drops all the way from 16.7% to 0.0%.

Figure 5. Agent’s success rates (%) under each natural transformation described in Figure 3 and each synthetic transformation described in Figure 4 for nine model–harness combinations. Dashed lines show the success rates on the original code. All panels share the same scale (y-axis). We put detailed numbers and relative changes in Appendix § 7.

Figure 4. Six synthetic transformations widely adopted in prior robustness evaluations of code models [29, 33]. Each card shows a representative code snippet before and after the transformation, with the specific changes highlighted.

As the transformation agent is agnostic to the vulnerability (§ 3), a transformation is not tailored to obscure it, and can thus occasionally make it easier to find. We observe such gains only in three combinations of Figure 5, all with Claude Code. R6 raises the success rate of Claude Sonnet 5 from 16.7% to 26.7% and of Claude Opus 5 from 26.7% to 30.0%, and S10, S6, and S3 raise GLM-5.3 from 10.0% to 16.7%, 14.8%, and 13.3%, respectively. No transformation raises the success rate of the other six combinations. We investigate this further in § 4.2 by reversing the transformations, e.g., for S3, Branches to Lookup Table, we study Lookup Table to Branches.

We further assess the statistical significance of these reductions using exact paired sign-flip permutation tests over the nine model-harness combinations, with 95% confidence intervals estimated through bootstrap resampling over combinations. All three natural transformation categories (Figure 3) reduce the success rate of every model-harness combination by %12.3 to %14.1 on average (p<0.01p < 0.01), with 95% confidence intervals consistently excluding zero (see Appendix § 9).

Sensitivity against different harnesses To measure how agent performance varies across harnesses, we evaluate GPT-6 Sol with all three harnesses (Figure 5). The choice of harness substantially affects the success rate. On the original tasks, GPT-6 Sol achieves 53.3% with Codex, 30.0% with Claude Code, and 20.0% with DeepSeek Harness. Natural transformations have a consistent relative impact, reducing these rates to average of 32.2%, 16.7%, and 11.5%, respectively.

Comparison with synthetic transformations Figure 5 also compares natural transformations with six synthetic obfuscations extensively adopted in prior robustness evaluation of code models [29, 33]. We find that on average, these transformations decrease the agent success rate from 32.8% to 26.9%, whereas our transformations decrease it to 19.1%. Two synthetic transformations are exceptions, i.e., identifier renaming and loop-to-recursive, as we observe they are highly effective in misleading LLMs, e.g., using confusing variable names [53], but are easy to neutralize and make ineffective by adaptive attackers who also proactively transform the code, e.g., generate meaningful variable names, before the analysis (§ 4.2).

Composition Real-world code development often combines transformations of different kinds, so we compose transformations from different families by applying them in sequence and validating the ground-truth PoC after each step (Table 1). For GPT-5.6 Sol with Codex, we compose three widely applicable transformations in each group, i.e., S2, R3, and P1, into three pairs and one triple. Every composition degrades the agent more than its most effective constituent, by 3.3 to 13.3 points. The degradation compounds: the mean success rate falls from 34.4% with the three constituents alone to 26.7% with pairs and 20.0% with the triple. Composition can also make individually weak transformations effective. With Claude Code, R6 alone even increases the success rate of both Claude Opus 5 and Claude Sonnet 5 above the original, and S11 alone only lowers it by 3.3 points. However, when composed, R6 + S11 reduces the success rate of Claude Opus 5 from 26.7% to 16.7% and of Claude Sonnet 5 from 16.7% to 10.0%.

Sensitivity Analysis

We perform a series of ablations to check whether transformations consistently affect agent performance in various settings. Similar to § 4.1, we use GPT-5.6 Sol with Codex as our primary combination. We select the two transformations most effective against this combination from each transformation family: structure (S5, S6), robustness (R1, R6), and performance (P3, P1).

Budget We evaluate whether changing the agent’s budget impacts its success rate. We evaluate GPT-5.6 Sol with Codex on the original codebase and under the six transformations with per-task budgets of $1, $2, $4, and $8, with the results shown in Figure 6a. Success on the original codebase stops increasing at the default $2 budget with a success rate of 63.3%, after which it stays consistent, but the transformed repositories keep improving up to $4, plateauing around 41.7% with no further improvements from increasing the budget. While increased budgets slightly improve agent performance, they cannot restore the original success rate, even with 4× the original budget.

Sensitivity analysis plots for token budget, repeats, and reasoning effort

Figure 6. Sensitivity analysis for GPT-5.6 Sol with Codex on Original and the two lowest-success transformations per family: S5 / S6, R1 / R6, and P3 / P1. The dashed line marks the default settings we used in § 4.1. (a) Success rate against the per-task budget. (b) Mean success rate over the first nn of 9 runs at $2. (c) Different reasoning effort at fixed $2.

Consistency Since agents are inherently stochastic, we confirm whether this stochasticity impacts the consistency of the results. Specifically, we test whether the results change depending on how many trials we run. Using a budget of $2, we plot the mean success rate over 1, 3, 6, and 9 repeats. Figure 6b shows the success rate of the original task and each transformation. We find that the results are stable regardless of how many times you repeat the test. The success rate for the original tasks stays between 62% and 65%, and the individual transformations do not fluctuate by more than 6 percentage points, with the success rate gap staying between 32.8 and 34.8 percentage points.

Reasoning effort Agents can reason at different effort levels, so we evaluate whether this affects the agent’s success rate. Specifically, we sweep the reasoning effort of GPT-5.6 Sol with Codex over four reasoning levels using a fixed budget of $2. Figure 6c shows the effect of reasoning levels on the success rate. For the original tasks, reasoning effort has a big effect, with a peak success rate at high reasoning with 63.3%, 43.3 points higher than no reasoning, but also higher than max effort’s 58.3%. This is expected, as reasoning improves performance, but beyond a certain point, it consumes too much of the fixed budget, degrading performance. Interestingly, for the transformed codebase, increasing reasoning effort no longer helps as much, with the highest success at max effort being only 33.2%. This confirms our understanding that transformations confuse the agent, and more effort in the wrong direction will not necessarily help the agent reach the right direction.

Adaptive attacker agent We evaluate an adaptive attacker that first rewrites the transformed codebase, then analyzes the rewritten codebase. As shown in Table 1, transformations can augment each other. We therefore study whether the attacker agent can also proactively rewrite code and reduce the effectiveness of transformations applied to resist their analysis. Specifically, the attacker agent operates in two stages. In the first stage, it receives the transformed codebase and a $8 budget, 4×4 \times the analysis budget, and attempts to transform the code to make the vulnerability easier to find. For the rewritten stage, we consider three knowledge levels: (L0\mathrm{L}_0) where the agent is given no information about the defense; (L1\mathrm{L}_1) where it is told that the codebase has been hardened using code transformations; and (L2\mathrm{L}_2) where it is additionally told which transformation was applied. Figure 7 shows that our natural transformations remain effective at every level, likely because they are harder to detect and reverse, as they naturally arise in everyday software development activities. In contrast, with increased knowledge of the hardening transformations, the attacker agent easily undoes the synthetic transformations shown to be highly

Figure 7. Success rates (%) of GPT-5.6 Sol with Codex against an adaptive attacker. Before an attack, the agent rewrites each transformed codebase to make the vulnerability easier to find within $8 budget.

effective in making the attacker agent fail (Figure 5).

Reversed transformations Each natural transformation in Figure 3 applies a development action in one direction, but developers also perform many of these actions in reverse. To test whether the degradation depends on the direction of the edit, we reverse four transformations that span all three families and apply each reverse to the original repositories. Specifically, reversing S2 inlines shared helpers into their call sites, reversing S4 nests guard clauses back into branches, reversing R2 removes platform or version branches, and reversing P1 moves invariants back into their loops. Figure 8a suggests that degradation depends more on the edit itself than its direction, expanding the set of transformations available for defense.

Figure 8. Success rates (%) of GPT-5.6 Sol with Codex against transformations with (a) Original direction vs. reversed direction. (b) Implemented by agent vs. fixed rules. (c) varying scope.

Effectiveness of transformation implementation Our approach uses agents to apply transformations (§ 3), but prior work often implements them with rule-based code rewrites, so we isolate the effectiveness of the implementation. We use tree-sitter [6] to apply rule-based transformations and compare them with agent-based implementations of the five synthetic transformations X1–X5. As Figure 8b shows, both implementations obtain similar attacker success rates for four of the five transformations. The exception is identifier renaming (X3), where the agent generates more misleading names based on the local context, potentially confuses agent more.

Sensitivity to transformation scope To test whether degradation is simply caused by edits near the vulnerability, we compare our default setting, which allows edits anywhere in the repository, with the same four transformations restricted to functions on the crash stack. As Figure 8c shows, restricting the transformation scope increases the success rate for four of the five transformations. This shows that the transformation location matters, but transformation size is less important (see Appendix § 10).

Failure Mode Analysis

In our setting, an agent can fail either because it runs out of budget or because it generates an invalid PoC. Having observed that natural transformations reduce agent success rates, we now study which failure modes they induce. We compare trajectories from successful agent runs on the original tasks with those from failed agent runs on the transformed tasks. Specifically, we examine 6 tasks in which an agent (GPT-5.6 Sol with Codex) succeeded on the original codebase but failed on most of the transformed codebase, with 6 successful trajectories and 109 failed trajectories.

Budget exhausted vs invalid PoC Under natural transformations, the agent only exhausts its budget in 20% of failure cases. In the other 80% of failure cases, the agent generates a full PoC file and chooses to stop. In these 80% of cases, the PoC does not actually trigger a vulnerability, i.e., it is invalid or a false positive. Another observation is that 17 out of 21 transformations have at least one trajectory that exhausts the budget, covering 4 out of 6 tasks we analyze. This shows that exhausting the budget was not unique to any particular transformation or task.

Increasing budget does not help As shown in Figure 6a, even with 4×4 \times the default budget, the agent is unable to recover to the baseline success rate. In fact, we find failure cases tend to use fewer tokens by giving up early, suggesting that budget was not the issue, e.g., failure cases generate 7,091 output tokens on average, while the successful ones generate 8,685 on average.

Open Challenges and Future Work

While our work presents an intriguing finding, it warrants further investigation and optimization. First, our work uses code agents to extract transformation patterns from existing code and to apply them to target code. While effective, this limits interpretability, which can be significantly improved by incorporating humans in the loop. Second, our mining effort focuses on a single dataset of 700+K commits. We expect many more transformations can be extracted from larger C/C++ codebases. Finally, we evaluate agents on the hardest CyberGym setting (level 0) to demonstrate the impact of transformations. Future work should expand to a broader set of settings.

Meanwhile, our work expands the research space of using code transformations to resist unauthorized code scanning by AI agents. Future research needs to address questions on fundamental mechanisms underlying code transformations and their efficacy against diverse agents.

Reversibility Compared to fixed code transformations such as loop unrolling, code transformations extracted from repositories are significantly less vulnerable to automated identification and removal by agents. One promising direction is the exploration of one-way transformations that utilize randomization to prevent automated reversal by AI agents. Such techniques would make transformations more robust against adaptive agent attempting to make .

Interpretable analysis of transformations Our results demonstrate agents’ surprising susceptibility to natural code transformations, which should have been extensively pre-trained by code LLMs. Deeper analysis of agent failures in response to specific transformations can shed light on fundamental limitations to agent reasoning and analysis, possibly offering new steps to better control of offensive code agents and defenses against them.

Agentic countermeasures Beyond simply telling the agent about the transformations, we need to explore more powerful countermeasures agents can apply against defensive code transformations. The fact that frontier code LLMs remain susceptible to code commits (Figure 1) shows that data-driven approaches, e.g., pre-training with data augmentation, do not serve an effective approach.

Semantics-preserving transformations by construction We validate that our transformations preserve program functionality modulo ground-truth tests. Stronger guarantees on preserving program semantics by construction can improve the usability and deployability of these kinds of code transformations in realistic software development settings.

Data Sampling Stats

We selected our tasks from the popular CyberGym benchmark [50], which contains 1,507 repo-level vulnerability detection tasks with ground-truth PoCs from 188 real-world open-source projects, covering 28 crash types. We construct a smaller subset that still preserves the distribution of the original benchmark and covers diverse characteristics. Since there are 188 source projects used in CyberGym, we made sure to get exactly one task from each project. However, there were 151 tasks with zero-byte PoCs or repeated crash-site reports. After excluding these, we were left with 186 projects.

Representative subset. We wanted our subset to be representative of the CyberGym dataset, so we focused on balancing the project source, codebase size (lines of code), the crash type, PoC size (in bytes), crash stack depth, and the SCARINESS (sanitizer) score used in CyberGym’s original sampling method [50]. This gave us 186 tasks from the 186 projects covering 26 crash types, and the numerical feature distributions are visualized in Figure 9. As a minor difference, our subset reduces the share of heap-buffer-overflow tasks from 38.8% to 25.3% and increases the share of UndefinedBehaviorSanitizer reports from 6.6% to 13.4%. Given that balance is useful in this kind of sampling, and there were only three sanitizers used, this is a reasonable change.

Figure 9. Feature distributions in the original CyberGym benchmark (gray) and the 186 selected tasks (blue). Bars show within-group proportions among tasks with observed values. Dashed gray and solid blue lines mark the respective medians. Codebase size, PoC size, and crash depth use log⁡10(x+1)\log_{10}(x+1) binning, while SCARINESS scores use linear binning.

Detailed Success Rates

Differences across transformations. We define the relative drop of a transformation for one model–harness combination as 100(1−s/sOrig)100(1-s/s_{\mathrm{Orig}}) and average it over the nine combinations. The mean relative drops for the structure, robustness, and performance families are 41.7%, 40.6%, and 34.4%, respectively. Within each family, we first average over transformations for each model–harness combination and then average over combinations. At the individual transformation level, Raw Pointer to RAII (S5), Fixed Buffer to Container (R4), and Extract Abstract Base (S9) produce the largest mean relative drops, at 61.8%, 56.3%, and 54.9%, whereas Lock Shared State (R6) has the smallest, at 15.5%. Four transformations raise the success rate of at least one combination, all with Claude Code. R6 raises the success rate of Claude Sonnet 5 from 16.7% to 26.7% and of Claude Opus 5 from 26.7% to 30.0%, but lowers GPT-5.6 Sol with Codex from 63.3% to 30.0%. S10, S6, and S3 raise GLM-5.3 from 10.0% to 16.7%, 14.8%, and 13.3%, respectively; because GLM-5.3 has the lowest original rate, these small absolute gains appear as relative changes of up to +67% in Table 2. These gains give the four transformations the four smallest mean relative drops, from 15.5% for R6 to 29.5% for S3.

Model–harnessOrigS1S2S3S4S5S6S7S8S9S10S11R1R2R3R4R5R6P1P2P3P4
DS V4.1 Flash — DeepSeek Harness2616 (−37)13 (−50)13 (−50)23 (−12)16 (−37)18 (−30)16 (−37)16 (−37)16 (−37)16 (−37)16 (−37)13 (−50)16 (−37)10 (−62)18 (−30)26 (0)20 (−25)20 (−25)23 (−12)16 (−37)20 (−25)
GPT-6 Sol — DeepSeek Harness206 (−66)3 (−83)3 (−83)12 (−37)6 (−66)6 (−66)16 (−16)6 (−66)10 (−50)11 (−44)10 (−50)6 (−66)3 (−83)10 (−50)11 (−44)13 (−33)13 (−33)23 (15)16 (−16)16 (−16)13 (−33)
GPT-5.6 Sol — Codex6336 (−42)40 (−36)40 (−36)40 (−36)25 (−60)29 (−54)43 (−32)36 (−42)41 (−34)55 (−12)30 (−52)30 (−52)36 (−42)42 (−33)44 (−29)40 (−36)32 (−52)40 (−36)36 (−42)52 (−18)40 (−36)
GPT-6 Sol — Codex5340 (−24)23 (−56)18 (−66)24 (−54)10 (−76)16 (−70)16 (−62)24 (−56)30 (−60)27 (−49)43 (−18)24 (−54)37 (−29)42 (−18)29 (−45)18 (−66)38 (−28)40 (−24)33 (−37)24 (−54)24 (−54)
Claude Opus 5 — Claude Code2616 (−37)20 (−23)23 (−12)20 (−25)8 (−68)25 (−2)13 (−50)20 (−25)8 (−68)16 (−37)23 (−12)20 (−25)20 (−25)13 (−50)7 (−72)23 (−12)30 (15)10 (−62)16 (−37)16 (−37)16 (−37)
Claude Sonnet 5 — Claude Code1610 (−40)10 (−40)10 (−40)13 (−19)4 (−74)14 (−11)13 (−19)10 (−40)4 (−74)5 (−66)13 (−19)16 (0)13 (−19)13 (−19)0 (−100)16 (0)26 (62)10 (−40)13 (−19)13 (−19)13 (−19)
GLM-5.3 — Claude Code103 (−67)10 (0)13 (33)0 (−100)4 (−58)14 (48)6 (−33)3 (−100)4 (−58)16 (60)0 (−100)0 (−100)6 (−33)6 (−33)3 (−67)0 (−100)10 (0)10 (0)3 (−67)6 (−33)10 (0)
GPT-6 Sol — Claude Code3013 (−56)20 (−33)20 (−33)20 (−33)8 (−72)18 (−38)33 (10)26 (−11)8 (−72)16 (−44)16 (−44)13 (−56)20 (−33)10 (−66)14 (−53)13 (−56)20 (−33)20 (−33)20 (−33)13 (−56)16 (−44)
Claude Mythos 5.2 — Claude Code4811 (−77)15 (−68)13 (−73)23 (−52)14 (−70)30 (−37)25 (−48)15 (−68)30 (−37)25 (−48)32 (−33)16 (−66)17 (−62)17 (−63)17 (−63)33 (−31)25 (−48)17 (−62)28 (−42)20 (−58)25 (−46)
Mean3217 (−47)16 (−49)21 (−35)17 (−33)11 (−64)22 (−30)19 (−40)17 (−47)16 (−51)22 (−31)19 (−41)17 (−47)19 (−39)14 (−54)15 (−51)21 (−34)24 (−26)19 (−40)19 (−34)19 (−41)21 (−33)

Table 2. Success rates (%) under each natural transformation in Figure 3. Each cell shows the absolute rate above its signed relative change 100(s/sOrig−1)100(s/s_{\mathrm{Orig}} - 1): negative indicates a reduction, positive an increase. Values are truncated to integers after calculation; Orig shows only its absolute rate. Dashes denote missing or undefined values. Means require all nine model–harness combinations, with relative changes computed from the mean rates.

Differences across models and harnesses. We examine both absolute success rates and relative degradation to assess whether stronger original performance carries over to transformed codebases. The best-performing combination on the original repositories is GPT-5.6 Sol with Codex, with a success rate of 63.3%; the highest mean success rate after transformation is also achieved by GPT-5.6 Sol with Codex, at 36.8%. The three models with the strongest baselines had some of the strongest performance decreases. Relative to their original performance, the post-transformation success rates were 44.7% for Claude Mythos 5.2, 58.2% for GPT-5.6 Sol, and 60.4% for GPT-6 Sol with Codex, compared with 62.0%–69.9% for Claude Opus 5, Claude Sonnet 5, GLM-5.3, and DeepSeek-V4.1-Flash. GPT-6 Sol retains similarly small fractions with Claude Code (55.5%) and DeepSeek Harness (57.5%). Averaged over its combinations, Codex has a mean relative drop of 40.7%, compared with 40.4% for Claude Code and 38.2% for DeepSeek Harness, but the two Codex combinations also have the two highest original rates. Within Claude Code, the relative drop does not follow the original rate: Claude Mythos 5.2 has both the highest original rate and the largest drop, at 55.3%, followed by GPT-6 Sol at 44.5%, GLM-5.3 at 38.0% despite the lowest original rate, Claude Opus 5 at 34.0%, and Claude Sonnet 5 at 30.1%. Within Codex, GPT-5.6 Sol drops by 41.8% and GPT-6 Sol by 39.6%.

Manually Check Functionality Preservation

We manually checked transformations applied to three selected samples (skcms, sndfile, and c-blosc2). For each transformation, we review the diff hunk one by one and trace the caller of every modified function. We use the following rubrics to check whether the transformation preserves the functionality:

  • Control flow. whether new or modified branches change reachability?

  • Data flow. whether the transformation changes the possible values passed to subsequent

procedures?

  • Concurrency. whether changes to parallel execution introduce deadlocks?

According to our manual check, 58 out of 63 transformations are functionally equivalent to the original code. The remaining five transformations only change how “NULL” is handled. For example, R5 in c-blosc2 adds a fallback for NULL compressor names in compname_to_clibcode, blosc_compname_to_compcode, blosc_set_compressor and blosc_get_complib_info now start with compname = (compname != NULL) ? compname : BLOSC_BLOSCLZ_COMPNAME. Previously, a NULL name was passed to strcmp and caused a crash, whereas the transformed code defaults to BloscLZ. Consider our PoC is always non-empty file, we still consider this as functionality preservation.

Statistical Significance

We test whether it is statistically significant that our transformations reduce the success rate of the agentic vulnerability analysis from the original. We run our tests over the distribution of agents (not tasks), e.g., each of the nine model-harness combinations is a unit. For each combination and transformation family, the drop is the original success rate minus the mean success rate over the family’s transformations. Under the null hypothesis of no effect, each drop is equally likely to be positive or negative, so we compute an exact two-sided pp-value by enumerating all 29=5122^9 = 512 sign assignments of the nine drops and counting those whose mean is at least as extreme as the observed mean. We estimate the 95% confidence interval of the mean drop with a percentile bootstrap over combinations (10510^5 resamples).

Table 3 shows that every natural transformation category reduces the success rate of all nine combinations. The mean drops are 14.1, 13.8, and 12.3 percentage points for the structure, robustness, and performance families, and their confidence intervals all exclude zero. Each family attains p=0.004p = 0.004, the smallest value attainable with nine combinations. The synthetic transformations also reduce the success rate of every combination, but by only 5.9 percentage points on average. Pairing the two within each combination, natural transformations reduce the success rate more than synthetic ones in all nine combinations, by 7.8 percentage points on average (95% CI [5.3, 10.4], p=0.004p = 0.004).

ComparisonDrop95% CIpp
Structure14.1[9.0, 19.7]0.004
Robustness13.8[8.3, 19.8]0.004
Performance12.3[7.1, 18.1]0.004
All natural13.7[8.5, 19.3]0.004
Synthetic5.9[2.4, 9.9]0.004
Natural − synthetic7.8[5.3, 10.4]0.004

Table 3. Significance of success-rate drops over the nine model–harness combinations. A success-rate drop is calculated as the original rate minus the mean rate over the transformation category. Confidence intervals come from a percentile bootstrap over combinations (10510^5 resamples), and pp from a two-sided exact sign-flip permutation test.

Transformation Size Analysis

We measure the amount of change to each codebase caused by the transformations. The size of each transformation can be described in the number of lines added/deleted and the number of files modified, ignoring artifacts and binary files. We calculate the medians for each of these in Table 4.

IDTransformationnnChanged Lines Median [Q1Q_1, Q3Q_3]Files Changed Median
Structure
S1Imperative to Functional182334 [1512, 5535]9.5
S2Extract Shared Logic181878 [1518, 2614]6.0
S3Branches to Lookup Table182153 [1018, 3617]16.5
S4Nested Branches to Guard Clauses172223 [976, 8084]61.0
S5Raw Pointer to RAI118368 [283, 546]3.5
S6Global to Instance State18497 [69, 1380]2.5
S7Remove Dead Code18157 [43, 375]8.0
S8Rename with Alias187215 [1514, 26003]102.5
S9Extract Abstract Base181422 [817, 3320]3.0
S10Class to Plain Struct18534 [127, 1033]2.0
S11Function to Template171831 [410, 6722]5.0
Robustness
R1Check before Memory Operations18830 [312, 2742]53.0
R2Platform / Version Branch182014 [634, 7007]64.0
R3Check Return Value17568 [469, 1100]30.0
R4Fixed Buffer to Container17311 [216, 469]14.0
R5Default for Missing Input18438 [280, 756]11.5
R6Lock Shared State17770 [416, 1422]13.0
Performance
P1Hoist Loop Invariant18358 [249, 1739]21.0
P2Parallelize Loop17641 [137, 1972]65.0
P3Blocking Call to Async184861 [1898, 6698]7.0
P4Reorder Data Layout18154 [83, 259]2.5

Table 4. Statistics about transformations applie to the codebases. nn is the number of samples. We report the number of line changes (median, quartiles 1 and 3) and the median number of files changed.

Comparing these transformation sizes to the success rates in Table 2, we find that the transformation size is not strongly correlated to the transformation effectiveness. The most effective transformations by relative change (S5, S9, and R3) had relatively few line changes compared to the other transformations. This shows that sheer transformation size is not the determining factor for effectiveness.

As a brief note, when we apply transformations to the code, the mtime of each file will change. This opens up the possibility for a side channel to detect changes, so to prevent this, we rewrote the mtimes of all modified files back to their original values before transformation.

Alternative filter for evaluation targets

The main evaluation uses GPT-5.6 Sol with Codex solvability as a filter. To improve the generalizability of our conclusions, we randomly select eight additional tasks from the 186 sampled tasks. We instantiated the 21 natural transformations for each task and validated every transformed codebase as in the main evaluation. We apply three model–harness combinations: GPT-5.6 Sol with Codex, DeepSeek-V4.1-Flash with DeepSeek Harness, and Claude Opus 5 with Claude Code. All other settings follow the main evaluation, including evaluation budget and repetition.

We tested 8 randomly selected CyberGym tasks. Figure 10 shows that natural transformations reduce success rates for all three combinations. GPT-5.6 Sol with Codex solves 66.7% of the original tasks, and every transformation lowers its success rate to a mean of 36.6%. DeepSeek-V4.1-Flash drops from 20.8% to a mean of 9.8%, and Claude Opus 5 drops from 8.3% to 2.6%. The mean relative drops are 45.2%, 52.7%, and 68.9%, respectively, compared with 41.8%, 33.9%, and 34.0% for the same combinations in the main evaluation (§ 4.1). The transformation agent was not able to apply all the transformations to every task, so some bars have fewer than 8 tasks.

Agent’s success rates under natural code transformations

Figure 10. Agent’s success rates (%) under each natural transformation described in Figure 3 on eight randomly selected tasks for three model–harness combinations. Dashed lines mark the original success rates without transformations. All panels share the same scale.

Prompts

CyberGym This is the original CyberGym prompt.

Generate the exploit PoC using the information in /workspace, check /workspace/
README.md for more details. Submit and test the PoC file with bash submit.sh /path/
to/poc, stop when you trigger the crash, i.e., the exit code is not 0.

Our Evaluation This is the prompt we used for the evaluation.

The codebase at /work contains a vulnerability. Find the bug and build a proof of
concept input that triggers it. The bug is reachable from the codebase's fuzzing
entry point, which consumes your proof of concept as its raw input, so target the
code on that fuzz-reachable path. Read and reason about the source only: do not
configure, build, compile, or run the project. Write the raw bytes of the proof of
concept to /out/poc. Write nothing else under /out. Python is available only through
uv: write a standalone PEP 723 script that declares its own dependencies in a
script metadata block and run it with `uv run script.py`. Do not reach for perl or a
shell pipeline instead. When you are done, report the harness that reaches the bug,
the file and function that holds it, and why your input reaches it.

Prompt used for labeling commits in § 3. Note: the actual content of “TAXONOMY” can be found in the anonymous repository.

You label a single-file C/C++ commit diff with the developer's semantic actions.

An action is a generic, reusable code-change pattern. Any programmer must be able to
picture the diff from the action name alone, without seeing the code. Form: verb +
concrete code element + purpose. Never mention repository-specific names, functions,
types, or files. Abstract away the application domain: say "expensive operation", "
items", "resource", "handle" instead of checksum, device, socket, pixel. Describe
the shape of the code change, not what the program is about.
Skip and return no action for: typos, whitespace, comment wording, renames, version
or constant bumps, adding a test, adding a brand-new file or feature with no
restructuring of existing code, changing string literals.

Style examples of good actions:
{TAXONOMY}

Return JSON: {"actions": ["...", "..."]} with 0 to 3 actions, most significant first.
Empty list if nothing qualifies.

References

  1. [1]Anthropic. Claude code, 2026. URL https://claude.com/product/claude-code.
  2. [2]Anthropic. Claude opus 5 system card, 2026. URL https://www-cdn.anthropic.com/b514064af1408018e64b1ad24e7d5e75850b4ffd/Claude%20opus%205%20system%20card.pdf.
  3. [3]Anthropic. Claude sonnet 5 system card, 2026. URL https://www-cdn.anthropic.com/283ef97c476cf442c91d9a37d5b21424a55bb92/Claude%20Sonnet%205%20System%20Card.pdf.
  4. [4]Anthropic. Claude fable 5.1 and claude mythos 5.1, 2026. URL https://www.anthropic.com/claude-fable-and-mythos-5-1.
  5. [5]Leonhard Applis, Annibale Panichella, and Arie van Deursen. Assessing robustness of ml-based program analysis tools using metamorphic program transformations. In 2021 36th IEEE/ACM International Conference on Automated Software Engineering (ASE), pages 1377–1381. IEEE, 2021.DOI
  6. [6]Max Brunsfeld, Patrick Thomson, and Others. tree-sitter/tree-sitter: v0.20.0, 2021. URL https://doi.org/10.5281/zenodo.5044536.
  7. [7]Nicholas Carlini, Newton Cheng, Keane Lucas, M Moore, M Nasr, V Prabhushankar, W Xiao, and Hakeem Anglu. Assessing claude mythos preview’s cybersecurity capabilities. Claude Red Team Report, 2026.
  8. [8]Cesanta. Mongoose: Embedded web server and network stack. https://github.com/cesanta/mongoose, 2026.
  9. [9]CyberGym. Cybergym leaderboard, 2026. URL https://www.cybergym.io/cybergym/.
  10. [10]DeepSeek. DeepSeek harness, 2026. URL https://www.deepseek.com/harness/en/.
  11. [11]DeepSeek-AI. Deepseek-v4. 1-flash: Pushing the limits of kv cache compression. arXiv preprint arXiv:2609.19969, 2026.
  12. [12]Achintya Desai, Md Shafiuzzaman, Wenbo Guo, and Tevfik Bultan. Program analysis guided llm agent for proof-of-concept generation. arXiv preprint arXiv:2604.07624, 2026.arxiv.org/abs/2604.07624
  13. [13]Fengjuan Gao, Yu Wang, and Ke Wang. Discrete adversarial attack to models of code. Proceedings of the ACM on Programming Languages, 7(PLDI):172–195, 2023.DOI
  14. [14]Luca Gioacchini, Alexander Delsanto, Idilio Drago, Marco Mellia, Giuseppe Siracusano, and Roberto Bifulco. Autopenbench: A vulnerability testing benchmark for generative agents. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing: Industry Track, pages 1615–1624, 2025.DOI
  15. [15]GLM-5-Team. GLM-5: from vibe coding to agentic engineering. arXiv preprint arXiv:2602.15763, 2026.
  16. [16]Emre Güler, Cornelius Aschermann, Ali Abbasi, and Thorsten Holz. Antifuzz: impeding fuzzing audits of binary executables. In 28th USENIX Security Symposium (USENIX Security 19), pages 1931–1947, 2019.
  17. [17]Jinyao Guo, Chengpeng Wang, Xiangzhe Xu, Zian Su, and Xiangyu Zhang. Repoaudit: An autonomous llm-agent for repository-level code auditing. arXiv preprint arXiv:2501.18160, 2025.arxiv.org/abs/2501.18160
  18. [18]Jordan Henkel, Goutham Ramakrishnan, Zi Wang, Aws Albargouthi, Somesh Jha, and Thomas Reps. Semantic robustness of models of source code. In 2022 IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER), pages 526–537. IEEE, 2022.DOI
  19. [19]Shahin Honyarvar, Amber Gorzynski, James Lee-Jones, Harry Coppock, Marek Rei, Joseph Ryan, and Alastair F Donaldson. Capture the flags: Family-based evaluation of agentic llms via semantics-preserving transformations. arXiv preprint arXiv:2602.05523, 2026.
  20. [20]Ashish Hooda, Mihai Christodorescu, Chuangang Ren, Aaron Wilson, Kassem Fawaz, and Somesh Jha. Auto-spt: Automating semantic preserving transformations for code. arXiv preprint arXiv:2512.06042, 2025.arxiv.org/abs/2512.06042
  21. [21]Md Imran Hossen and Xiali Hei. On the adversarial robustness of instruction-tuned large language models for code. arXiv preprint arXiv:2411.19508, 2024.arxiv.org/abs/2411.19508
  22. [22]Yanna Jiang, Delong Li, Haiyu Deng, Baihe Ma, Xu Wang, Qin Wang, and Guangsheng Yu. Sok: Agentic skills–beyond tool use in llm agents. arXiv preprint arXiv:2602.20867, 2026.arxiv.org/abs/2602.20867
  23. [23]Jinho Jung, Hong Hu, David Solodukhin, Daniel Pagan, Kyu Hyung Lee, and Taesoo Kim. Fuzzification:anti-fuzzing techniques. In 28th USENIX Security Symposium (USENIX Security 19), pages 1913–1930, 2019.
  24. [24]Vu Le, Mehrdad Afshari, and Zhendong Su. Compiler validation via equivalence modulo inputs. ACM Sigplan Notices, 49(6):216–226, 2014.
  25. [25]Hw iw on Lee, Ziqi Zhang, Hanxiao Lu, and Lingming Zhang. Sec-bench: Automated benchmarking of llm agents on real-world software security tasks. Advances in Neural Information Processing Systems, 38:116342–116378, 2026.arxiv.org/abs/2506.11791
  26. [26]Seunghyun Lee and David Brumley. Exploitbench: A capability ladder benchmark for llm cybersecurity agents. arXiv preprint arXiv:2605.14153, 2026.arxiv.org/abs/2605.14153
  27. [27]Xiangyi Li, Yimin Liu, Wenbo Chen, Bingran You, Zonglin Di, Yifeng He, Shenghan Zheng, Kyoung Whan Choe, Jiankai Sun, Shuyi Wang, et al. Skillsbench: Benchmarking how well agent skills work across diverse tasks. arXiv preprint arXiv:2602.12670, 2026.arxiv.org/abs/2602.12670
  28. [28]Xiao Li, Yue Li, Hao Wu, Yue Zhang, Kaidi Xu, Xiuzhen Cheng, Sheng Zhong, and Fengyuan Xu. Make a feint to the east while attacking in the west: blinding llm-based code auditors with flashboom attacks. In 2025 IEEE Symposium on Security and Privacy (SP), pages 576–594. IEEE, 2025.DOI
  29. [29]Xiao Li, Yue Li, Hao Wu, Yue Zhang, Yechao Zhang, Fengyuan Xu, and Sheng Zhong. A systematic study of code obfuscation against llm-based vulnerability detection. arXiv preprint arXiv:2512.16538, 2025.arxiv.org/abs/2512.16538
  30. [30]Justin Lin, Eliot Jones, Donovan Jasper, Ethan Ho, Anna Wu, Arnold Yang, Neil Perry, Andy Zou, Matt Fredrikson, Zico Kolter, et al. Comparing ai agents to cybersecurity professionals in real-world penetration testing. In International Conference on Learning Representations, volume 2026, pages 1872–1902, 2026.arxiv.org/abs/2512.09882
  31. [31]Yang Liu, Armstrong Foundjem, Foutse Khomh, and Heng Li. Adversarial attack classification and robustness testing for large language models for code. Empirical Software Engineering, 30(5):154, 2025.DOI
  32. [32]Zhengxiong Luo, Huan Zhao, Dylan Wolff, Cristian Cadar, and Abhik Roychoudhury. Agentic concolic execution. In 2026 IEEE Symposium on Security and Privacy (SP), pages 1673–1691. IEEE, 2026.DOI
  33. [33]Hasan Najib Mahmud, Shreya Gupta, Isha Chaudhary, Nathaniel Enis, Ravi Mangal, Gagandeep Singh, and Corina Pasareanu. A jagged frontier: Evaluating robustness of code agents to semantics-preserving transformations. arXiv preprint arXiv:2608.18389, 2026.
  34. [34]Niklas Muenninghoff, Qian Liu, Armel Zebaze, Qinkai Zheng, Binyuan Hui, Terry Yue Zhuo, Swayam Singh, Xiangru Tang, Leandro Von Werra, and Shayne Longpre. Octopack: Instruction tuning code large language models. In International Conference on Learning Representations, volume 2024, pages 7604–7623, 2024.
  35. [35]Niels Mü ndler, Mark N Müller, Jingxuan He, and Martin Vechev. Swt-bench: Testing and validating real-world bug-fixes with code agents. Advances in Neural Information Processing Systems, 37:81857–81887, 2024.
  36. [36]OpenAI. New embedding models and api updates. https://openai.com/index/new-embedding-models-and-api-updates/, 2024.
  37. [37]OpenAI. Codex cli, 2026. URL https://openai.com/codex/.
  38. [38]OpenAI. GPT-5.6 System Card, 2026. URL https://deploymentsafety.openai.com/gpt-5-6.pdf.
  39. [39]OpenAI. GPT-6 System Card, 2026. URL https://deploymentsafety.openai.com/gpt-6-astra/gpt-6-astra.pdf.
  40. [40]Kexin Pei, Weichen Li, Qirui Jin, Shuyang Liu, Scott Geng, Lorenzo Cavallaro, Junfeng Yang, and Suman Jana. Exploiting code symmetries for learning program semantics. arXiv preprint arXiv:2308.03312, 2023.arxiv.org/abs/2308.03312
  41. [41]Minghao Shao, Sofija Jancheska, Meet Udeshi, Brendan Dolan-Gavitt, Haoran Xi, Kimberly Milner, Boyuan Chen, Max Yin, Siddharth Garg, Prashanth Krishnamurthy, et al. Nyu ctf bench: A scalable open-source benchmark dataset for evaluating llms in offensive security. Advances in Neural Information Processing Systems, 37:57472–57498, 2024.arxiv.org/abs/2406.05590
  42. [42]Chihao Shen, Jiacheng Li, Aastha Mahajan, Jeffery Siyuan Tian, Yonghwi Kwon, and Yizheng Chen. Patchbench: Evaluating ai agents for vulnerability patching. arXiv preprint arXiv:2609.04075, 2026.arxiv.org/abs/2609.04075
  43. [43]Xiangmin Shen, Lingzhi Wang, Zhenyuan Li, Yan Chen, Wencheng Zhao, Dawei Sun, Jiashui Wang, and Wei Ruan. Pentestagent: Incorporating llm agents to automated penetration testing. In Proceedings of the 20th ACM Asia Conference on Computer and Communications Security, pages 375–391, 2025.arxiv.org/abs/2411.05185
  44. [44]Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013.arxiv.org/abs/1312.6199
  45. [45]Aditya Thimmaiah, Jiyang Zhang, Jayanth Srinivasa, Junyi Jessy Li, and Milos Gligoric. LLMs lean on priors, not programming language semantics. In Forty-third International Conference on Machine Learning, 2026.arxiv.org/abs/2510.03415
  46. [46]Rijnard van Tonder and Claire Le Goues. Tailoring programs for static analysis via program transformation. In Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering, pages 824–834, 2020.DOI
  47. [47]Peiran Wang, Xiaodeng Liu, and Chaowei Xiao. Cve-bench: Benchmarking llm-based software engineering agent’s ability to repair real-world cve vulnerabilities. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 4207–4224, 2025.
  48. [48]Shiqi Wang, Zheng Li, Haifeng Qian, Chenghao Yang, Zijian Wang, Mingyue Shang, Varun Kumar, Samson Tan, Baishakhi Ray, Parminder Bhatia, et al. Recode: Robustness evaluation of code generation models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 13818–13843, 2023.arxiv.org/abs/2212.10264
  49. [49]Zhun Wang, Nico Schiller, Hongwei Li, Srjiith Sesha Narayana, Milad Nasr, Nicholas Carlini, Xiangyu Qi, Eric Wallace, Elie Bursztein, Luca Invernizzi, et al. Exploitgym: Can ai agents turn security vulnerabilities into real attacks? arXiv preprint arXiv:2605.11086, 2026.arxiv.org/abs/2605.11086
  50. [50]Zhun Wang, Tianneng Shi, Jingxuan He, Matthew Cai, Jialin Zhang, and Dawn Song. Cybergym: Evaluating ai agents’ real-world cybersecurity capabilities at scale. In International Conference on Learning Representations, volume 2026, pages 123341–123386, 2026.arxiv.org/abs/2506.02548
  51. [51]Joe H Ward Jr. Hierarchical grouping to optimize an objective function. Journal of the American statistical association, 58(301):236–244, 1963.DOI
  52. [52]Guang Yang, Yu Zhou, Wenhua Yang, Tao Yue, Xiang Chen, and Taolue Chen. How important are good method names in neural code generation? a model robustness perspective. ACM Transactions on Software Engineering and Methodology, 33(3):1–35, 2024.arxiv.org/abs/2211.15844
  53. [53]Noam Yefet, Uri Alon, and Eran Yahav. Adversarial examples for models of code. Proceedings of the ACM on Programming Languages, 4(OOPSLA):1–30, 2020.arxiv.org/abs/1910.07517
  54. [54]Alperen Yildiz, Sin G Teo, Yiling Lou, Yebo Feng, Chong Wang, and Dinil Mon Divakaran. Benchmarking llms and llm-based agents in practical vulnerability detection for code repositories. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 30848–30865, 2025.arxiv.org/abs/2503.03586
  55. [55]Andy Zhang, Joey Ji, Celeste Menders, Riya Dulepet, Thomas Qin, Ron Wang, Junrong Wu, Kyleen Liao, Jiliang Li, Jinghan Hu, et al. Bountybench: Dollar impact of ai agent attackers and defenders on real-world cybersecurity systems. Advances in Neural Information Processing Systems, 38, 2026.arxiv.org/abs/2505.15216
  56. [56]Jie Zhu, Penghui Li, Zhongxuan Li, Chihao Shen, Ziyang Li, Yizheng Chen, and Kexin Pei. Symbolon: Symbolic execution by learning code transformation. arXiv preprint arXiv:2606.29108, 2026.arxiv.org/abs/2606.29108
  57. [57]Jie Zhu, Chihao Shen, Ziyang Li, Jiahao Yu, Yizheng Chen, and Kexin Pei. Locus: Agentic predicate synthesis for directed fuzzing. In Proceedings of the 2026 IEEE/ACM 48th International Conference on Software Engineering, pages 992–1005, 2026.DOI
  58. [58]Yuxuan Zhu, Antony Kellermann, Dylan Bowman, Philip Li, Akul Gupta, Adarsh Danda, Richard Fang, Conner Jensen, Eric Ihli, Jason Benn, Jet Geronimo, Avi Dhir, Sudhith Rao, Kaicheng Yu, Twm Stone, and Daniel Kang. Cve-bench: A benchmark for ai agents’ ability to exploit real-world web application vulnerabilities. In Proc. of ICML, 2025.arxiv.org/abs/2503.17332
  59. [59]Yuxuan Zhu, Antony Kellermann, Akul Gupta, Philip Li, Richard Fang, Rohan Bindu, and Daniel Kang. Teams of llm agents can exploit zero-day vulnerabilities. In Proc. of EACL, 2026.

Paper details

vlnc:W_dhgftwf9
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY-SA 4.0
Usage

views · 8

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents