LEOPARD: Identifying Vulnerable Code for Vulnerability Assessment through Program Metrics
Not on the map. Why?
Abstract (arXiv)
Identifying potentially vulnerable locations in a code base is critical as a pre-step for effective vulnerability assessment; i.e., it can greatly help security experts put their time and effort to where it is needed most. Metric-based and pattern-based methods have been presented for identifying vulnerable code. The former relies on machine learning and cannot work well due to the severe imbalance between non-vulnerable and vulnerable code or lack of features to characterize vulnerabilities. The latter needs the prior knowledge of known vulnerabilities and can only identify similar but not new types of vulnerabilities. In this paper, we propose and implement a generic, lightweight and extensible framework, LEOPARD, to identify potentially vulnerable functions through program metrics. LEOPARD requires no prior knowledge about known vulnerabilities. It has two steps by combining two sets of systematically derived metrics. First, it uses complexity metrics to group the functions in a target application into a set of bins. Then, it uses vulnerability metrics to rank the functions in each bin and identifies the top ones as potentially vulnerable. Our experimental results on 11 real-world projects have demonstrated that, LEOPARD can cover 74.0% of vulnerable functions by identifying 20% of functions as vulnerable and outperform machine learning-based and static analysis-based techniques. We further propose three applications of LEOPARD for manual code review and fuzzing, through which we discovered 22 new bugs in real applications like PHP, radare2 and FFmpeg, and eight of them are new vulnerabilities.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). First posted on arXiv 31 Jan 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 3; 2023: 0; 2024: 3; 2025: 2.
10 papers.
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 24
- 2021VELVET: a noVel Ensemble Learning approach to automatically locate VulnErable sTatementscited by 20
- 2022Dataflow Analysis-Inspired Deep Learning for Efficient Vulnerability Detectioncited by 19
- 2024Use of Graph Neural Networks in Aiding Defensive Cyber Operationscited by 7
- 2022Learning Program Semantics with Code Representations: An Empirical Studycited by 6
- 2024Harnessing the Power of LLMs in Source Code Vulnerability Detectioncited by 6
- 2024AI for DevSecOps: A Landscape and Future Opportunitiescited by 4
- 2025LLM-based Vulnerability Discovery through the Lens of Code Metricscited by 4
- 2022A Hierarchical Deep Neural Network for Detecting Lines of Codes with Vulnerabilitiescited by 2
- 2025Resource-Efficient Automatic Software Vulnerability Assessment via Knowledge Distillation and Particle Swarm Optimizationcited by 0
- 2025LLM-based Vulnerability Discovery through the Lens of Code Metrics23 Sep 2025
- 2025Resource-Efficient Automatic Software Vulnerability Assessment via Knowledge Distillation and Particle Swarm Optimization30 Jul 2025
- 2024Harnessing the Power of LLMs in Source Code Vulnerability Detection7 Aug 2024
- 2024AI for DevSecOps: A Landscape and Future Opportunities7 Apr 2024
- 2024Use of Graph Neural Networks in Aiding Defensive Cyber Operations11 Jan 2024
- 2022Dataflow Analysis-Inspired Deep Learning for Efficient Vulnerability Detection15 Dec 2022
- 2022A Hierarchical Deep Neural Network for Detecting Lines of Codes with Vulnerabilities15 Nov 2022
- 2022Learning Program Semantics with Code Representations: An Empirical Study22 Mar 2022
- 2021VELVET: a noVel Ensemble Learning approach to automatically locate VulnErable sTatements20 Dec 2021
- 2021A Survey on Machine Learning Techniques for Source Code Analysis18 Oct 2021