Back to Search Start Over

Detection of Software Security Weaknesses Using Cross-Language Source Code Representation (CLaSCoRe)

Authors :
Sergiu Zaharia
Traian Rebedea
Stefan Trausan-Matu
Source :
Applied Sciences, Vol 13, Iss 13, p 7871 (2023)
Publication Year :
2023
Publisher :
MDPI AG, 2023.

Abstract

The research presented in the paper aims at increasing the capacity to identify security weaknesses in programming languages that are less supported by specialized security analysis tools, based on the knowledge gathered from securing the popular ones, for which security experts, scanners, and labeled datasets are, in general, available. This goal is vital in reducing the overall exposure of software applications. We propose a solution to expand the capabilities of security gaps detection to downstream languages, influenced by their more popular “ancestors” from the programming languages’ evolutionary tree, using language keyword tokenization and clustering based on word embedding techniques. We show that after training a machine learning algorithm on C, C++, and Java applications developed by a community of programmers with similar behavior of writing code, we can detect, with acceptable accuracy, similar vulnerabilities in C# source code written by the same community. To achieve this, we propose a core cross-language representation of source code, optimized for security weaknesses classifiers, named CLaSCoRe. Using this method, we can achieve zero-shot vulnerability detection—in our case, without using any training data with C# source code.

Details

Language :
English
ISSN :
20763417
Volume :
13
Issue :
13
Database :
Directory of Open Access Journals
Journal :
Applied Sciences
Publication Type :
Academic Journal
Accession number :
edsdoj.03983bad020b42d4b54790904ed0c9f4
Document Type :
article
Full Text :
https://doi.org/10.3390/app13137871