Deep Domain Adaptation for Vulnerable Code Function Identification
- 1 July 2019
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-8
Abstract
Due to the ubiquity of computer software, software vulnerability detection (SVD) has become crucial in the software industry and in the field of computer security. Two significant issues in SVD arise when using machine learning, namely: i) how to learn automatic features that can help improve the predictive performance of vulnerability detection and ii) how to overcome the scarcity of labeled vulnerabilities in projects that require the laborious labeling of code by software security experts. In this paper, we address these two crucial concerns by proposing a novel architecture which leverages deep domain adaptation with automatic feature learning for software vulnerability identification. Based on this architecture, we keep the principles and reapply the state-of-the-art deep domain adaptation methods to indicate that deep domain adaptation for SVD is plausible and promising. Moreover, we further propose a novel method named Semi-supervised Code Domain Adaptation Network (SCDAN) that can efficiently utilize and exploit information carried in unlabeled target data by considering them as the unlabeled portion in a semi-supervised learning context. The proposed SCDAN method enforces the clustering assumption, which is a key principle in semi-supervised learning. The experimental results using six real-world software project datasets show that our SCDAN method and the baselines using our architecture have better predictive performance by a wide margin compared with the Deep Code Network (VulDeePecker) method without domain adaptation. Also, the proposed SCDAN significantly outperforms the DIRT-T which to the best of our knowledge is currently the-state-of-the-art method in deep domain adaptation and other baselines.Keywords
This publication has 16 references indexed in Scilit:
- Toward Large-Scale Vulnerability Discovery using Machine Learning2016
- Simultaneous Deep Transfer Across Domains and Tasks2015
- Semi-supervised Domain Adaptation with Subspace Learning for visual recognition2015
- Domain adaptation for object recognition: An unsupervised approach2011
- Cross-project defect prediction2009
- Introduction to Semi-Supervised LearningSynthesis Lectures on Artificial Intelligence and Machine Learning, 2009
- Predicting vulnerable software components2007
- Integrating structured biological data by Kernel Maximum Mean DiscrepancyBioinformatics, 2006
- Random ForestsMachine Learning, 2001
- Support-vector networksMachine Learning, 1995