Manuscript Offprint
arXiv:2610.39066DeepDiff: Neuro-Dynamic Regression-Freedom Checking for Security Patch Validation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
LABONI SARKER*, University of California, Santa Barbara, USA
SHUVENDU K LAHIRI, Microsoft Research, USA
Automatically validating AI-generated security patches remains a significant challenge. Eliminating a reported crash and passing existing test suites do not provide sufficient confidence that a patch correctly addresses the underlying vulnerability without introducing regressions.
We present DEEPDIFF, a technique for regression-freedom checking that differentially evaluates candidate patches against the original vulnerable program using non-crashing inputs that exercise the affected code paths. The expectation of regression-freedom is that a correct patch should eliminate the vulnerability triggering crash while preserving the intended behavior on non-crashing inputs. To support this evaluation, we introduce a dataset of correct and incorrect patch candidates for open-source memory-safety vulnerabilities from CyberGym. We explore different approaches for non-triggering test input generation to reach the patched code, a purely neural regression-freedom checker, and a hybrid approach that combines dynamic analysis with neural techniques. Our experimental results demonstrate the effectiveness of regression-freedom checking in validating security patches while outlining the challenges that remain.
ACM Reference Format:
Laboni Sarker and Shuvendu K Lahiri. 2026. DEEPDIFF: Neuro-Dynamic Regression-Freedom Checking for Security Patch Validation. 1, 1 (October 2026), 22 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn
Existing approaches for evaluating automatically generated security patches primarily focus on ensuring that the vulnerability is no longer triggerable in the patched program [28, 54, 63, 64]. Other approaches differentially compare generated patches against a golden patch to assess whether they are semantically equivalent [10, 45]. Although comparison with a golden patch provides a strong basis for establishing patch correctness, a golden patch is never available in real-world software patching scenarios. In the absence of a golden patch, it is therefore essential to evaluate whether the generated patch preserves the intended functionality of the program.
*Work was accomplished while the author was interning at Microsoft Research.
Authors' Contact Information: Laboni Sarker, University of California, Santa Barbara, Santa Barbara, California, USA, labonisarker@ucsb.edu; Shuvendu K Lahiri, Microsoft Research, Redmond, Washington, USA, Shuvendu.Lahiri@microsoft.com.
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.
© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM.
ACM XXXX-XXXX/2026/10-ART
https://doi.org/10.1145/nnnnnnn.nnnnnnn
Existing approaches typically rely on developer-written tests or the project's existing test suite for this purpose. However, these tests may not exercise the code affected by the patch and therefore may fail to expose functional divergence introduced by an incorrect patch. Consequently, a patch that builds successfully, passes the existing test suite, and prevents the vulnerability from being triggered may still be functionally incorrect. For example, a naive patch could eliminate the vulnerability by rejecting all inputs or by transforming inputs into a fixed non-vulnerable value, while also eliminating or altering the intended functionality [6, 7, 35, 48].
We address this gap with regression-freedom checking, a validation criterion that uses the original vulnerable program as a behavioral reference, rather than relying solely on the existing test suite. A candidate patch (Definition 3) is considered plausible (Definition 6) if it eliminates the vulnerability-triggering crash while preserving the behavior of the original program on non-triggering inputs that the vulnerable program handles without crashing (Definition 2). A behavioral change on such an input indicates functional divergence, regardless of whether the patch also eliminates the original vulnerability. Moreover, the input that exposes this divergence serves as a concrete witness that can be inspected by developers to understand the behavior introduced by the patch.
We present DEEPDIFF, a framework for regression-freedom checking that incorporates dynamic analysis, neural analysis, and a hybrid combination of the two (Section 4). Given the original vulnerable program, its triggering input, and a candidate patched program, these techniques analyze both programs to identify functional divergences in the patched program relative to the non-triggering behavior of the original vulnerable program. The dynamic analyzer executes both programs on non-triggering inputs and compares their resulting observable behaviors to identify concrete witnesses of behavioral divergence. This approach provides executable evidence of divergence but requires building and maintaining an execution harness. In contrast, a neural analyzer reasons about the patch and its surrounding code context to identify witnesses without executing the programs, or to determine whether an observed divergence represents an unintended regression or an intentional behavior change. Moreover, a neural analyzer can generate non-triggering inputs to reach the patched code. Thus, neural analysis can support regression-freedom checking by generating inputs while reducing the need for an execution harness, but it may also produce spurious evidence. DEEPDIFF combines the dynamic and neural components to leverage their complementary strengths.
We evaluate DEEPDIFF on a dataset of correct and incorrect patches for open-source vulnerabilities drawn from CyberGym [53, 54], comprising 630 candidate patches across 118 vulnerabilities from 40 projects. Of these, 385 candidates, including 134 developer-generated patches and 251 functionally divergent patches, form our regression-freedom evaluation corpus. Our results demonstrate that regression-freedom checking can identify functionally divergent patches that pass existing validation, while also highlighting an important remaining challenge: distinguishing unintended regressions from intentional behavior changes introduced by developers. Our results show that regression-freedom checking substantially improves detection of functionally divergent patches, increasing recall from 6% to 64%. Neuro-DeepDiff (Section 4.2.1) further achieves 79% recall by generating candidate witnesses of behavioral divergence.
Contributions: Our contributions in this paper are as follows:
(1) We introduce regression-freedom checking as a validation criterion for evaluating the functional correctness of security patches, using the original vulnerable program as the behavioral reference.
(2) We develop and investigate dynamic, neural, and hybrid approaches for regression-freedom checking.
(3) We construct a dataset of security patches, including developer-generated and functionally divergent patches, to support systematic evaluation of automated patch validation techniques.
(4) We empirically evaluate the proposed regression-freedom checking approaches on security patch validation tasks.
(5) We present case studies of developer-intended behavior changes on non-crashing inputs, highlighting the challenge of distinguishing intentional behavior changes from unintended functional regressions.
Organization. The remainder of this paper is organized as follows. Section 2 provides an overview of regression-freedom checking through a motivating example. Section 3 formalizes the concepts underlying regression-freedom checking. Section 4 presents the dynamic, neural, and hybrid instantiations of DEEPDIFF for regression-freedom checking. Section 5 describes our implementation. Section 6 presents our experimental evaluation and results. Section 7 discusses related work, and Section 8 concludes the paper with possible future direction.
2 Overview
A security patch modifies an existing codebase to fix a vulnerability, and it should prevent the triggering input (proof of concept, PoC) from triggering that vulnerability. Eliminating the vulnerability, however, does not establish that the patch preserves the intended functionality of the original program: existing approaches [54] assess functional correctness with developer-written tests, which may not reach the patched code or assert the behavior it affects. We illustrate this gap with an example from the CyberGym benchmark.
The example is opensc/arvo_45552, an out-of-bounds write in the new_file function (Listing 1). In the vulnerable implementation, map_str2int converts a name to a df_type value and returns zero on success; the value is subsequently used as an index into profile->df.
if (map_str2int(cur, name + 7, &df_type, pkcs15DfNames)) return NULL; file = init_file(SC_FILE_TYPE_WORKING_EF); profile->df[df_type] = file;
Listing 1. Relevant vulnerable code in new_file.
Although map_str2int may successfully parse a numeric value, the vulnerable code does not verify that df_type lies within the bounds of the profile->df array. A triggering input is therefore a name that parses successfully to a value outside the bounds of this array.
Developer Patch. The developer patch in Listing 2 adds the required upper-bound check:
if (map_str2int(cur, name + 7, &df_type, pkcs15DfNames)) || df_type >= SC_PKCS15_DF_TYPE_COUNT) return NULL;
Listing 2. Developer patch.
Incorrect candidate. An incorrect candidate patch in Listing 3 also prevents the crash on the triggering input, but introduces two defects:
if (!map_str2int(cur, name + 7, &df_type, pkcs15DfNames)) || df_type >= SC_PKCS15_DF_TYPE_COUNT - 1) return NULL;
Listing 3. Incorrect candidate patch.
Vol. 1, No. 1, Article. Publication date: October 2026.
Table 1. Behavior of the vulnerable program, the developer patch, and the incorrect candidate for opensc/arvo_45552.
| Input | Vulnerable | Developer patch | Incorrect candidate |
|---|---|---|---|
| Triggering inputValid in-bounds name | CrashFile created | RejectedFile created | RejectedRejected |
| Existing validation | - | Pass | Pass |
First, map_str2int returns zero when parsing succeeds, so negating its result makes the candidate return NULL for every successfully parsed name. This is also why the triggering input no longer crashes: it parses successfully and is rejected by the negated condition, before the bound on df_type is evaluated. Second, the comparison against SC_PKCS15_DF_TYPE_COUNT - 1 is off by one and excludes the final valid enumeration value.
Despite these defects, the incorrect candidate passes existing validation: it builds, passes the project's developer-written tests, and no longer crashes on the triggering input. Because every successfully parsed name is rejected, the out-of-bounds index is never reached, so the vulnerability is no longer triggerable, and no existing test asserts the behavior that the candidate changes. Existing validation therefore cannot distinguish the incorrect candidate from the developer patch.
The original vulnerable program, however, already distinguishes them. Consider a non-triggering input whose name parses successfully to an in-bounds df_type. The vulnerable program handles this input without crashing: it creates the file and stores it in profile->df[df_type]. The developer patch preserves this behavior, whereas the incorrect candidate returns NULL and the file is never created. The same holds for every valid name: the candidate removes the functionality instead of repairing it (Table 1). Each such input is a concrete witness of functional divergence, obtained without a golden reference patch and without any additional developer-written assertion. This is the observation behind regression-freedom checking that a patch should change the behavior of the vulnerable program on the triggering input, and preserve it on the non-triggering inputs that the vulnerable program already handles correctly.
Regression-freedom Checking. Regression-freedom checking turns this observation into a validation criterion by treating the original vulnerable program as the specification of functional behavior on every input it handles without crashing. A candidate patch must change the behavior of the vulnerable program on the triggering input, but preserve it on non-triggering inputs. Unlike differential analysis against a ground-truth golden patch [10, 45], the reference here is the vulnerable program itself, which is always available when a patch is being validated. Unlike the existing test suite, it requires no developer-written assertions or test oracles: any non-triggering input becomes a test whose expected behavior is given by the vulnerable program. Under this criterion, the developer patch in Listing 2 is plausible, while the candidate in Listing 3 is functionally divergent, even though existing validation accepts both. Thus, a divergence indicates that the patch requires further attention from the software developers as the patch is functionally divergent from the original behavior.
This example shows that comparing a candidate patch against the original vulnerable program on non-triggering inputs can distinguish a behavior-preserving repair from a functionally divergent patch that passes existing validation.
3 Regression-Freedom Checking for Patch Validation
In this section, we formalize regression-freedom checking. We first define a vulnerable program, its triggering and benign (non-triggering) inputs, and a candidate patch. We then define what it means for a candidate patch to be functionally divergent or plausible, based on whether it preserves the behavior of the vulnerable program on benign inputs.
DEFINITION 1. A vulnerable program is a program with a reported vulnerability. For a program and an input , denotes that executing on produces an observable crash or sanitizer violation.
DEFINITION 2. An input is a triggering input for if . An input is a benign (non-triggering) input for if . The set of benign inputs is .
This definition is relative to and to the crash oracle. An input means only that produced no observed crash or sanitizer violation on .
DEFINITION 3. A candidate patch for is a proposed source-level fix; applying to yields the patched program . We consider only candidates that eliminate the reported crash, i.e., , since any other candidate is already rejected by the crash oracle.
Let denote the observable behavior of executing a program on an input . and agree on , written , if , and diverge on , written , otherwise. We describe the observable behavior that we compare in Section 5.
DEFINITION 4. An input is a witness input for a candidate patch if and .
DEFINITION 5. A candidate patch is functionally divergent if there exists a witness input for .
A functionally divergent patch eliminates the reported crash while changing the behavior on an input that already handles without crashing. Such a divergence indicates that the patch requires further attention from the developers.
Establishing that no witness input exists would require checking all of . In practice, only a finite set of benign inputs can be checked.
DEFINITION 6. A candidate patch is plausible with respect to a finite set if no input in is a witness input for :
Regression-freedom checking takes , , and , and either returns a witness input or reports plausible with respect to the set it examined. The check is one-sided: a witness input is conclusive evidence of functional divergence, whereas plausibility holds only relative to .
In the example of Section 2, a valid in-bounds name is a benign input on which the vulnerable program creates the file and the incorrect candidate returns NULL; it is therefore a witness input, and the candidate is functionally divergent. The developer patch agrees with the vulnerable program on this input.
3.1 Intended Behavior Changes
Regression-freedom checking treats the vulnerable program as the specification of behavior on benign inputs. Developers, however, sometimes change the behavior on benign inputs on purpose, for example to reject inputs that processed without crashing. Such a patch has a witness input and is therefore functionally divergent by Definition 5, although the divergence is intended. We observed this for developer patches in the CyberGym dataset, and present two examples.
Listing 4 shows a use-after-free vulnerability in opensc/arvo_64898, and Listing 5 shows the corresponding developer patch. LOG_TEST_RET returns from the function only when rv is negative. In the vulnerable code, when rv is 0, the if block frees file, LOG_TEST_RET does not return, and the subsequent access to file->size is a use after free. When rv is negative, the block is skipped and execution continues without crashing.
if (!rv){ sc_file_free(file); LOG_TEST_RET(ctx, rv, "Get challenge error"); } len = file->size > sizeof(buffer) ? sizeof(buffer) : file->size;
Listing 4. opensc/arvo_64898: Vulnerable Code (Use after free when rv==0).
if (rv<0){ sc_file_free(file); LOG_TEST_RET(ctx, rv, "Get challenge error"); } len = file->size > sizeof(buffer) ? sizeof(buffer) : file->size;
Listing 5. opensc/arvo_64898: Patched Code (Changes behavior also for rv<0).
In the patched code, the if block is not entered when rv is 0, so file is not freed and the use after free is eliminated. When rv is negative, however, the patched code frees file and returns the error, whereas the vulnerable code continues. An input for which rv is negative is therefore a benign input on which the two programs diverge, i.e., a witness input, even though the crash occurs only when rv is 0. This is a developer-intended change of behavior on inputs that do not crash the vulnerable program.
Listing 6 and Listing 7 show a second example, from opensc/arvo_18798. The vulnerability occurs when iACLen equals len: the check iACLen > len does not leave the loop, and the subtraction len -= iACLen + 1 underflows, turning the unsigned len into a very large value. The developer patch fixes this by changing the check to iACLen >= len. It also adds the condition (size_t)iOffset < len to the loop, which further restricts iOffset and thereby changes the behavior on benign inputs as well, not only on the triggering input.
while (len > 1) { /* minimum length = 2 */ size_t iACLen = buf[iOffset] & 0x0F; if (iACLen > len) break; ... len -= iACLen + 1;
Listing 6. opensc/arvo_18798: Vulnerable Code (Integer Underflow).
while (len > 1 && (size_t)iOffset < len) { /* minimum length = 2 */ size_t iACLen = buf[iOffset] & 0x0F; if (iACLen >= len) break; ... len -= iACLen + 1;
Listing 7. opensc/arvo_18798: Patched Code (added restriction).
In both examples, the developer patch, which we treat as the golden patch, is flagged as functionally divergent because it changes the behavior of the vulnerable program on benign inputs. A functionally divergent verdict should therefore be interpreted as a signal for developer review. The accompanying witness input identifies the specific input on which the behavioral change occurs, allowing developers to inspect and determine whether the change is intentional. This design favors exposing potentially unintended functional changes for developer review rather than allowing them to remain undetected during automated patch validation.
4 Neuro-Dynamic Approaches for Regression-Freedom
Not all candidate patches (Definition 3) are plausible patches (Definition 6). Identifying a functionally divergent patch requires determining whether the patch has changed the functional behavior of the original program on non-triggering inputs. We propose Neuro-Dynamic approaches for identifying functionally divergent patches. These approaches include dynamic analysis, neural analysis, and a hybrid combination of the two. In the following sections, we discuss how dynamic and neural techniques, individually and in combination, can support patch validation.
4.1 Dynamic analysis based DeepDiff
In dynamic analysis-based regression-freedom checking, we execute both the vulnerable program (Definition 1) and the candidate patched program (Definition 3) on a set of benign inputs that exercise the updated or modified code in the patched program. We then identify witness inputs (Definition 4) that expose functional divergence and thereby identify functionally divergent patches (Definition 5). Algorithm 1 presents the dynamic analysis approach. For each input in , the approach executes both programs, records their instrumented write traces, and compares the normalized writes with respect to the original vulnerable program. Further details on the instrumentation and normalization are provided in Section 5.
Algorithm 1 Dynamic Regression-Freedom Checking
Require: Vulnerable program , candidate patched program and benign inputs
Ensure: A witness input,
1: for all do
2:
3:
4: if then
5: return
6: end if
7: end for
Since functional divergence is evaluated over a finite set of inputs , it is important that these inputs exercise the patched function or modified code. The benign input set can be generated using different techniques, which can then be used by Algorithm 1 for regression-freedom checking.
4.1.1 Benign input generation by mutating triggering input, . A naive approach to input generation is to mutate the triggering input , which reaches the vulnerable code and triggers the vulnerability. Another approach is to search for inputs adjacent to the triggering input , such as inputs at the boundary of the triggering condition that do not trigger the vulnerability. The intuition behind considering such boundary inputs [47] is that functional divergence may result from off-by-one errors or other boundary-condition changes introduced by the patch. Both approaches rely on the triggering input to generate a set of benign inputs that may exercise the updated code.
Table 2. Benign-input, generation strategies.
| Category | Strategy |
|---|---|
| Non-Neural | Mutation of |
| Neural | Prompting with vulnerability and program context |
| Neural | Prompting with a Neuro-DeepDiff candidate witness (Section 4.2.1) |
4.2 Neuro-Dynamic based DeepDiff
A neural component can be integrated into regression-freedom checking in several ways. In dynamic analysis, the original and patched programs are executed on benign inputs, and their execution traces are compared. Neural analysis can complement this process at different stages:
(1) In the purely neural approach to DEEPDIFF, the neural component orchestrates the regression-freedom analysis and generates candidate witnesses (Definition 7) of functional divergence along with corresponding reasoning. This approach can be useful when executing the complete dynamic analysis pipeline is expensive (Section 4.2.1).
(2) Neural analysis can assist in generating benign inputs for dynamic analysis, helping the dynamic approach exercise the modified code during patch validation (Section 4.2.2).
(3) As discussed in Section 3.1, a detected behavioral divergence may correspond to an intentional behavior change introduced by the developer. Neural analysis can assist in determining whether an observed divergence is likely to be intentional or unintended (Section 4.2.4).
4.2.1 Neural analysis based DeepDiff (Neuro-DeepDiff). Neuro-DeepDiff is inspired by symbolic differencing methods such as SYMDIFF [26] and UC-KLEE [44]. It checks regression freedom by comparing and on benign inputs through staged, source-grounded agentic analysis, without executing the programs. Read-only source navigation enables the agents to inspect the patch and surrounding code, with prompts requiring evidence rather than a free-form judgment of patch correctness. The analysis first establishes the relevant code context and input preconditions, then enumerates non-crashing paths through changed code, and finally compares behavior along these paths. We describe a structured path as an ordered sequence of tuples <file, line, function, branch, assume>, recording program locations, branch decisions, and assumptions. The conjunction of the assume predicates forms the path constraint that a candidate benign input must satisfy. Anecdotally, we observed that without requiring this structured input-and-path representation, the agent hallucinated purported regression-producing inputs and corresponding pairs of program paths much more often.
The comparison phase examines benign inputs along the original crash path, without triggering the vulnerability, as well as inputs along other non-crashing paths. Neuro-DeepDiff aims to produce regression evidences with:
-
A candidate witness (Definition 7): an input distinct from , intended to exhibit the regression.
-
A pair of program paths: the corresponding pre- and post-patch paths, with branch decisions and assumptions describing the proposed executions.
-
Divergence evidence: the location and externally observable behavior change, with an explanation of why the original behavior was correct and the change is a regression rather than a repair of an existing defect.
These outputs are neuro-generated hypotheses: the proposed inputs may not realize the reported paths, and the claimed divergence may not be reproducible in execution. We empirically evaluate the quality of these neural artifacts against labeled correct and incorrect patches in Section 6.
Deterministic rules derive verdicts from these findings. We repeat the analysis to gain confidence through the number of runs producing the candidate witnesses.
We formalize these outputs and their effect on the verdict as follows.
DEFINITION 7. A candidate witness for a candidate patched program is a triple , where is a constraint on inputs, is a pair of paths through and , and describes a difference in observable behavior. It claims that every input satisfying is benign, follows in the respective programs, and exhibits . A candidate witness is confirmed if an input derived from it is a witness input for (Definition 4), and refuted if an input derived from it is executed and is not a witness input for .
Here, corresponds to the path constraint of the candidate input, to the pair of pre- and post-patch paths, and to the divergence evidence.
Candidate witnesses extend the notion of a plausible patch (Definition 6). Let be the finite set of benign inputs examined by execution, and let be the set of reported candidate witnesses that are not refuted.
DEFINITION 8. A candidate patch is plausible with respect to if no input in is a witness input for and is empty:
We call suspected divergent if no input in is a witness input for but is not empty. Dynamic analysis reports no candidate witnesses , so this definition coincides with Definition 6. Neuro-DeepDiff executes no inputs and thus we can say as suspected functional divergence.
4.2.2 Neural-analysis based benign input generation. Neural analysis can also be used to generate benign inputs for regression-freedom checking. Given the vulnerability, patched code, and surrounding program context, a neural component can generate inputs that exercise the modified code without triggering the vulnerability. We consider two approaches for benign input generation using a neural component.
Vulnerability and Program context based Input Generation. Benign inputs can be generated using a large language model or agent given contextual information about the vulnerability and the program. The input to the neural component can include the triggering input harness, patched code, triggering input, and crash report. Based on this context, the neural component generates benign inputs that can reach the patched code without triggering the vulnerability.
Neuro-DeepDiff (Section 4.2.1) based Input Generation. Given a candidate witness (Definition 7) identified by Neuro-DeepDiff, a large language model or agent is asked to generate a witness input . This approach also uses neural analysis for input generation, but differs from the previous approach in the source of its context. Rather than directly providing the vulnerability and program context, it uses the witness description generated by Neuro-DeepDiff to guide the generation of the witness input.
4.2.3 Dynamic Analysis with Neuro-DeepDiff-Generated Witnesses. In the Neuro-DeepDiff approach, a neural component generates candidate witnesses of regression given the vulnerable and patched programs. A separate neural agent then converts these candidate witnesses into benign inputs that can be used to execute the programs. Since the candidate witnesses are generated for a specific patch, the resulting benign inputs can be used in two different ways for dynamic regression-freedom checking.
First, the benign inputs derived from the witnesses of each patch can be used only to evaluate the corresponding patch. We refer to this approach as neuro-witness-corresponding dynamic analysis. In this approach, each patch is evaluated only with the benign inputs generated from its own candidate witnesses. This limits the dynamic analysis to the corresponding patch and its generated inputs, making it less expensive.
Second, the benign inputs generated from the witnesses of all patches can be used to evaluate all candidate patches. We refer to this approach as neuro-witness dynamic analysis. In this approach, the benign inputs generated for one patch can also be used to evaluate other patches. Although this provides broader input coverage, it can be computationally expensive because each generated benign input may need to be executed against multiple candidate patches. In particular, when multiple witnesses are generated for each patch, the number of dynamic executions can grow substantially.
For both approaches, the generated benign inputs are executed on the vulnerable and patched programs to determine whether the candidate witnesses correspond to actual behavioral divergences. Thus, Neuro-DeepDiff-generated witnesses can support dynamic regression-freedom checking through either patch-specific execution or cross-patch reuse of witness-derived benign inputs.
4.2.4 Neural Analysis for Understanding Intended vs. Unintended Regression.
Regression-freedom checking cannot distinguish between intended and unintended functional divergence (Section 3.1). A behavioral change detected on a benign input may represent an intentional change introduced by the developer. Thus, neural analysis can provide additional context for understanding whether an observed behavioral change represents an unintended functional regression or an intentional modification by the developer. In particular, neural analysis can examine the code context, patch, and witness input to assess the nature of the observed divergence. We consider several ways in which neural analysis can provide evidence for validating an observed divergence:
- Multiple candidate witness inputs (Definition 7 in Neuro-DeepDiff) can provide higher confidence of intentional functional divergence.
- A candidate witness accompanied by divergence evidence of an observable behavioral change () can provide a strong explanation of the functional impact introduced by the patch.
- A separate neural component can act as a validator to assess whether the observed divergence identified by dynamic analysis is more likely to result from an unintended functional change or an intentional behavior modification.
5 Implementation
In this section, we discuss the key implementation details of our DEEPDIFF approach.
Write traces as observable behavior. For observable behavior comparison, we capture writes during execution. We instrument write operations and record the corresponding left-hand-side variables after each write. The instrumentation is heuristic-based and does not perform data-flow or semantic analysis.
Instrumented function. Instrumenting writes throughout the entire codebase can be expensive. Since a patch typically modifies a small portion of the codebase, we identify the function affected by the vulnerability or patch using information from the crash report and/or the git diff, and instrument only the affected function.
Trace normalization. Before comparing write traces in Algorithm 1, we normalize the recorded writes. Memory addresses can vary across builds and executions, and directly comparing them can therefore introduce spurious divergences. We use heuristics to identify memory-related writes, including writes involving pointer dereferences and writes whose right-hand sides contain operations such as memcpy, malloc, or alloc. We also treat different orderings of the same writes as equivalent, since reordering writes does not necessarily indicate behavioral divergence.
Filtering benign inputs. We filter generated inputs before considering them benign inputs according to Definition 2. Each generated input is executed on the original vulnerable program, and inputs that trigger a crash according to the sanitizer oracle are discarded.
Reachability for regression-freedom. While recording writes, we also track whether a benign input reaches the vulnerable or patched function and whether it reaches the code modified by the patch. This reachability information is used to determine whether an input exercises the code relevant to regression-freedom checking.
Mutation-based benign input generation. Our mutation-based input generation first applies deterministic, structure-preserving mutations. Specifically, it systematically replaces each adjacent byte pair in the triggering input with small values encoded in both big- and little-endian order. It then falls back to randomized byte-level transformations. We specify both a target number of benign inputs and an upper bound on the number of mutations. If the target cannot be reached within this bound, the approach may produce fewer benign inputs or none. For boundary-based mutation, we generate inputs adjacent to the triggering input to explore boundary conditions around the vulnerability-triggering input.
Candidate witness inputs. Candidate witnesses (Definition 7) generated by Neuro-DeepDiff are represented in a structured JSON format.
LLM models used to generate benign inputs. For our neural analysis, we use Claude Opus 4.6 [3] as the agentic model for generating benign inputs and for our Neuro-DeepDiff approach. We selected this model for its ability to operate on and reason over large codebases.
6 Experimental Evaluation
We derive our evaluation corpus from CyberGym-E2E [54], a benchmark constructed from historical vulnerabilities reported by OSS [15]. CyberGym-E2E associates each vulnerability with a reproducible vulnerable program, the corresponding developer patch, a triggering input, and a containerized build environment. Its construction pipeline retains an instance only when the project builds successfully and the triggering input triggers the target vulnerability in the vulnerable program but not in the patched version. We select a subset of these instances in which the vulnerability and the corresponding patched code are located within the same function and the developer patch contains one to three hunks of code changes to construct our evaluation corpus for regression-freedom checking.
Our corpus contains 630 patches associated with 118 vulnerabilities from 40 open-source projects. CyberGym-E2E focuses on memory-safety vulnerabilities, and the vulnerabilities in our extracted corpus include out-of-bounds accesses, uninitialized memory, heap/stack overflow, and integer overflow and underflow. Each vulnerability contributes one developer-written patch, and we generate additional patches by mutating the corresponding developer-written patch.
6.1 Incorrect patch generation by mutating developer patch
Evaluating a patch validator requires incorrect patches that are semantically non-equivalent to the developer patches. CyberGym-E2E provides only the developer patch for each vulnerability. Therefore, we synthetically generate incorrect patches following the approach of OmniCode [55], which introduces commonly occurring patching errors. However, unlike OmniCode, which uses agents to generate incorrect patches through mutation-based transformations, we directly apply mutation operators to the developer-written patches provided by CyberGym-E2E.
Our mutation process applies between one and three localized semantic transformations to each developer-written patch. The mutation operators include changing arithmetic or relational operators, swapping conjunctions and disjunctions, negating conditions, introducing off-by-one changes, swapping function parameters, and replacing return values. These transformations are designed to model plausible patching errors while avoiding intentionally malformed patches. The mutation manifest classifies all generated mutants as semantic rather than syntactic mutations.
Depending on the availability of applicable mutation sites, each vulnerability contributes between one and seven patches. Across the complete dataset, each vulnerability contributes an average of 5.34 patches, including 4.34 mutated patches. Of the 630 patches, 496 are semantically mutated patches, while the remaining 134 comprise the developer-written patches and patches that are semantically equivalent to the developer-written patches.
6.2 Dataset for Regression-Freedom Analysis
Of the 496 semantically mutated patches, 245 fail to eliminate the vulnerability because the triggering input still causes a crash in the patched program. We exclude these patches from our regression-freedom analysis because they do not satisfy the basic requirement of a candidate patch (Definition 3). This filtering leaves 385 candidate patches, comprising 251 semantically mutated patches and 134 patches that are developer-written or semantically equivalent to them. The patches contain one to three hunks of code changes, with an average of 9.01 changed lines per patch. We use these 385 candidate patches to evaluate our Neuro-Dynamic regression-freedom checking approach, DEEPDIFF.
6.3 Metrics Used for Evaluation
We consider a candidate patch to be incorrect if it is semantically non-equivalent to the developer-written patch. We treat the identification of incorrect patches as the positive class. For evaluating the regression-freedom approaches, we focus on three primary metrics:
(1) Recall: Recall measures the proportion of incorrect patches identified by the approach out of all incorrect patches in the evaluation corpus. In our dataset, there are 251 incorrect (semantically mutated) patches.
(2) False Alarm: False alarm measures the proportion of patches that are incorrectly flagged as functionally divergent among the developer-written or semantically equivalent patches. It is calculated as the number of such patches flagged as functionally divergent divided by the total, which is 134.
(3) F1 Score (Average): F1 score is the harmonic mean of the precision and recall. Since our dataset is imbalanced, the overall F1 score can be dominated by the majority class. Therefore, we report the average F1 score, which is calculated as the arithmetic mean of the F1 scores for the positive and negative classes, giving equal weight to both.
6.4 Research Questions
Our experimental evaluation targets the following research questions:

Fig. 1. Effectiveness of Regression-Freedom checking
RQ1. To what extent does regression-freedom-based patch validation improve the detection of incorrect patches?
RQ2. How do different strategies for generating benign inputs affect the effectiveness of the patch validation pipeline?
RQ3. How effective is neural analysis in distinguishing intended behavior changes from unintended functional regressions?
RQ4. How effective is Neuro-DeepDiff for patch validation?
6.5 Experimental Results
6.5.1 RQ1: Effectiveness of Regression-Freedom Checking. To evaluate the effectiveness of regression-freedom checking for security patch validation, we investigate whether simply executing the vulnerable and patched programs on benign inputs is sufficient to identify incorrect patches, or whether differential analysis is necessary to expose functional divergence. We therefore compare a non-differential approach, which executes the programs on benign inputs without comparing their behavior, with our regression-freedom checking approach, which differentially compares their behavior. Fig. 1 presents the recall and average F1 score of the non-differential and regression-freedom approaches.
The non-differential approach identifies only 6% of the incorrect patches, whereas regression-freedom checking identifies 64%, representing a 58 percentage-point improvement in recall. In the non-differential approach, a patch is flagged as incorrect if executing it on a benign input triggers a new vulnerability or results in a build failure. In contrast, regression-freedom checking can identify functional divergence by comparing the behavior of the vulnerable and patched programs. This improvement, however, comes with an increase in false alarms. Regression-freedom checking flags 18% of the developer-written or semantically equivalent patches as functionally divergent. This occurs because regression-freedom checking identifies behavioral differences on benign inputs without distinguishing whether those changes are intentional modifications introduced by developers or unintended functional regressions.
Despite this trade-off, regression-freedom checking improves the average F1 score by 38 percentage points compared with the non-differential approach. These results indicate that comparing the behavior of the vulnerable and patched programs provides substantially more information for identifying functionally divergent patches than simply executing the programs on benign inputs.
Overall, there is a trade-off between the detection of incorrect patches and having false alarms. Even though we are improving recall by 58%, the 18% false alarm has been introduced in our

(a) Recall vs False Alarm

(b) Average F1 score
Fig. 2. Effectiveness of different benign input generation approaches.
regression-freedom analysis approach. Our regression-freedom analysis looks for functional divergence based on benign inputs which do not trigger the vulnerability in the vulnerable code. Thus, it might flag developers' intended change also as functional divergence. However, the F1 score shows that overall, regression-freedom checking improve the performance by 38%.
6.5.2 RQ2: Effectiveness of Benign Input Generation Approaches. Fig. 2(a) presents the recall and false alarm rate for different benign input generation approaches. The inputs generated without neural analysis have the lowest recall, at 10%, while producing a false alarm rate of 6%. The other three input generation approaches use neural approaches. The neural context approach corresponds to vulnerability and program context based input generation, both neuro-witness and neuro-witness-corresponding are Neuro-DeepDiff based input generation (Discussed in Section 4.2.2).
As shown in Fig. 2(a), the neural-based input generation approaches achieve substantially higher recall than the approach without neural assistance. The neuro-witness approach achieves the highest recall of 71%, but also has the highest false alarm rate of 30%. The neuro-witness-corresponding approach achieves a recall of 64% with a false alarm rate of 18%, while the neural context achieves a recall of 46% with a false alarm rate of 16%. These results indicate that witnesses derived using Neuro-DeepDiff can expose more functionally divergent patches than either non-neural or context based input generation approaches. However, the results also demonstrate a trade-off between identifying incorrect patches and introducing false alarms.
Fig. 2(b) presents the average F1 scores of the different benign input generation approaches. The neuro-witness-corresponding approach achieves the highest F1 score, indicating the best balance between identifying incorrect patches and limiting false alarms among the evaluated approaches. The neuro-witness approach achieves the second-highest F1 score. The neural context approach achieves an F1 score of 59%, which is 11 percentage points lower than the neuro-witness-corresponding approach and 10 percentage points lower than the neuro-witness one. The approach without neural assistance achieves the lowest F1 score of 32%. Overall, these results indicate that Neuro-DeepDiff witness-derived benign inputs, particularly when used for the corresponding patch, provide an effective strategy for regression-freedom checking in security patch validation.
6.5.3 RQ3: Effectiveness of Neural Analysis for Understanding Intended Behavior Changes. Dynamic regression-freedom analysis can detect behavioral changes that may have been intentionally introduced by developers. Neural analysis can provide additional evidence for determining whether an observed divergence is more likely to represent an intentional behavior change or an unintended

(a) Recall vs False Alarm

(b) Average F1 score
Fig. 3. Effectiveness of the Neural Analysis for intended Regression Reasoning.
functional regression. In this research question, we investigate the effectiveness of different neural validation strategies for analyzing detected regressions.
As RQ2 shows that the neuro-witness-corresponding (NWC) approach achieves the highest F1 score among the benign input generation approaches, we evaluate the different neural strategies using NWC. In NWC, benign inputs are generated from the candidate witnesses produced by Neuro-DeepDiff and then dynamically executed on the corresponding vulnerable and patched programs. We investigate whether having multiple candidate witnesses or a strong divergence evidence from a candidate witness accompanied by an observable behavioral change () (Section 4.2.4) can reduce false alarms while retaining the ability to identify incorrect patches.
Fig. 3(a) presents the recall and false alarm rate of the different validation strategies. We consider NWC N, where N represents the number of candidate witnesses generated by neuro-deeppdiff, which requires at least N candidate witnesses to flag a patch incorrect. We also consider NWC 1 strong, which requires at least one candidate witness with divergence evidence (). Finally, NWC with neural judge uses an independent neural validator to evaluate the observed regression based on the dynamic analysis results.
The NWC approach without additional validation achieves the highest recall of 64%, with a false alarm rate of 18%. NWC 1 strong achieves the second-highest recall of 62%, while reducing the false alarm rate to 13%. For NWC N, both recall and false alarm rate decrease as the required number of witnesses increases. This indicates that requiring multiple witnesses provides additional evidence for a behavioral divergence and can reduce false alarms, but this filtering comes at the cost of lower recall.
Fig. 3(b) presents the F1 scores of the different validation strategies. NWC and NWC 1 strong achieve the highest F1 scores. In particular, requiring at least one strong witness reduces recall only slightly, from 64% to 62%, while reducing the false alarm rate from 18% to 13%. These results suggest that using strong witness evidence with the neuro-witness-corresponding approach can provide a better balance between identifying incorrect patches and reducing false alarms. The strong-witness criterion also provides additional evidence that can help developers assess whether an observed regression may represent an intentional behavior change rather than an unintended functional regression.
6.5.4 RQ4: Effectiveness of the Neuro-DeepDiff Approach. In this research question, we investigate the effectiveness of the Neuro-DeepDiff approach. This evaluation is important because it may not always be feasible to dynamically execute candidate patches with benign inputs due to the effort

(a) Recall vs False Alarm

(b) Average F1 Score
Fig. 4. Effectiveness of Neuro-DEEPDIFF approach.
required to set up and maintain the execution environment. We therefore evaluate Neuro-DeepDiff based on the number of candidate witnesses generated with divergence evidence.
Figure 4 presents the effectiveness of Neuro-DeepDiff based on the number of candidate witnesses generated with divergence evidence. For Neuro-DeepDiff, a patch is considered incorrect if at least one candidate witness is generated with divergence evidence. Similarly, for Neuro-DeepDiff , a patch is considered incorrect if at least candidate witnesses are generated with divergence evidence. We observe a similar trend to that in RQ3, where increasing the required number of candidate witnesses reduces both recall and false alarms. Neuro-DeepDiff with at least one candidate witness achieves the highest recall of 79%, with a false alarm rate of 19%. In contrast, Neuro-DeepDiff achieves the lowest recall of 16%, with no false alarms.
The F1 score follows a similar trend. Neuro-DeepDiff with at least one candidate witness achieves the highest F1 score of 78%, while Neuro-DeepDiff achieves the second-highest F1 score of 70%. The F1 score further decreases to 62% and 42% for Neuro-DeepDiff and Neuro-DeepDiff , respectively. These results indicate that requiring more candidate witnesses with divergence evidence provides more conservative patch validation and reduces false alarms, but also reduces the ability to identify incorrect patches.
We further investigate whether the candidate witnesses generated by Neuro-DeepDiff can be converted into executable benign inputs for dynamic regression-freedom checking. Neuro-DeepDiff generates a total of 3039 candidate witnesses across the evaluation dataset, of which 3037 are converted into inputs by a neural component. We then filter these inputs to retain only those that do not trigger any vulnerability in the original vulnerable program, according to Definition 2. Of the 3037 converted inputs, 2898 satisfy this criterion, corresponding to 95% of the converted inputs. We then execute these benign inputs on the corresponding vulnerable and patched programs using dynamic analysis. Dynamic analysis identifies behavioral divergence for 1876 of the 2898 benign inputs. Thus, in approximately 65% of cases, the dynamically identified witnesses align with the candidate witnesses generated by Neuro-DeepDiff.
Overall, these results demonstrate that Neuro-DeepDiff can effectively generate candidate witnesses with divergence evidence for security patch validation. Moreover, the high proportion of generated inputs that satisfy the benign-input criterion and the 65% agreement between candidate witnesses and dynamically identified witnesses indicate that Neuro-DeepDiff-generated witnesses can provide useful evidence of functional divergence without requiring dynamic execution during the initial witness-generation process.
6.6 Discussion
Across all the research questions, we observe a trade-off between the recall of identifying incorrect (semantically mutated) patches and the false-alarm rate of flagging developer-written or semantically equivalent patches as incorrect. As the number of benign inputs increases, more execution paths are explored, increasing the likelihood of reaching edge cases. Consequently, while generating more benign inputs can improve the detection of incorrect patches, it can also lead to an increase in false alarms. We also found that, in some cases, developers intentionally change the program behavior for inputs that do not trigger a vulnerability under evaluated sanitizer oracle. Although dynamic analysis based witness inputs may flag a correct developer patch as divergent, they provide witness inputs along with the corresponding divergent execution traces. We believe that this information can help developers understand the behavioral differences and make an informed decision about whether the observed divergence is intended. Furthermore, we believe that the consequences of incorrectly classifying an incorrect patch as a good patch can be more severe, as a functionally incorrect patch may be deployed and potentially leave the underlying vulnerability exploitable. In contrast, when a developer-written patch is identified as incorrect, the provided witness inputs and divergent traces can be used by developers to further investigate the reported behavior and determine whether the divergence is intentional.
6.7 Threats to Validity
Internal validity. Our incorrect patches are generated by mutating developer-written patches (Section 6) rather than being collected from independently authored incorrect patches. Although these mutations model plausible patching errors, they may not fully represent the distribution of errors that occur in real-world automated patch generation. Nevertheless, mutation is a commonly used approach for synthetically generating incorrect patches [55]. Our regression-freedom analysis also incorporates neural components at different stages, which may introduce non-determinism. To assess the stability of our results, we ran our pipelines multiple times and observed similar results across runs. We therefore consider the reported results to be representative of the evaluated setting.
External validity. Our dataset is drawn from CyberGym-E2E and is restricted to C/C++ projects instrumented by OSS-Fuzz with a sanitizer-based crash oracle. Consequently, our results may not generalize to memory-safe languages or to vulnerability classes that do not manifest as crashes, such as logic errors or authorization bypasses. Nevertheless, the concept of regression-freedom is not inherently tied to a particular programming language or crash oracle and could potentially be applied to other languages and other observable behaviors. Our neural components may also have encountered similar vulnerabilities, patches, or code patterns during pretraining. However, our approach does not rely solely on the neural components to determine patch correctness. Instead, the neural components are used to generate candidate witnesses and divergence evidence, which are subsequently used as concrete evidence for the regression-freedom analysis and require additional reasoning to establish a behavioral difference.
6.8 Limitations
The write-trace-based regression-freedom checking approach has several limitations. For example, it may have difficulty handling cases where a variable is renamed or replaced, a variable assignment is introduced within a loop, a new variable is added, or memory addresses are compared. To mitigate some of these cases, we apply heuristics, such as ignoring comparisons involving memory addresses. Addressing other cases may require more sophisticated semantic data-flow analysis and type analysis or inference. These limitations can result in false alarms. However, our manual analysis shows that only 29% of the false alarms are attributable to limitations of the regression analysis itself. These cases could potentially be addressed through improved heuristics for write-trace analysis.
7 Related Works
Automated Patch Evaluation. Existing research on automated patching has primarily addressed the patch overfitting problem with respect to a given test suite [12, 43]. Other approaches assess and evaluate patches using LLM-based judges or pretrained models [30, 52, 71, 73], augmenting existing test suites with additional functional tests or vulnerability-triggering inputs [21, 54, 70], or leveraging information from historical developer discussions [31]. A separate line of research focuses on identifying security patches and silent vulnerability fixes [49, 56, 59, 65, 72, 74], including approaches that prioritize patches by inferring vulnerabilities from patching information [18, 49, 56, 59–61, 65, 72, 75]. However, these approaches do not explicitly assess whether a security patch changes the functional behavior of the original program. Our regression-freedom checking approach addresses this gap by differentially evaluating the functional behavior of security patches against the original vulnerable program.
LLM-Generated Code Evaluation. Several works have studied the evaluation of LLM-generated code [1, 8, 22, 32, 33, 38, 66, 69]. These approaches primarily evaluate functional correctness or general code quality rather than the functional behavior regression of security patches.
Differential Analysis and Testing. Numerous differential analysis and testing approaches use symbolic execution for program equivalence analysis [4, 5, 9, 13, 14, 19, 20, 24–26, 36, 39, 41, 44, 57]. Differential fuzzing [40, 58, 67] and differential monitoring [37] provide scalable alternatives for identifying behavioral differences, while hybrid approaches combine differential symbolic execution and fuzzing [47]. However, these approaches do not focus on differential patch validation using the original vulnerable program as the behavioral reference.
Regression Verification. Prior work has also explored static differential verification to determine whether bug fixes introduce regressions [27, 34]. These approaches formulate regression checking in terms of program assertions and verify that the assertions remain satisfied after a program modification. Our notion of regression freedom instead identifies behavioral differences between the original and patched programs on non-triggering inputs without requiring additional program assertions to specify the expected behavior.
8 Conclusion And Future Directions
Passing an existing test suite and no longer crashing on a triggering input does not establish that a security patch is correct: neither check observes behavior on inputs that the test suite never exercises, allowing a functionally divergent patch to satisfy both while silently changing program behavior. We introduced regression-freedom checking, a validation criterion that treats the original vulnerable program as the behavioral reference and uses benign inputs to expose such divergences. We instantiated this criterion through dynamic and neural analysis and extended the existing CyberGym dataset with semantically mutated incorrect patches, resulting in a total of 630 patches, including 496 incorrect patches. For the same set of benign inputs, regression-freedom checking substantially improves recall over non-differential analysis, increasing it from 6% to 64%. Our analysis also demonstrates that functional divergence can be intentional, highlighting the challenge of distinguishing unintended regressions from intended behavior changes.
Several directions remain for future work. Developer-intent analysis [16, 50] could provide additional evidence for distinguishing unintended regressions from intentional behavior changes. Moreover, moving from benign-input-based analysis toward benign path based analysis, potentially using symbolic execution [24], could provide more systematic coverage of non-crashing program behaviors and increase confidence in regression-freedom checking. Our current approach also focuses primarily on regression testing and does not explicitly investigate the generation of multiple vulnerability-triggering inputs. Generating a broader set of triggering inputs before benign-input generation could improve coverage of the vulnerability-triggering behavior and provide a stronger foundation for subsequent regression-freedom checking.
References
[1] Toufique Ahmed, Kunal Suresh Pai, Premkumar Devanbu, and Earl T Barr. 2023. Improving few-shot prompts with relevant static analysis products. arXiv preprint arXiv:2304.06815 (2023).
[2] Kamel Alrashedy, Abdullah Aljasser, Pradyumna Tambwekar, and Matthew Gombolay. 2025. Leveraging static analysis for feedback-driven security patching in llm-generated code. Journal of Cybersecurity and Privacy 5, 4 (2025), 110.
[3] Anthropic. [n.d.]. Claude Opus 4.6. https://www.anthropic.com/news/claude-opus-4-6.
[4] John Backes, Suzette Person, Neha Rungta, and Oksana Tkachuk. 2013. Regression Verification Using Impact Summaries, Vol. 7976. doi:10.1007/978-3-642-39176-7_7
[5] Sahar Badihi, Faridah Akinotcho, Yi Li, and Julia Rubin. 2020. ARDiff: scaling program equivalence checking via iterative abstraction and refinement of common code. 13–24. doi:10.1145/3368089.3409757
[6] Paul E Black. 2018. Juliet 1.3 test suite: Changes from 1.2. US Department of Commerce, National Institute of Standards and Technology ....
[7] Tim Boland and Paul E Black. 2012. Juliet 1. 1 C/C++ and java test suite. Computer 45, 10 (2012), 88–90.
[8] Alessio Buscemi. 2023. A Comparative Study of Code Generation using ChatGPT 3.5 across 10 Programming Languages.
[9] Cristian Cadar and Kristina Palikareva. 2014. Shadow symbolic execution for better testing of evolving software. (05 2014). doi:10.1145/2591062.2591104
[10] Junkai Chen, Huihui Huang, Yunbo Lyu, Junwen An, Jieke Shi, Chengran Yang, Ting Zhang, Haoye Tian, Yikun Li, Zhenhao Li, et al. 2025. SecureAgentBench: Benchmarking secure code generation under realistic vulnerability scenarios. (2025).
[11] EndorLabs. 2026. What Is Mythos and Why It Matters for Software Security. https://www.endorlabs.com/learn/what-is-mythos-and-why-it-matters-for-software-security. Accessed: 2026-09-30.
[12] Zhiwei Fei, Jidong Ge, Chuanyi Li, Tianqi Wang, Yuning Li, Haodong Zhang, LiGuo Huang, and Bin Luo. 2025. Patch correctness assessment: ACM Transactions on Software Engineering and Methodology 34, 2 (2025), 1–50.
[13] Johann Glock, Josef Pichler, and Martin Pinzger. 2024. PASDA: A partition-based semantic differencing approach with best effort classification of undecided cases. Journal of Systems and Software 213 (03 2024), 112037. doi:10.1016/j.jss.2024.112037
[14] Benny Godlin and Ofer Strichman. 2013. Regression verification: Proving the equivalence of similar programs. Software Testing Verification and Reliability 23 (05 2013), 241–258. doi:10.1002/stvr.1472
[15] Google. [n.d.]. OSS-Fuzz: Continuous Fuzzing for Open Source Software. https://github.com/google/oss-fuzz.
[16] Susana Haing, Natan Vidra, and Spurthi Setty. 2026. DevIntent: How Much Does LLM-Generated Code Violate Developer Intent? arXiv preprint arXiv:2608.07614 (2026).
[17] Sungmin Han, Hyounghick Kim, Hojoon Lee, Hyungon Moon, Yuseok Jeon, Ho Bae, Donghyun Yeo, Gail-Joon Ahn, and Sangkyun Lee. 2025. Dependable code repair with llms: Ai-driven vulnerability detection and automated patching. In 2025 IEEE 30th Pacific Rim International Symposium on Dependable Computing (PRDC). IEEE, 176–181.
[18] Cheng HUANG, Mingxu SUN, Renyu DUAN, Susheng WU, and Bin CHEN. 2022. Vulnerability identification technology research based on project version difference. Chinese Journal of Network and Information Security 8, 1, Article 52 (2022), 10 pages. doi:10.11959/j.issn.2096-109x.2021094
[19] Marie-Christine Jakobs. 2021. PEQCHECK: Localized and Context-aware Checking of Functional Equivalence. 130–140. doi:10.1109/FormaliSE52586.2021.00019
[20] Marie-Christine Jakobs and Maik Wiesner. 2022. PEQtest: Testing Functional Equivalence. 184–204. doi:10.1007/978-3-030-99429_7_11
[21] Inyeong Jang and Jinyoung Kim. 2026. Improving Automated Patch Correctness Assessment by Designing LLM-Based Oracles. In 2026 IEEE International Conference on Software Testing, Verification and Validation (ICST). IEEE, 244–255.
[22] Ellen Jiang, Edwin Toh, Alejandra Molina, Kristen Olson, Claire Kayacik, Aaron Donsbach, Carrie J Cai, and Michael Terry. 2022. Discovering the syntax and strategies of natural language programming with generative language models. In Proceedings of the 2022 CHI Conference on Human Factors in Computing Systems. 1–19.
[23] Ziyou Jiang, Lin Shi, Guowei Yang, and Qing Wang. 2024. PatUntrack: Automated Generating Patch Examples for Issue Reports without Tracked Insecure Code. In Proceedings of the 39th IEEE/ACM International Conference on Automated Software Engineering (Sacramento, CA, USA) (ASE '24). Association for Computing Machinery, New York, NY, USA,
1–13. doi:10.1145/3691620.3694982
[24] James King. 1976. Symbolic Execution and Program Testing. Commun. ACM 19 (07 1976), 385–394. doi:10.1145/360248.360252
[25] Tomasz Kuchta, Hristina Palikareva, and Cristian Cadar. 2018. Shadow Symbolic Execution for Testing Software Patches. ACM Transactions on Software Engineering and Methodology 27 (09 2018), 1–32. doi:10.1145/3208952
[26] Shuvendu Lahiri, Chris Hawblitzel, Ming Kawaguchi, and Henrique Rebello. 2012. SYMDIFF: A Language-Agnostic Semantic Diff Tool for Imperative Programs. doi:10.1007/978-3-642-31424-7_54
[27] Shuvendu K Lahiri, Kenneth L McMillan, Rahul Sharma, and Chris Hawblitzel. 2013. Differential assertion checking. In Proceedings of the 2013 9th Joint Meeting on Foundations of Software Engineering. 345–355.
[28] Hwiwon Lee, Ziqi Zhang, Hanxiao Lu, and Lingming Zhang. 2026. Sec-bench: Automated benchmarking of llm agents on real-world software security tasks. Advances in Neural Information Processing Systems 38 (2026), 116342–116378.
[29] Xiang Li, Yueci Su, Jiahao Liu, Zhiwei Lin, Yuebing Hou, Peiming Gao, and Yuanchao Zhang. 2025. Vulsolver: Vulnerability detection via llm-driven constraint solving. arXiv preprint arXiv:2509.00882 (2025).
[30] Yuning Li, Yuanjie Ji, Xiang Chen, Zongwen Shen, Jidong Ge, and Bin Luo. 2026. FURINA: A Multi-Agent Framework for Automated Patch Correctness Assessment. ACM Transactions on Software Engineering and Methodology (2026).
[31] Chih-En Lin, Attreyee Mukherjee, Ajay Rawat, Ruqi Zhang, and Pedro Fonseca. 2026. Learning From Developers: Towards Reliable Patch Validation at Scale for Linux. arXiv preprint arXiv:2603.24825 (2026).
[32] Chao Liu, Bao Xuanlin, Hongyu Zhang, Neng Zhang, Haibo Hu, Xiaohong Zhang, and Meng Yan. 2023. Improving ChatGPT Prompt for Code Generation.
[33] Jiawei Liu, Chunqiu Xia, Yuyao Wang, and Lingming Zhang. 2023. Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generation.
[34] Francesco Logozzo, Shuvendu K Lahiri, Manuel Fähndrich, and Sam Blackshear. 2014. Verification modulo versions: Towards usable verification. ACM SIGPLAN Notices 49, 6 (2014), 294–304.
[35] Aravind Machiry, Nilo Redini, Eric Camellini, Christopher Kruegel, and Giovanni Vigna. 2020. SPIDER: Enabling Fast Patch Propagation In Related Software Repositories. In 2020 IEEE Symposium on Security and Privacy (SP). 1562–1579. doi:10.1109/SP40000.2020.00038
[36] Federico Mora, Yi Li, Julia Rubin, and Marsha Chechik. 2018. Client-specific equivalence checking. 441–451. doi:10.1145/3238147.3238178
[37] Fabian Muehlboeck and Thomas Henzinger. 2021. Differential Monitoring. 231–243. doi:10.1007/978-3-030-88494-9_12
[38] Shuyin Ouyang, Jie Zhang, Mark Harman, and Meng Wang. 2023. LLM is Like a Box of Chocolates: the Non-determinism of ChatGPT in Code Generation.
[39] Hristina Palikareva, Tomasz Kuchta, and Cristian Cadar. 2016. Shadow of a Doubt: Testing for Divergences Between Software Versions. doi:10.1145/2884781.2884845
[40] Akash Purushottam Patil. 2022. FuzzDiff: A Program Equivalence Checker based on feedback-directed fuzz testing and semantic analysis.
[41] Suzette Person, Matthew B. Dwyer, Sebastian Elbaum, and Corina S. Pășăreanu. 2008. Differential Symbolic Execution. In Proceedings of the 16th ACM SIGSOFT International Symposium on Foundations of Software Engineering (Atlanta, Georgia) (SIGSOFT '08/FSE-16). Association for Computing Machinery, New York, NY, USA, 226–237. doi:10.1145/1453101.1453131
[42] Alfredo Pesoli, Herman Errico, and Lorenzo Cavallaro. 2026. Demystifying the Mythos or Disrupting Bugonomics? From Zero-Day Asymmetry to Defender Remediation Throughput. arXiv preprint arXiv:2605.24632 (2026).
[43] Justyna Petke, Matias Martinez, Maria Kechagia, Aldeida Aleti, and Federica Sarro. 2024. The patch overfitting problem in automated program repair: Practical magnitude and a baseline for realistic benchmarking. In Companion Proceedings of the 32nd ACM International Conference on the Foundations of Software Engineering. 452–456.
[44] David Ramos and Dawson Engler. 2011. Practical, Low-Effort Equivalence Verification of Real Code. 669–685. doi:10.1007/978-3-642-22110-1_55
[45] Meta AI Research. 2025. Introducing AutoPatchBench: A Benchmark for AI-Powered Security Fixes. https://engineering.fb.com/2025/04/29/ai-research/autopatchbench-benchmark-ai-powered-security-fixes/. Accessed: 2026-09-30.
[46] Amirali Sajadi, Kostadin Damevski, and Preetha Chatterjee. 2025. How safe are AI-generated patches? a large-scale study on security risks in LLM and agentic automated program repair on SWE-bench. arXiv preprint arXiv:2507.02976 (2025).
[47] Laboni Sarker and Tevfik Bultan. 2025. Hybrid Equivalence/Non-Equivalence Testing. In 2025 IEEE Conference on Software Testing, Verification and Validation (ICST).
[48] Laboni Sarker, Abdus Satter, and Tevfik Bultan. 2026. Quantitative Symbolic Patch Impact Analysis. In NASA Formal Methods Symposium. Springer, 367–390.
[49] Arthur D Sawadogo, Tegawendé F Bissyandé, Naouel Moha, Kevin Allix, Jacques Klein, Li Li, and Yves Le Traon. 2022. SSPCatcher: Learning to catch security patches. Empirical Software Engineering 27, 6 (2022), 151.
[50] Reshabh K Sharma. 2026. ContextCov: Bridging the Gap Between Developer Intent and Autonomous Agent Execution. In ACM CAIS 2026 Workshop on Agentic Software Engineering.
[51] Ze Sheng, Zhicheng Chen, Shuning Gu, Heqing Huang, Guofei Gu, and Jeff Huang. 2025. Llms in software security: A survey of vulnerability detection techniques and insights. Comput. Surveys 58, 5 (2025), 1–35.
[52] Sherry Shi, Renyao Wei, Michele Tufano, José Cambronero, Runxiang Cheng, Franjo Ivancic, and Pat Rondon. 2026. Towards a Human-in-the-Loop Framework for Reliable Patch Evaluation Using an LLM-as-a-Judge. In Proceedings of the 1st International Workshop on AI for Software Quality Evaluation-Judgment, Metrics, Benchmarks, and Beyond. 19–28.
[53] Tianneng Shi, Robin Rheem, Dongwei Jiang, Mona Wang, Francisco De La Riega, Zhun Wang, Jingzhi Jiang, Alexander Cheung, Sean Tai, Jonah Cha, Jianhong Tu, Gabriel Han, Chenguang Wang, Jingxuan He, Wenbo Guo, and Dawn Song. [n.d.]. CyberGym:e2e. https://github.com/sunblaze-ucb/cybergym-e2e.
[54] Tianneng Shi, Robin Rheem, Dongwei Jiang, Mona Wang, Francisco De La Riega, Zhun Wang, Jingzhi Jiang, Alexander Cheung, Sean Tai, Jonah Cha, Jianhong Tu, Gabriel Han, Chenguang Wang, Jingxuan He, Wenbo Guo, and Dawn Song. 2026. CyberGym-E2E: Scalable Real-World Benchmark for AI Agents' End-to-End Cybersecurity Capabilities. CoRR abs/2606.04460 (2026). arXiv:2606.04460 doi:10.48550/ARXIV.2606.04460
[55] Athary Sonwane, Eng-Shen Tu, Wei-Chung Lu, Claas Beger, Carter Larsen, Debjit Dhar, Simon Alford, Rachel Chen, Ronit Pattanayak, Tuan Anh Dang, et al. 2026. OmniCode: A Benchmark for Evaluating Software Development Agents. In Findings of the Association for Computational Linguistics: ACL 2026. 40634–40661.
[56] Yuan Tian, Julia Lawall, and David Lo. 2012. Identifying linux bug fixing patches. In 2012 34th international conference on software engineering (ICSE). IEEE, 386–396.
[57] Anna Trostanetski, Orna Grumberg, and Daniel Kroening. 2017. Modular Demand-Driven Analysis of Semantic Difference for Program Versions. 405–427. doi:10.1007/978-3-319-66706-5_20
[58] Shuai Wang and Dinghao Wu. 2017. In-memory fuzzing for binary code similarity analysis. 319–330. doi:10.1109/ASE.2017.8115645
[59] Xinda Wang, Kun Sun, Archer Batcheller, and Sushil Jajodia. 2019. Detecting“ 0-day” vulnerability: An empirical study of secret security patch in OSS. In 2019 49th Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN). IEEE, 485–492.
[60] Xinda Wang, Shu Wang, Pengbin Feng, Kun Sun, Sushil Jajodia, Sanae Benchaaboun, and Frank Geck. 2021. Patchrnn: A deep learning-based system for security patch identification. In MILCOM 2021-2021 IEEE Military Communications Conference (MILCOM). IEEE, 595–600.
[61] Xinda Wang, Shu Wang, Kun Sun, Archer Batcheller, and Sushil Jajodia. 2020. A machine learning approach to classify security patches into vulnerability types. In 2020 IEEE Conference on Communications and Network Security (CNS). IEEE, 1–9.
[62] Zhun Wang, Nico Schiller, Hongwei Li, Srijiith Sesha Narayana, Milad Nasr, Nicholas Carlini, Xiangyu Qi, Eric Wallace, Elie Bursztein, Luca Invernizzi, et al. 2026. Exploitgym: Can ai agents turn security vulnerabilities into real attacks? arXiv preprint arXiv:2605.11086 (2026).
[63] Zhun Wang, Tianneng Shi, Jingxuan He, Matthew Cai, Jialin Zhang, and Dawn Song. 2026. CyberGym: Evaluating AI Agents' Real-World Cybersecurity Capabilities at Scale. In International Conference on Learning Representations, Vol. 2026. 123341–123386.
[64] Zichao Wei, Jun Zeng, Ming Wen, Zeliang Yu, Kai Cheng, Yiding Zhu, Jingyi Guo, Shiqi Zhou, Le Yin, Xiaodong Su, et al. 2025. Patcheval: A new benchmark for evaluating llms on patching real-world vulnerabilities. arXiv preprint arXiv:2511.11019 (2025).
[65] Bozhi Wu, Shangqing Liu, Ruitao Feng, Xiaofei Xie, Jingkai Siow, and Shang-Wei Lin. 2022. Enhancing security patch identification by capturing structures in commits. IEEE Transactions on Dependable and Secure Computing (2022).
[66] Frank F Xu, Uri Alon, Graham Neubig, and Vincent Josua Hellendoorn. 2022. A systematic evaluation of large language models of code. In Proceedings of the 6th ACM SIGPLAN International Symposium on Machine Programming. 1–10.
[67] Xiangzhe Xu, Zhou Xuan, Shiwei Feng, Siyuan Cheng, Yapeng Ye, Qingkai Shi, Guanhong Tao, Le Yu, Zhuo Zhang, and Xiangyu Zhang. 2023. PEM: Representing Binary Program Semantics for Similarity Analysis via a Probabilistic Execution Model.
[68] Yaopeng Yang, Chuanyi Li, Zhifeng Han, Rui Li, Kui Xu, Qingyuan Li, Wenkang Zhong, Zongwen Shen, Zhiwei Fei, Jidong Ge, et al. 2026. Patch generation in APR: A survey from the perspectives of utilizing LLMs and using APR-specific information. ACM Transactions on Software Engineering and Methodology 35, 8 (2026), 1–62.
[69] Burak Yetistiren, Isk Özsoy, Miray Ayerdem, and Eray Tüzün. 2023. Evaluating the Code Quality of AI-Assisted Code Generation Tools: An Empirical Study on GitHub Copilot, Amazon CodeWhisperer, and ChatGPT. doi:10.48550/arXiv.2304.10778
[70] Zheng Yu, Wenxuan Shi, Xinqian Sun, Zheyun Feng, Meng Xu, and Xinyu Xing. 2026. Patch Validation in Automated Vulnerability Repair. arXiv preprint arXiv:2603.06858 (2026).
[71] Quanjun Zhang, Ye Shang, Haichuan Hu, Chunrong Fang, Zhenyu Chen, and Liang Xiao. 2026. ComPass: Contrastive Learning for Automated Patch Correctness Assessment in Program Repair. Empirical Software Engineering 31, 6 (2026), 157.
[72] Jiayuan Zhou, Michael Pacheco, Zhiyuan Wan, Xin Xia, David Lo, Yuan Wang, and Ahmed E Hassan. 2021. Finding a needle in a haystack: Automated mining of silent vulnerability fixes. In 2021 36th IEEE/ACM International Conference on Automated Software Engineering (ASE). IEEE, 705–716.
[73] Xin Zhou, Bowen Xu, Kisub Kim, DongGyun Han, Hung Huu Nguyen, Thanh Le-Cong, Junda He, Bach Le, and David Lo. 2024. Leveraging Large Language Model for Automatic Patch Correctness Assessment. IEEE Transactions on Software Engineering 50, 11 (2024), 2865–2883. doi:10.1109/TSE.2024.3452252
[74] Yaqin Zhou, Jing Kai Siow, Chenyu Wang, Shangqing Liu, and Yang Liu. 2021. Spi: Automated identification of security patches via commits. ACM Transactions on Software Engineering and Methodology (TOSEM) 31, 1 (2021), 1–27.
[75] Fei Zuo and Junghwan Rhee. 2024. Vulnerability discovery based on source code patch commit mining: a systematic literature review. International Journal of Information Security 23 (01 2024), 1–14. doi:10.1007/s10207-023-00795-8