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
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
Lyric完成签到,获得积分10
2秒前
CipherSage应助儒雅的夏山采纳,获得10
2秒前
酷波er应助健壮的语雪采纳,获得10
3秒前
老狗完成签到 ,获得积分10
3秒前
Final发布了新的文献求助10
5秒前
shuiliuyuzai完成签到,获得积分10
6秒前
6秒前
6秒前
bkagyin应助hahahaweiwei采纳,获得10
7秒前
大1完成签到,获得积分10
8秒前
小王完成签到 ,获得积分10
8秒前
10秒前
10秒前
我先睡了发布了新的文献求助10
11秒前
ZH发布了新的文献求助10
11秒前
Final完成签到,获得积分20
12秒前
ilk666完成签到,获得积分10
13秒前
赵十一完成签到,获得积分10
13秒前
Ava应助nki采纳,获得10
13秒前
14秒前
14秒前
15秒前
15秒前
shdfio发布了新的文献求助10
15秒前
16秒前
xiaohu发布了新的文献求助10
16秒前
汉堡包应助lllttt采纳,获得10
17秒前
求你做我的狗完成签到,获得积分20
18秒前
欣慰外套完成签到 ,获得积分10
18秒前
18秒前
18秒前
19秒前
挑片岛屿发布了新的文献求助200
19秒前
20秒前
我先睡了完成签到,获得积分10
20秒前
hvivi6发布了新的文献求助10
21秒前
摸摸桑发布了新的文献求助10
21秒前
22秒前
wanci应助Trends采纳,获得10
22秒前
高分求助中
A new approach to the extrapolation of accelerated life test data 1000
Cognitive Neuroscience: The Biology of the Mind 1000
Technical Brochure TB 814: LPIT applications in HV gas insulated switchgear 1000
Immigrant Incorporation in East Asian Democracies 600
Nucleophilic substitution in azasydnone-modified dinitroanisoles 500
不知道标题是什么 500
A Preliminary Study on Correlation Between Independent Components of Facial Thermal Images and Subjective Assessment of Chronic Stress 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 冶金 细胞生物学 免疫学
热门帖子
关注 科研通微信公众号,转发送积分 3966742
求助须知:如何正确求助?哪些是违规求助? 3512237
关于积分的说明 11162366
捐赠科研通 3247107
什么是DOI,文献DOI怎么找? 1793690
邀请新用户注册赠送积分活动 874549
科研通“疑难数据库(出版商)”最低求助积分说明 804432