• 中国精品科技期刊
  • CCF推荐A类中文期刊
  • 计算领域高质量科技期刊T1类
高级检索

基于代码属性图和Bi-GRU的软件脆弱性检测方法

肖添明, 管剑波, 蹇松雷, 任怡, 张建锋, 李宝

肖添明, 管剑波, 蹇松雷, 任怡, 张建锋, 李宝. 基于代码属性图和Bi-GRU的软件脆弱性检测方法[J]. 计算机研究与发展, 2021, 58(8): 1668-1685. DOI: 10.7544/issn1000-1239.2021.20210297
引用本文: 肖添明, 管剑波, 蹇松雷, 任怡, 张建锋, 李宝. 基于代码属性图和Bi-GRU的软件脆弱性检测方法[J]. 计算机研究与发展, 2021, 58(8): 1668-1685. DOI: 10.7544/issn1000-1239.2021.20210297
Xiao Tianming, Guan Jianbo, Jian Songlei, Ren Yi, Zhang Jianfeng, Li Bao. Software Vulnerability Detection Method Based on Code Property Graph and Bi-GRU[J]. Journal of Computer Research and Development, 2021, 58(8): 1668-1685. DOI: 10.7544/issn1000-1239.2021.20210297
Citation: Xiao Tianming, Guan Jianbo, Jian Songlei, Ren Yi, Zhang Jianfeng, Li Bao. Software Vulnerability Detection Method Based on Code Property Graph and Bi-GRU[J]. Journal of Computer Research and Development, 2021, 58(8): 1668-1685. DOI: 10.7544/issn1000-1239.2021.20210297
肖添明, 管剑波, 蹇松雷, 任怡, 张建锋, 李宝. 基于代码属性图和Bi-GRU的软件脆弱性检测方法[J]. 计算机研究与发展, 2021, 58(8): 1668-1685. CSTR: 32373.14.issn1000-1239.2021.20210297
引用本文: 肖添明, 管剑波, 蹇松雷, 任怡, 张建锋, 李宝. 基于代码属性图和Bi-GRU的软件脆弱性检测方法[J]. 计算机研究与发展, 2021, 58(8): 1668-1685. CSTR: 32373.14.issn1000-1239.2021.20210297
Xiao Tianming, Guan Jianbo, Jian Songlei, Ren Yi, Zhang Jianfeng, Li Bao. Software Vulnerability Detection Method Based on Code Property Graph and Bi-GRU[J]. Journal of Computer Research and Development, 2021, 58(8): 1668-1685. CSTR: 32373.14.issn1000-1239.2021.20210297
Citation: Xiao Tianming, Guan Jianbo, Jian Songlei, Ren Yi, Zhang Jianfeng, Li Bao. Software Vulnerability Detection Method Based on Code Property Graph and Bi-GRU[J]. Journal of Computer Research and Development, 2021, 58(8): 1668-1685. CSTR: 32373.14.issn1000-1239.2021.20210297

基于代码属性图和Bi-GRU的软件脆弱性检测方法

基金项目: 国家自然科学基金项目(61872444,U19A2060);国家重点研发计划项目(2018YFB0204301)
详细信息
  • 中图分类号: TP311

Software Vulnerability Detection Method Based on Code Property Graph and Bi-GRU

Funds: This work was supported by the National Natural Science Foundation of China (61872444, U19A2060) and the National Key Research and Development Program of China (2018YFB0204301).
  • 摘要: 现在软件规模越来越庞大和复杂,脆弱性形式也更趋向多样化,传统的脆弱性检测方法存在人工参与度高、对未知脆弱性检测能力弱的缺点,已无法满足对多样化脆弱性的检测要求.为了提高对未知脆弱性的检测效果,大量机器学习方法被应用到软件脆弱性检测领域.由于现有方法在代码表征过程中存在着较高的语法和语义信息的损失,导致误报率和漏报率较高.针对这一问题,提出了一种基于代码属性图和Bi-GRU的软件脆弱性检测方法.该方法通过从函数的代码属性图中提取出抽象语法树序列、控制流图序列作为函数表征的表征方式,减少代码表征过程中的信息的损失,并通过选取Bi-GRU来构建特征提取模型,提高对脆弱性代码的特征提取能力.实验结果表明,与以抽象语法树为表征方式的方法相比,该方法最大可提高35%的精确率和22%的召回率,可改善面向多个软件源代码混合的真实数据集的脆弱性检测效果,有效降低误报率和漏报率.
    Abstract: For large-scale and complex software nowadays, the forms of vulnerability code tend to be more diversified. Traditional vulnerability detection methods can not meet the requirements of diverse vulnerabilities because of their high degree of human participation and weak ability of unknown vulnerability detection. In order to improve the detection effect of unknown vulnerability, a large number of machine learning methods have been applied to the field of software vulnerability detection. Due to the high loss of syntax and semantic information in code representation, the false positive rate and false negative rate are high. To solve this issue, a software vulnerability detection method based on code property graph and Bi-GRU is proposed. This method extracts the abstract syntax tree sequence and the control flow graph sequence from the code property graph of the function as the representation method of the function representation. The representation method can reduce the loss of information in the code representation. At the same time, the method selects Bi-GRU to build feature extraction model. It can improve the feature extraction ability of vulnerability code. Experimental results show that, compared with the method represented by abstract syntax tree, this method can improve the accuracy and recall by 35% and 22%. It can improve the vulnerability detection effect of real data set for multiple software source code mixing, and effectively reduce the false positive rate and false negative rate.
  • 期刊类型引用(5)

    1. 谢朝武,黄锐. 目的地旅游安全事件集群:概念框架与测度体系研究. 旅游学刊. 2023(05): 42-57 . 百度学术
    2. 严定宇,张宇鹏,陆希玉,曹华平. 对网络空间安全建模的系统思考. 网络安全与数据治理. 2023(12): 34-40 . 百度学术
    3. 刘小虎,张恒巍,马军强,张玉臣,谭晶磊. 基于攻防博弈的网络防御决策方法研究综述. 网络与信息安全学报. 2022(01): 1-14 . 百度学术
    4. 杨轶杰,朱广劼,司群,杨文. 铁路网络空间可视化实现路径分析. 铁路计算机应用. 2021(11): 15-20 . 百度学术
    5. 刘小虎,张恒巍,张玉臣,胡浩,程建. 基于博弈论的网络攻防行为建模与态势演化分析. 电子与信息学报. 2021(12): 3629-3638 . 百度学术

    其他类型引用(3)

计量
  • 文章访问数:  765
  • HTML全文浏览量:  6
  • PDF下载量:  364
  • 被引次数: 8
出版历程
  • 发布日期:  2021-07-31

目录

    /

    返回文章
    返回