arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1708.02368cs.SE
收藏

用于脆弱性预测的自动特征学习

Automatic feature learning for vulnerability prediction

Hoa Khanh Dam, Truyen Tran, Trang Pham, Shien Wee Ng, John Grundy, Aditya Ghose

摘要:

代码缺陷或漏洞在软件系统中普遍存在,并可能导致各种问题,包括死锁、信息丢失或系统故障。已经开发了各种方法来尝试和检测大型代码库中此类代码漏洞的最可能位置。它们中的大多数依赖于手动设计代表代码特征的功能(例如复杂性度量或代码令牌的频率)。然而,所有这些都面临着充分捕获源代码的语义和语法表示的挑战,这是构建准确预测模型的重要能力。在本文中,我们描述了一种新的方法,建立在强大的深度学习长短期记忆模型之上,可以自动学习代码中的语义和语法特征。我们对18个Android应用程序的评估表明,从我们学习的功能中获得的预测能力等于甚至优于最先进的漏洞预测模型:项目内预测提高了3%-58%,跨项目预测提高了85%。

英文摘要:

Code flaws or vulnerabilities are prevalent in software systems and can potentially cause a variety of problems including deadlock, information loss, or system failure. A variety of approaches have been developed to try and detect the most likely locations of such code vulnerabilities in large code bases. Most of them rely on manually designing features (e.g. complexity metrics or frequencies of code tokens) that represent the characteristics of the code. However, all suffer from challenges in sufficiently capturing both semantic and syntactic representation of source code, an important capability for building accurate prediction models. In this paper, we describe a new approach, built upon the powerful deep learning Long Short Term Memory model, to automatically learn both semantic and syntactic features in code. Our evaluation on 18 Android applications demonstrates that the prediction power obtained from our learned features is equal or even superior to what is achieved by state of the art vulnerability prediction models: 3%--58% improvement for within-project prediction and 85% for cross-project prediction.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑