arrow
返回

ExploitGen: Template-augmented exploit code generation based on CodeBERT

ExploitGen: 基于CodeBERT的模板增强漏洞代码生成

delete2023-03-01
delete31
PRE
AI
G
Guang Yang
周
周宇 (Yu Zhou) *
陈翔 封面图
陈翔 (Xiang Chen)
X
Xiangyu Zhang
T
Tingting Han
T
Taolue Chen *
DOI:10.1016/j.jss.2022.111577delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
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.(c) 2022 Elsevier Inc. All rights reserved.
Keyword:
Exploit code
Code generation
Template parser
CodeBERT
Neural network
GPTSniffer: A CodeBERT-based classifier to detect source code written by ChatGPTGPTSniffer: 一种基于CodeBERT的分类器,用于检测ChatGPT编写的源代码
err2024-08-01
err7
errOAAI
errNguyen, Phuong T.; Di Rocco, Juri; Di Sipio, Claudio; Rubei, Riccardo; Di Ruscio, Davide; Di Penta, Massimiliano
err分享
err收藏
Vulnerability Positioner (VulP): enhancing code vulnerability localization with CodeBERT
err2026-01-08
err0
PREAI
errXuejun Zhang; Zhuo Chen; Fenghe Zhang; Shuqin Xu; Xiaohong Jia
err分享
err收藏
Template-based AADL automatic code generation
err2019-06-18
err13
PREAI
errHu, Kai; Duan, Zhangbo; Wang, Jiye; Ga, Lingchao; Shang, Lihong
err分享
err收藏
Out of the BLEU: How should we assess quality of the Code Generation models?
err2023-09-01
err32
PREAI
errEvtikhiev, Mikhail; Bogomolov, Egor; Sokolov, Yaroslav; Bryksin, Timofey
err分享
err收藏

期刊

Journal of Systems and Software 封面图
Journal of Systems and Software
IF:
4.1
论文数:
5.5K
被引数:
1.0W

机构

南通大学 封面图
南通大学
学者数:
2.1K
论文数: 587
被引数: 7.3K
B
Birkbeck University London
学者数:
1.8K
论文数: 1.4K
被引数: 2.1K
U
University of London
学者数:
1.7K
论文数: 763
被引数: 14.7W
学者 查看更多机构
引用论文

引用论文

SCALING WITH KNOWN UNCERTAINTY: A SYNTHESIS
err2006-01-01
err0
PREAI
errJIANGUO WU; HARBIN LI; K. BRUCE JONES; ORIE L. LOUCKS
err分享
err收藏
Caveolin-1 and -2 regulate cell motility in castration-resistant prostate cancer
err2018-10-01
err0
errOAAI
errToyoharu Kamibeppu; Koji Yamasaki; Kozue Nakahara; Takahiro Nagai; Naoki Terada; Hiromasa Tsukino; Shoichiro Mukai; Toshiyuki Kamoto
err分享
err收藏
Poorer self-rated health in residential areas with limited healthcare supply
err2014-02-12
err0
PREAI
errSigríður Haraldsdóttir; Unnur A Valdimarsdóttir; Sigurður Guðmundsson
err分享
err收藏
On the Naturalness of Software论软件的自然性
err2016-04-26
err164
PREAI
errHindle, Abram; Barr, Earl T.; Gabel, Mark; Su, Zhendong; Devanbu, Premkumar
err分享
err收藏
Comprehensive cellular‐resolution atlas of the adult human brain
err2016-12-05
err0
errOAAI
errSong‐Lin Ding; Joshua J. Royall; Susan M. Sunkin; Lydia Ng; Benjamin A.C. Facer; Phil Lesnar; Angie Guillozet‐Bongaarts; Bergen McMurray; Aaron Szafer; Tim A. Dolbeare; Allison Stevens; Lee Tirrell; Thomas Benner; Shiella Caldejon; Rachel A. Dalley; Nick Dee; Christopher Lau; Julie Nyhus; Melissa Reding; Zackery L. Riley; David Sandman; Elaine Shen; Andre van der Kouwe; Ani Varjabedian; Michelle Write; Lilla Zollei; Chinh Dang; James A. Knowles; Christof Koch; John W. Phillips; Nenad Sestan; Paul Wohnoutka; H. Ronald Zielke; John G. Hohmann; Allan R. Jones; Amy Bernard; Michael J. Hawrylycz; Patrick R. Hof; Bruce Fischl; Ed S. LeinReference
err分享
err收藏
学者 查看更多内容