arrow
Return

Statically Detecting Vulnerabilities by Processing Programming Languages as Natural Languages

delete2022-06-01
delete5
delete
OA
AI
I
Ibéria Medeiros *
N
Nuno Neves
M
Miguel Correia
DOI:10.1109/TR.2021.3137314delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Web applications continue to be a favorite target for hackers due to a combination of wide adoption and rapid deployment cycles, which often lead to the introduction of high-impact vulnerabilities. Static analysis tools are important to search for vulnerabilities automatically in the program source code, supporting developers on their removal. However, building these tools requires programming the knowledge on how to discover the vulnerabilities. This article presents an alternative approach in which tools learn to detect flaws automatically by resorting to artificial intelligence concepts, more concretely to natural language processing. The approach employs a sequence model to learn to characterize vulnerabilities based on an annotated corpus. Afterwards, the model is utilized to discover and identify vulnerabilities in the source code. It was implemented in the DEKANT tool and evaluated experimentally with a large set of PHP applications and WordPress plugins. Overall, we found several thousand vulnerabilities belonging to 15 classes of input validation vulnerabilities, where 4143 of them were zero-day.
Keywords:
Hidden Markov models
Codes
Computer bugs
Natural language processing
Databases
Analytical models
Syntactics
Natural language processing
sequence models
software security
static analysis
vulnerabilities
web application

Journal

IEEE Transactions on Reliability cover
IEEE Transactions on Reliability
IF:
5.7
Papers:
2.7K
Citations:
8.5K

Organization

U
universidade de lisboa
Scholars:
3.4W
Papers: 3.1W
Citations: 29
I
inesc-id
Scholars:
636
Papers: 504
Citations: 0