Enhancing vulnerability detection via AST decomposition and neural sub-tree encoding

计算机科学 脆弱性(计算) 树(集合论) 编码(内存) 数据挖掘 人工智能 计算机安全 数学分析 数学
作者
Zhenzhou Tian,Binhui Tian,Jiajun Lv,Yanping Chen,Lingwei Chen
出处
期刊:Expert Systems With Applications [Elsevier]
卷期号:238: 121865-121865 被引量:25
标识
DOI:10.1016/j.eswa.2023.121865
摘要

The explosive growth of software vulnerabilities poses a serious threat to the system security and has become one of the urgent problems of the day. However, existing vulnerability detection methods are still faced with limitations in reaching the balance between detection accuracy, efficiency and applicability. Following a divide-and-conquer strategy, this paper proposes TrVD (abstract syntax Tree decomposition based Vulnerability Detector) to disclose the indicative semantics implied in the source code fragments for accurate and efficient vulnerability detection. To facilitate the capture of subtle semantic features, TrVD converts the AST of a code fragment into an ordered set of sub-trees of restricted sizes and depths with a novel decomposition algorithm. The semantics of each sub-tree can thus be effectively collected with a carefully designed tree-structured neural network. Finally, a Transformer-style encoder is utilized to aggregate the long-range contextual semantics of all sub-trees into a vulnerability-specific vector to represent the target code fragment. The extensive experiments conducted on five large datasets consisting of diverse real-world and synthetic vulnerable samples demonstrate the performance superiority of TrVD against SOTA approaches in detecting the presence of vulnerabilities and pinpointing the vulnerability types. The ablation studies also confirm the effectiveness of TrVD's core designs.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
1秒前
飞快的逊发布了新的文献求助10
1秒前
1秒前
科研通AI6应助overu采纳,获得10
2秒前
李健的小迷弟应助常青叶采纳,获得10
3秒前
Ing完成签到,获得积分10
3秒前
4秒前
beejimmy完成签到,获得积分20
4秒前
curry完成签到 ,获得积分20
5秒前
斯文莺完成签到,获得积分10
5秒前
科研通AI6应助善良茗茗采纳,获得10
5秒前
6秒前
筱敏完成签到,获得积分10
7秒前
qinyi发布了新的文献求助10
7秒前
7秒前
7秒前
刘月茹完成签到,获得积分10
7秒前
熬夜波比应助rui采纳,获得10
7秒前
7秒前
7秒前
8秒前
狂野萤应助潇洒台灯采纳,获得10
8秒前
科研通AI6应助星空0427采纳,获得80
8秒前
上官若男应助huangtao采纳,获得10
8秒前
结实天荷发布了新的文献求助10
9秒前
hzs完成签到,获得积分10
9秒前
10秒前
10秒前
11秒前
孟辰凡发布了新的文献求助30
11秒前
能干的尔竹完成签到,获得积分20
11秒前
SZH发布了新的文献求助30
12秒前
QY发布了新的文献求助20
12秒前
我爱物理发布了新的文献求助10
12秒前
13秒前
13秒前
13秒前
baibaili发布了新的文献求助10
14秒前
96121abc完成签到,获得积分10
14秒前
奋斗战斗机完成签到,获得积分10
15秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Binary Alloy Phase Diagrams, 2nd Edition 8000
Comprehensive Methanol Science Production, Applications, and Emerging Technologies 2000
Building Quantum Computers 800
Translanguaging in Action in English-Medium Classrooms: A Resource Book for Teachers 700
二氧化碳加氢催化剂——结构设计与反应机制研究 660
碳中和关键技术丛书--二氧化碳加氢 600
热门求助领域 (近24小时)
化学 材料科学 生物 医学 工程类 计算机科学 有机化学 物理 生物化学 纳米技术 复合材料 内科学 化学工程 人工智能 催化作用 遗传学 数学 基因 量子力学 物理化学
热门帖子
关注 科研通微信公众号,转发送积分 5660477
求助须知:如何正确求助?哪些是违规求助? 4834050
关于积分的说明 15090734
捐赠科研通 4819078
什么是DOI,文献DOI怎么找? 2579049
邀请新用户注册赠送积分活动 1533576
关于科研通互助平台的介绍 1492330