Code Vulnerability Detection Across Different Programming Languages with AI Models

Security flaws in source codes written in a variety of programming languages are important and difficult to detect.Conventional static analysis systems based on rule-based patterns are ineffective at finding ruleindependent, context-dependent errors and have a high rate of false positives.Recently, new developments in artificial intelligence, notably transformer-based models, such as CodeBERT and CodeLlama, promisingly increase the models' ability to provide contextual relationships within code with a higher degree of depth.This work tests these models on heterogeneous vulnerability datasets, demonstrating that off-the-shelf models can be dynamically adapted to highly performant stability with the right adaptation on safe and vulnerable snippets.The methodology includes the collection of datasets, language normalization, fine-tuning of the model, and the combination of ensemble learning and XAI.According to experimental findings, a highly trained CodeBERT can outperform or equal some of the static analyzers with more than 97 percent accuracy.Whereas large language models may achieve close-to-optimal recall, precision can decline; therefore, hybrid open-ended and closed-ended systems are suggested to minimize false positives.In general, results indicate a high potential of AI-based solutions to generalize across languages and types of vulnerabilities, but current research remains to enhance their robustness, interpretability, and readiness to deploy.

Publication Details

Journal
International Research Journal of Modernization in Engineering Technology and Science
Published
2025-08-18
DOI
https://doi.org/10.56726/irjmets81912
Primary Topic
Software Reliability and Analysis Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Code Vulnerability Detection Across Different Programming Languages with AI Models

International Research Journal of Modernization in Engineering Technology and Science
Software Reliability and Analysis Research
article

Code Vulnerability Detection Across Different Programming Languages with AI Models

article en

Abstract

Security flaws in source codes written in a variety of programming languages are important and difficult to detect.Conventional static analysis systems based on rule-based patterns are ineffective at finding ruleindependent, context-dependent errors and have a high rate of false positives.Recently, new developments in artificial intelligence, notably transformer-based models, such as CodeBERT and CodeLlama, promisingly increase the models' ability to provide contextual relationships within code with a higher degree of depth.This work tests these models on heterogeneous vulnerability datasets, demonstrating that off-the-shelf models can be dynamically adapted to highly performant stability with the right adaptation on safe and vulnerable snippets.The methodology includes the collection of datasets, language normalization, fine-tuning of the model, and the combination of ensemble learning and XAI.According to experimental findings, a highly trained CodeBERT can outperform or equal some of the static analyzers with more than 97 percent accuracy.Whereas large language models may achieve close-to-optimal recall, precision can decline; therefore, hybrid open-ended and closed-ended systems are suggested to minimize false positives.In general, results indicate a high potential of AI-based solutions to generalize across languages and types of vulnerabilities, but current research remains to enhance their robustness, interpretability, and readiness to deploy.

International Research Journal of Modernization in Engineering Technology and Science
Openalex Percentile: Top 78%
Software Reliability and Analysis Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.