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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
充电宝的应助被吃花采纳,获得20
刚刚
怡然冰颜完成签到 ,获得积分10
刚刚
orixero的应助被xun采纳,获得10
刚刚
称心青亦发布了新的文献求助10
刚刚
罗杰发布了新的文献求助10
刚刚
柠檬气泡水完成签到,获得积分10
1秒前
黑米粥发布了新的文献求助200
1秒前
wang5945发布了新的文献求助10
1秒前
duckduck完成签到,获得积分10
1秒前
研招完成签到,获得积分10
1秒前
1秒前
KH关注了科研通微信公众号
2秒前
小钟小钟发布了新的文献求助10
2秒前
2秒前
小天狼星发布了新的文献求助10
2秒前
爆米花的应助被YTttt_采纳,获得10
3秒前
It发布了新的文献求助10
3秒前
失眠凡英发布了新的文献求助10
3秒前
3秒前
卞小强发布了新的文献求助10
4秒前
明镜发布了新的文献求助10
4秒前
gj发布了新的文献求助10
4秒前
罗杰发布了新的文献求助10
4秒前
罗杰发布了新的文献求助10
4秒前
罗杰发布了新的文献求助10
5秒前
小毛线发布了新的文献求助10
5秒前
5秒前
Jasper的应助被好久不见采纳,获得10
5秒前
积极牛青完成签到,获得积分10
6秒前
大气依云完成签到,获得积分20
6秒前
Y2024完成签到,获得积分10
6秒前
le发布了新的文献求助20
6秒前
Hui发布了新的文献求助10
6秒前
罗杰发布了新的文献求助10
7秒前
7秒前
8秒前
怡然冰颜关注了科研通微信公众号
8秒前
8秒前
8秒前
罗杰发布了新的文献求助10
8秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
拉伸高分子熔体中缠结行为的模拟和小角中子散射研究 1500
John McDowells Bildungstheorie 800
八旗制度の研究 600
Analyses de reconnaissances de dettes passées devant les échevins d'Ypres (1249-1291) 600
Monte Cassino in the Middle Ages Volume I 310
JUSTIFICATION OF SMALL-SCALE MODELS: AN INDUSTRY PERSPECTIVE 300
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8157304
求助须知:如何正确求助?哪些是违规求助? 9553290
关于积分的说明 21713683
捐赠科研通 7746409
什么是DOI,文献DOI怎么找? 3426733
关于科研通互助平台的介绍 2551498
邀请新用户注册赠送积分活动 2470679