CWE Pattern Identification using Semantical Clustering of Programming Language Keywords
Authors:
- 1 May 2021
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 119-126
Abstract
Applications are one of the most used attack surfaces, and they must be secured at source code level, early in the development phase. Developers' inherited culture of programming preserves the patterns of code writing within big organizations or developers' communities, opening an opportunity to use SAST (Static Application Security Testing) complementary solutions to identify insecure code early in the development phase. We propose an Intermediate Representation, strict enough to maintain the security vulnerabilities patterns as defined by MITRE with the Common Weaknesses Enumeration, at the same time agile enough to not strongly depend on the lexical and syntax structure of the programming language, but following programmers' behavior of writing code. The current research phase uses semantical clustering of instructions (keywords) found in C/C++ programs, based on Word Embeddings, which are transported via the resulting (numerical) Intermediate Representation to the various classifiers for security vulnerability patterns detection. We show that there is a good preservation of security patterns despite the generalization of keywords via semantical clustering. This opens an opportunity for innovation in security vulnerability patterns identification, which is more dependent on the programmers' code writing behavior than the programming language specific structure.Keywords
This publication has 10 references indexed in Scilit:
- The Comparison of Word Embedding Techniques in RNNs for Vulnerability Detection2021
- Source Code Vulnerabilities Detection Using Loosely Coupled Data and Control Flows2019
- Automated Vulnerability Detection in Source Code Using Deep Representation Learning2018
- DeepBugs: a learning approach to name-based bug detectionProceedings of the ACM on Programming Languages, 2018
- Reduced Cooling Redundancy: A New Security Vulnerability in a Hot Data Center2018
- SourcererCC2016
- Automatic Inference of Search Patterns for Taint-Style Vulnerabilities2015
- Chucky2013
- ReDeBug: Finding Unpatched Code Clones in Entire OS Distributions2012
- Understanding bag-of-words model: a statistical frameworkInternational Journal of Machine Learning and Cybernetics, 2010