A Match Made in Heaven? AI-driven Matching of Vulnerabilities and Security Unit Tests
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 19 of its 67 references that are in the map. First posted on arXiv 5 Feb 2025.
Builds on
19 of 67 references.
References · 19
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,833
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2018Generalized Cross Entropy Loss for Training Deep Neural Networks with Noisy Labelscited by 994
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2020Evaluation: from precision, recall and F-measure to ROC, informedness, markedness and correlationcited by 420
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
- 2019TBar: Revisiting Template-based Automated Program Repaircited by 64
- 2020On the Generalizability of Neural Program Models with respect to Semantic-Preserving Program Transformationscited by 41
7 more
- 2024ReposVul: A Repository-Level High-Quality Vulnerability Datasetcited by 35
- 2021Automated Software Vulnerability Assessment with Concept Driftcited by 15
- 2021Flakify: A Black-Box, Language Model-based Predictor for Flaky Testscited by 11
- 2023Multi-Granularity Detector for Vulnerability Fixescited by 4
- 2023Exploiting Library Vulnerability via Migration Based Automating Test Generationcited by 3
- 2018Automatic Web Security Unit Testing: XSS Vulnerability Detectioncited by 1
- 2023PPT4J: Patch Presence Test for Java Binariescited by 1
Built on by
Not cited yet.