arrow
Return

Python source code vulnerability detection with named entity recognition

delete2024-05-01
delete4
PRE
AI
M
M. Ehrenberg *
S
Shahram Sarkani
T
Thomas A. Mazzuchi
DOI:10.1016/j.cose.2024.103802delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Vulnerabilities within source code have grown over the last 20 years to become a common threat to systems and networks. As the implementation of open -source software continues to develop, more unknown vulnerabilities will exist throughout system networks. This research proposes an enhanced vulnerability detection method specific to Python source code that utilizes pre-trained, BERT -based transformer models to apply tokenization, embedding, and named entity recognition (a natural language processing technique). The use of named entity recognition not only allows for the detection of potential vulnerabilities, but also for the classification of different vulnerability types. This research uses the publicly available CodeBERT, RoBERTa, and DistilBERT models to fine -tune for the downstream task of token classification for six different common weakness enumeration specifications. The results achieved in this research outperform previous Python-based vulnerability detection methods and demonstrate the effectiveness of applying named entity recognition to enhance the overall research into Python source code vulnerabilities.
Keywords:
Vulnerability detection
Natural language processing
Machine learning
Named entity recognition
Transformer
Python
BERT
Programming language
Common weakness enumeration
CWE

Journal

C
Computers and Security
IF:
5.4
Papers:
4.6K
Citations:
1.4W

Organization

G
George Washington University
Scholars:
1.6W
Papers: 1.4W
Citations: 1.7W
Cited Papers

Cited Papers

Vulnerability detection through cross-modal feature enhancement and fusion
err2023-09-01
err4
PREAI
errTao, Wenxin; Su, Xiaohong; Wan, Jiayuan; Wei, Hongwei; Zheng, Weining
errShare
errSave
VUDENC: Vulnerability Detection with Deep Learning on a Natural Codebase for Python
err2022-04-01
err57
errOAAI
errWartschinski, Laura; Noller, Yannic; Vogel, Thomas; Kehrer, Timo; Grunske, Lars
errShare
errSave
errShare
errSave
errShare
errSave
errShare
errSave
Predicting Vulnerable Software Components via Text Mining
err2014-10-01
err266
errOAAI
errScandariato, Riccardo; Walden, James; Hovsepyan, Aram; Joosen, Wouter
errShare
errSave
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
VDoTR: Vulnerability detection based on tensor representation of comprehensive code graphs
err2023-07-01
err5
PREAI
errFan, Yuanhai; Wan, Chuanhao; Fu, Cai; Han, Lansheng; Xu, Hao
errShare
errSave
researcher View more