ExploitGen: Template-augmented exploit code generation based on CodeBERT

利用 计算机科学 编码(集合论) 程序设计语言 计算机安全 集合(抽象数据类型)
作者
Guang Yang,Yu Zhou,Xiang Chen,Xiangyu Zhang,Tingting Han,Taolue Chen
出处
期刊:Journal of Systems and Software [Elsevier BV]
卷期号:197: 111577-111577 被引量:37
标识
DOI:10.1016/j.jss.2022.111577
摘要

Exploit code is widely used for detecting vulnerabilities and implementing defensive measures. However, automatic generation of exploit code for security assessment is a challenging task. In this paper, we propose a novel template-augmented exploit code generation approach ExploitGen based on CodeBERT. Specifically, we first propose a rule-based Template Parser to generate template-augmented natural language descriptions (NL). Both the raw and template-augmented NL sequences are encoded to context vectors by the respective encoders. For better learning semantic information, ExploitGen incorporates a semantic attention layer, which uses the attention mechanism to extract and calculate each layer’s representational information. In addition, ExploitGen computes the interaction information between the template information and the semantics of the raw NL and designs a residual connection to append the template information into the semantics of the raw NL. Comprehensive experiments on two datasets show the effectiveness of ExploitGen after comparison with six state-of-the-art baselines. Apart from the automatic evaluation, we conduct a human study to evaluate the quality of generated code in terms of syntactic and semantic correctness. The results also confirm the effectiveness of ExploitGen.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
1秒前
aaaa应助op06d采纳,获得30
1秒前
花满城关注了科研通微信公众号
1秒前
小熊饼干完成签到,获得积分10
2秒前
2秒前
过时的白安关注了科研通微信公众号
3秒前
英俊的铭应助上杉绘梨衣采纳,获得10
3秒前
jrz完成签到,获得积分20
4秒前
完美世界应助pyy采纳,获得10
4秒前
Jackson333完成签到,获得积分10
5秒前
ihenauly给ihenauly的求助进行了留言
5秒前
宴究生完成签到,获得积分10
5秒前
5秒前
秋夜白完成签到,获得积分10
5秒前
扭扭发布了新的文献求助10
5秒前
晓晓发布了新的文献求助10
6秒前
研友_nVNBVn完成签到,获得积分10
6秒前
吃吃睡睡完成签到,获得积分10
6秒前
7秒前
可乐完成签到 ,获得积分10
7秒前
7秒前
荔枝味完成签到 ,获得积分10
7秒前
7秒前
淡淡东蒽发布了新的文献求助10
7秒前
mendicant完成签到,获得积分10
7秒前
66完成签到,获得积分10
8秒前
8秒前
8秒前
所所应助abys采纳,获得10
8秒前
鄢浩凝发布了新的文献求助30
9秒前
是龙龙呀完成签到,获得积分10
9秒前
9秒前
hyxxx发布了新的文献求助10
10秒前
10秒前
10秒前
轻松翰完成签到,获得积分10
10秒前
10秒前
10秒前
斯文败类应助小白采纳,获得10
11秒前
科研通AI6.4应助karei采纳,获得10
11秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Essentials of Carbohydrate Chemistry and Biochemistry, 4th Edition 800
Organizational Behavior 510
Management and the Arts 510
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
CLSI VET01S-2024 Performance Standards for Antimicrobial Disk and Dilution Susceptibility Tests for Bacteria Isolated From Animals (7th Ed) 500
A Case Study on Hotels as Noncongregate Emergency Living Accommodations for Returning Citizens 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 化学工程 工程类 有机化学 物理 复合材料 生物化学 内科学 细胞生物学 基因 遗传学 免疫学 冶金 光电子学 癌症研究
热门帖子
关注 科研通微信公众号,转发送积分 7764575
求助须知:如何正确求助?哪些是违规求助? 9308727
关于积分的说明 20307911
捐赠科研通 7349263
什么是DOI,文献DOI怎么找? 3314437
关于科研通互助平台的介绍 2463919
邀请新用户注册赠送积分活动 2328642