CodeGrapher: an image representation method to enhance software vulnerability prediction

Fuladi, Ramin and Hanifi Rüstem, Khadija (2024) CodeGrapher: an image representation method to enhance software vulnerability prediction. In: 19th International Conference on Evaluation of Novel Approaches to Software Engineering, ENASE 2024, Angers, France

Full text not available from this repository. (Request a copy)

Abstract

Contemporary software systems face a severe threat from vulnerabilities, prompting exploration of innovative solutions. Machine Learning (ML) algorithms have emerged as promising tools for predicting software vulnerabilities. However, the diverse sizes of source codes pose a significant obstacle, resulting in varied numerical vector sizes. This diversity disrupts the uniformity needed for ML models, causing information loss, increased false positives, and false negatives, diminishing vulnerability analysis accuracy. In response, we propose CodeGrapher, preserving semantic relations within source code during vulnerability prediction. Our approach involves converting numerical vector representations into image sets for ML input, incorporating similarity distance metrics to maintain vital code relationships. Using Abstract Syntax Tree (AST) representation and skip-gram embedding for numerical vector conversion, CodeGrapher demonstrates potential to significantly enhance prediction accuracy. Leveraging image scalability and resizability addresses challenges from varying numerical vector sizes in ML-based vulnerability prediction. By converting input vectors to images with a set size, CodeGrapher preserves semantic relations, promising improved software security and resilient systems.
Item Type: Papers in Conference Proceedings
Uncontrolled Keywords: CodeGrapher; Image Generation; ML Algorithms; Semantic Relations; Similarity Distance Metrics; Software Vulnerability Prediction; Source Code Analysis
Divisions: Faculty of Engineering and Natural Sciences
Depositing User: Khadija Hanifi Rüstem
Date Deposited: 12 Jun 2024 14:26
Last Modified: 12 Jun 2024 14:26
URI: https://research.sabanciuniv.edu/id/eprint/49479

Actions (login required)

View Item
View Item