VFDETECT: A vulnerable code clone detection system based on vulnerability fingerprint
Authors:
- 1 October 2017
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 548-553
Abstract
Vulnerable code reuse in open source software is a serious threat to software security. However, the existing high-efficiency methods for vulnerable code clone detection have a large number of false-negatives when the code is modified, which results in limited application scenarios. In this paper, we present an innovative fingerprint model to describe the vulnerability code and propose VFDETECT, an efficient system to detect vulnerable code clones based on the fingerprints. Firstly, the fingerprint is constructed by applying hash function to appropriate code blocks in the diff which are preprocessed. Then, VFDETECT detects the vulnerable code clone by matching the preprocessed code blocks in target project with the fingerprint, which is mapped to a bitmap so that can be identified efficiently. VFDETECT could maintain better performance and acquire higher robustness under multiple code modification methods such as variable renaming, code sequence changing and redundancy inserting, which is difficult to achieve in existing research work. Our results in real-world datasets detection demonstrate that it is of practical values.Keywords
This publication has 9 references indexed in Scilit:
- VUDDY: A Scalable Approach for Vulnerable Code Clone Discovery2017
- VulPecker2016
- Discovering Vulnerable Functions: A Code Similarity Based Approach2016
- SourcererCC2016
- VCCFinder2015
- Automatic Inference of Search Patterns for Taint-Style Vulnerabilities2015
- ReDeBug: Finding Unpatched Code Clones in Entire OS Distributions2012
- Comparison and evaluation of code clone detection techniques and tools: A qualitative approachScience of Computer Programming, 2009
- CP-Miner: finding copy-paste and related bugs in large-scale software codeIEEE Transactions on Software Engineering, 2006