arrow
返回

SeqTrans: Automatic Vulnerability Fix Via Sequence to Sequence Learning

delete2023-02-01
delete21
delete
OA
AI
J
Jianlei Chi *
Y
Yu Qu
刘烃 封面图
刘烃 (Ting Liu)
Q
Qinghua Zheng
H
Heng Yin
DOI:10.1109/TSE.2022.3156637delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
Software vulnerabilities are now reported unprecedentedly due to the recent development of automated vulnerability hunting tools. However, fixing vulnerabilities still mainly depends on programmers' manual efforts. Developers need to deeply understand the vulnerability and affect the system's functions as little as possible. In this paper, with the advancement of Neural Machine Translation (NMT) techniques, we provide a novel approach called SeqTrans to exploit historical vulnerability fixes to provide suggestions and automatically fix the source code. To capture the contextual information around the vulnerable code, we propose to leverage data-flow dependencies to construct code sequences and feed them into the state-of-the-art transformer model. The fine-tuning strategy has been introduced to overcome the small sample size problem. We evaluate SeqTrans on a dataset containing 1,282 commits that fix 624 CVEs in 205 Java projects. Results show that the accuracy of SeqTrans outperforms the latest techniques and achieves 23.3% in statement-level fix and 25.3% in CVE-level fix. In the meantime, we look deep inside the result and observe that the NMT model performs very well in certain kinds of vulnerabilities like CWE-287 (Improper Authentication) and CWE-863 (Incorrect Authorization).
Keyword:
Maintenance engineering
Codes
Computer bugs
Predictive models
Transformers
Decoding
Training
Machine learning
neural machine translation
software engineering
vulnerability fix

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.9K
被引数:
1.1W

机构

X
xi'an jiaotong university
学者数:
9.3W
论文数: 6.7W
被引数: 75
University of California System 封面图
University of California System
学者数:
37.7W
论文数: 33.8W
被引数: 6.6K
引用论文

引用论文

Astronomical Time Series Data Analysis Leveraging Science Cloud
err2012-01-01
err0
PREAI
errJaegyoon Hahm; Oh-Kyoung Kwon; Sangwan Kim; Yong-Hwan Jung; Joon-Weon Yoon; Joo Hyun Kim; Mi-Kyoung Kim; Yong-Ik Byun; Min-Su Shin; Chanyeol Park
err分享
err收藏
Economic injury levels for the potato yellow vein disease and its vector, Trialeurodes vaporariorum (Hemiptera: Aleyrodidae), affecting potato crops in the Andes
err2019-05-01
err0
PREAI
errDiego F. Rincon; Diego F. Vasquez; Hugo Fernando Rivera-Trujillo; Carlos Beltrán; Felipe Borrero-Echeverry
err分享
err收藏
miR393 and miR164 influence indeterminate but not determinate nodule development
err2014-10-31
err0
errOAAI
errGuohang Mao; Marie Turner; Oliver Yu; Senthil Subramanian
err分享
err收藏
Cysteine Dioxygenase 1 Is a Tumor Suppressor Gene Silenced by Promoter Methylation in Multiple Human Cancers半胱氨酸双加氧酶1是一种在多种人类癌症中被启动子甲基化沉默的抑癌基因
err2012-09-27
err0
errOAAI
errMariana Brait; Shizhang Ling; Jatin K. Nagpal; Xiaofei Chang; Hannah Lui Park; Juna Lee; Jun Okamura; Keishi Yamashita; David Sidransky; Myoung Sook Kim
err分享
err收藏
err分享
err收藏
err分享
err收藏
Chapter Twenty‐Eight Qualitative and Quantitative Characterization of Autophagy in Caenorhabditis elegans by Electron Microscopy
err2008-01-01
err0
PREAI
errTimea Sigmond; Judit Fehér; Attila Baksa; Gabriella Pásti; Zsolt Pálfia; Krisztina Takács‐Vellai; János Kovács; Tibor Vellai; Attila L. Kovács
err分享
err收藏
“It's almost like they're trying to hide it”: How User-Provided Image Descriptions Have Failed to Make Twitter Accessible
err2019-05-13
err0
errOAAI
errCole Gleason; Patrick Carrington; Cameron Cassidy; Meredith Ringel Morris; Kris M. Kitani; Jeffrey P. Bigham
err分享
err收藏
Management of the radial composite donor site: an orthopaedic opinion
err1999-06-01
err0
PREAI
errA.J. Sidebottom; P.E. Allen; M. Hayton; E.D. Vaughan; J.S. Brown
err分享
err收藏
学者 查看更多内容