arXiv Science⌕ Search

arXiv subjects

Emanuele Iannone

Publications and source records attributed to Emanuele Iannone.

4 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↗

The Language of Security: How Prompt Syntax Shapes Secure Code Generation in Open LLMs

Large Language Models (LLMs) are increasingly used for source code generation despite their outputs often exhibiting security vulnerabilities. Prior work shows that prompt engineering can mitigate such risks, yet (1) they focused on high-level prompting strategies, neglecting recent evidence that fine-grained syntactic variations can substantially alter model behavior; and (2) predominantly evaluate proprietary LLMs, limiting the applicability of their findings in industrial settings where self-hosted, open models are preferred for privacy, compliance, and deployment control. In this paper, we study how fine-grained syntactic constituents of prompts influence the security of open LLM-generated code. Using a parser-driven approach, we systematically generate syntactic variants of security-relevant code generation prompts and evaluate their impact on code security across multiple open LLMs and programming languages. Our results show that specific syntactic elements, such as constraints, guards, conditions, and concept bindings, and their position within the prompt consistently affect the likelihood of generating insecure code. These findings identify prompt syntax as a concrete security control surface and provide actionable guidance for reducing vulnerability risk in LLM-assisted development.

cs.CR↗

A Match Made in Heaven? AI-driven Matching of Vulnerabilities and Security Unit Tests

Software vulnerabilities are often detected via taint analysis, penetration testing, or fuzzing. They are also found via unit tests that exercise security-sensitive behavior with specific inputs, called vulnerability-witnessing tests. Generative AI models could help developers in writing them, but they require many examples to learn from, which are currently scarce. This paper introduces VuTeCo, an AI-driven framework for collecting examples of vulnerability-witnessing tests from Java repositories. VuTeCo carries out two tasks: (1) The "Finding" task to determine whether a unit test case is security-related, and (2) the "Matching" task to relate a test case to the vulnerability it witnesses. VuTeCo addresses the Finding task with UniXcoder, achieving an F0.5 score of 0.73 and a precision of 0.83 on a test set of unit tests from Vul4J. The Matching task is addressed using DeepSeek Coder, achieving an F0.5 score of 0.65 and a precision of 0.75 on a test set of pairs of unit tests and vulnerabilities from Vul4J. VuTeCo has been used in the wild on 427 Java projects and 1,238 vulnerabilities, obtaining 224 test cases confirmed to be security-related and 35 tests correctly matched to 29 vulnerabilities. The validated tests were collected in a new dataset called Test4Vul. VuTeCo lays the foundation for large-scale retrieval of vulnerability-witnessing tests, enabling future AI models to better understand and generate security unit tests.

cs.SE↗