arXiv Science⌕ Search

arXiv subjects

Maria Camporese

Publications and source records attributed to Maria Camporese.

5 recordsLinked to original sources

Human Reviewers' Attitudes Toward LLM-generated Security Patches: A Controlled Experiment

Existing research in Automated Vulnerability Repair (AVR) has predominantly focused on developing techniques that produce more effective patches. With the rise of generative AI (GenAI) models powering AVR tools, understanding how humans perceive AI-generated security patches becomes relevant, particularly how useful and trustworthy they are considered. This paper presents a controlled experiment involving 111 Master's students from three universities and 14 professionals from three companies working in software development and cybersecurity. The experiment highlights the factors and motivations that influence human acceptance of AI-generated security patches. Participants analyzed four real-world vulnerabilities, evaluated two plausible patches for each, selected the one they believed to be the most adequate fix, and explained their choice. The two patches were generated by two LLMs, namely GPT-4o and Claude 3.7 Sonnet, though the participants were not aware of their involvement. After each selection, participants were told that one of the two originated from a human, and given the opportunity to reconsider their choice and to motivate it. The results show that, beyond correctness, participants favor patches that clearly explain how the vulnerability was fixed, preserved the original functionality, and appeared easy to install. There were also signals of a provenance-based bias: a tendency to switch from the initially selected patch to the other attributed to a human, even though all patches originated from GenAI. This bias was even explicitly admitted by some participants. Participants who acknowledged patch provenance were also more likely to switch patches; nevertheless, most neglected this information altogether. The paper concludes with recommendations for AVR researchers and tool developers on how to leverage these findings.

cs.CR↗

Automated Exploit and Security Test Generation: A Systematic Literature Review

Static analysis techniques are often insufficient to determine whether a reported security vulnerability is exploitable and actually poses a real security risk to a software application. Dynamic analysis addresses this limitation by executing the target application with carefully crafted inputs that trigger or reproduce a given vulnerability. Over the past two decades, automatic exploit generation (AEG) and automatic security test generation (ASTG) have emerged as active research areas in cybersecurity and software engineering. This paper demystifies the field by establishing consistent terminology and presenting a systematic literature review (SLR) of research published in the last two decades. Starting from an initial set of 3,309 publications obtained from academic literature search engines, we selected and analyzed 71 papers comprising 67 distinct studies. We systematically compare existing AEG and ASTG approaches with respect to (i) the targeted software and vulnerability types, (ii) the generated artifacts, (iii) the underlying generation techniques and tools employed, (iv) the required inputs, (v) the evaluation methodologies, and (vi) implementation and tool availability.

cs.CR↗

LLMs for Qualitative Data Analysis Fail on Security-specificComments in Human Experiments

[Background:] Thematic analysis of free-text justifications in human experiments provides significant qualitative insights. Yet, it is costly because reliable annotations require multiple domain experts. Large language models (LLMs) seem ideal candidates to replace human annotators. [Problem:] Coding security-specific aspects (code identifiers mentioned, lines-of-code mentioned, security keywords mentioned) may require deeper contextual understanding than sentiment classification. [Objective:] Explore whether LLMs can act as automated annotators for technical security comments by human subjects. [Method:] We prompt four top-performing LLMs on LiveBench to detect nine security-relevant codes in free-text comments by human subjects analyzing vulnerable code snippets. Outputs are compared to human annotators using Cohen's Kappa (chance-corrected accuracy). We test different prompts mimicking annotation best practices, including emerging codes, detailed codebooks with examples, and conflicting examples. [Negative Results:] We observed marked improvements only when using detailed code descriptions; however, these improvements are not uniform across codes and are insufficient to reliably replace a human annotator. [Limitations:] Additional studies with more LLMs and annotation tasks are needed.

cs.SE↗

Repairing vulnerabilities without invisible hands. A differentiated replication study on LLMs

Background: Automated Vulnerability Repair (AVR) is a fast-growing branch of program repair. Recent studies show that large language models (LLMs) outperform traditional techniques, extending their success beyond code generation and fault detection. Hypothesis: These gains may be driven by hidden factors -- "invisible hands" such as training-data leakage or perfect fault localization -- that let an LLM reproduce human-authored fixes for the same code. Objective: We replicate prior AVR studies under controlled conditions by deliberately adding errors to the reported vulnerability location in the prompt. If LLMs merely regurgitate memorized fixes, both small and large localization errors should yield the same number of correct patches, because any offset should divert the model from the original fix. Method: Our pipeline repairs vulnerabilities from the Vul4J and VJTrans benchmarks after shifting the fault location by n lines from the ground truth. A first LLM generates a patch, a second LLM reviews it, and we validate the result with regression and proof-of-vulnerability tests. Finally, we manually audit a sample of patches and estimate the error rate with the Agresti-Coull-Wilson method.

cs.SE↗

Using ML filters to help automated vulnerability repairs: when it helps and when it doesn't

[Context:] The acceptance of candidate patches in automated program repair has been typically based on testing oracles. Testing requires typically a costly process of building the application while ML models can be used to quickly classify patches, thus allowing more candidate patches to be generated in a positive feedback loop. [Problem:] If the model predictions are unreliable (as in vulnerability detection) they can hardly replace the more reliable oracles based on testing. [New Idea:] We propose to use an ML model as a preliminary filter of candidate patches which is put in front of a traditional filter based on testing. [Preliminary Results:] We identify some theoretical bounds on the precision and recall of the ML algorithm that makes such operation meaningful in practice. With these bounds and the results published in the literature, we calculate how fast some of state-of-the art vulnerability detectors must be to be more effective over a traditional AVR pipeline such as APR4Vuln based just on testing.

cs.SE↗