Machine Learning-Based Security Pattern Recognition Techniques for Code Developers
Open Access
- 6 December 2022
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 12 (23) , 12463
Abstract
Software developers represent the bastion of application security against the overwhelming cyber-attacks which target all organizations and affect their resilience. As security weaknesses which may be introduced during the process of code writing are complex and matching different and variate skills, most applications are launched intrinsically vulnerable. We have advanced our research for a security scanner able to use automated learning techniques based on machine learning algorithms to recognize patterns of security weaknesses in source code. To make the scanner independent on the programming language, the source code is converted to a vectorial representation using natural language processing methods, which are able to retain semantical traits of the original code and at the same time to reduce the dependency on the lexical structure of the program. The security flaws detection performance is in the ranges accepted by software security professionals (recall > 0.94) even when vulnerable samples are very low represented in the dataset (e.g., less than 4% vulnerable code for a specific CWE in the dataset). No significant change or adaptation is needed to change the source code language under scrutiny. We apply this approach on detecting Common Weaknesses Enumeration (CWE) vulnerabilities in datasets provided by NIST (Test suites–NIST Software Assurance Reference Dataset).Keywords
This publication has 13 references indexed in Scilit:
- CWE Pattern Identification using Semantical Clustering of Programming Language Keywords2021
- Tracing Vulnerable Code Lineage2021
- Source Code Vulnerabilities Detection Using Loosely Coupled Data and Control Flows2019
- Automated Vulnerability Detection in Source Code Using Deep Representation Learning2018
- VulDeePecker: A Deep Learning-Based System for Vulnerability Detection2018
- SourcererCC2016
- Automatic Inference of Search Patterns for Taint-Style Vulnerabilities2015
- Modeling and Discovering Vulnerabilities with Code Property Graphs2014
- Chucky2013
- Understanding bag-of-words model: a statistical frameworkInternational Journal of Machine Learning and Cybernetics, 2010