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.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
左右发布了新的文献求助10
3秒前
4秒前
4秒前
郭郭9706发布了新的文献求助10
4秒前
5秒前
粗犷的萧发布了新的文献求助30
5秒前
6秒前
6秒前
8秒前
10秒前
11秒前
江江江11完成签到,获得积分10
12秒前
南风发布了新的文献求助30
12秒前
圈圈发布了新的文献求助10
12秒前
妹妹发布了新的文献求助10
13秒前
噜噜晓发布了新的文献求助20
13秒前
冰魂应助ying采纳,获得150
15秒前
16秒前
18秒前
xinghong完成签到,获得积分10
19秒前
量子星尘发布了新的文献求助10
21秒前
领导范儿应助优秀的傲南采纳,获得30
22秒前
22秒前
aaabbb发布了新的文献求助10
22秒前
郭郭9706完成签到,获得积分20
23秒前
南风吹梦完成签到,获得积分10
24秒前
28秒前
coolkid应助圈圈采纳,获得10
29秒前
30秒前
30秒前
万能图书馆应助boging采纳,获得10
33秒前
安白发布了新的文献求助10
33秒前
33秒前
33秒前
粗犷的萧完成签到,获得积分20
34秒前
上官若男应助tom采纳,获得10
35秒前
亭树完成签到,获得积分10
36秒前
Moira完成签到,获得积分10
38秒前
量子星尘发布了新的文献求助10
39秒前
阿卓卓宇宙最可爱完成签到,获得积分10
39秒前
高分求助中
【提示信息,请勿应助】请使用合适的网盘上传文件 10000
The Oxford Encyclopedia of the History of Modern Psychology 1500
Green Star Japan: Esperanto and the International Language Question, 1880–1945 800
Sentimental Republic: Chinese Intellectuals and the Maoist Past 800
The Martian climate revisited: atmosphere and environment of a desert planet 800
Parametric Random Vibration 800
Semiconductor devices : pioneering papers 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 物理 生物化学 纳米技术 计算机科学 化学工程 内科学 复合材料 物理化学 电极 遗传学 量子力学 基因 冶金 催化作用
热门帖子
关注 科研通微信公众号,转发送积分 3862100
求助须知:如何正确求助?哪些是违规求助? 3404638
关于积分的说明 10640650
捐赠科研通 3127815
什么是DOI,文献DOI怎么找? 1724916
邀请新用户注册赠送积分活动 830758
科研通“疑难数据库(出版商)”最低求助积分说明 779413