arrow
Return

Cross-Project Transfer Representation Learning for Vulnerable Function Discovery

delete2018-07-01
delete157
PRE
AI
G
Guanjun Lin
J
Jun Zhang *
罗玮 cover
罗玮 (Wei Luo)
L
Lei Pan
向
向阳 (Yang Xiang)
O
Olivier De Vel
P
Paul Montague
DOI:10.1109/TII.2018.2821768delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Machine learning is now widely used to detect security vulnerabilities in the software, even before the software is released. But its potential is often severely compromised at the early stage of a software project when we face a shortage of high-quality training data and have to rely on overly generic hand-crafted features. This paper addresses this cold-start problem of machine learning, by learning rich features that generalize across similar projects. To reach an optimal balance between feature-richness and generalizability, we devise a data-driven method including the following innovative ideas. First, the code semantics are revealed through serialized abstract syntax trees (ASTs), with tokens encoded by Continuous Bag-of-Words neural embeddings. Next, the serialized ASTs are fed to a sequential deep learning classifier (Bi-LSTM) to obtain a representation indicative of software vulnerability. Finally, the neural representation obtained from existing software projects is then transferred to the new project to enable early vulnerability detection even with a small set of training labels. To validate this vulnerability detection approach, we manually labeled 457 vulnerable functions and collected 30 000+ nonvulnerable functions from six open-source projects. The empirical results confirmed that the trained model is capable of generating representations that are indicative of program vulnerability and is adaptable across multiple projects. Compared with the traditional code metrics, our transfer-learned representations are more effective for predicting vulnerable functions, both within a project and across multiple projects.
Keywords:
Abstract syntax tree
cross-project
representation learning
transfer learning
vulnerability discovery
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

IEEE Transactions on Industrial Informatics cover
IEEE Transactions on Industrial Informatics
IF:
9.9
Papers:
8.6K
Citations:
6.0W

Organization

D
defence science & technology
Scholars:
896
Papers: 938
Citations: 0
S
Swinburne University of Technology
Scholars:
9.3K
Papers: 1.2W
Citations: 2.0W
D
Deakin University
Scholars:
2.0W
Papers: 2.1W
Citations: 2.8W
researcher View more organizations
Cited Papers

Cited Papers

Supercurrent in a Double Quantum Dot
err2018-12-20
err0
errOAAI
errJ. C. Estrada Saldaña; A. Vekris; G. Steffensen; R. Žitko; P. Krogstrup; J. Paaske; K. Grove-Rasmussen; J. Nygård
errShare
errSave
errShare
errSave
errShare
errSave
Production of reactive oxygen species from abraded silicates. Implications for the reactivity of the Martian soil
err2017-09-01
err0
PREAI
errEbbe N. Bak; Kaloyan Zafirov; Jonathan P. Merrison; Svend J. Knak Jensen; Per Nørnberg; Haraldur P. Gunnlaugsson; Kai Finster
errShare
errSave
researcher View more