Detección de Vulnerabilidades en Código Fuente Mediante Inteligencia Artificial: Enfoque Híbrido con CodeBERT, Regex y Automatización

Objetive: present a hybrid approach for the automated detection of vulnerabilities in source code, which integrates semantic analysis using CodeBERT with the identification of specific patterns via regular expressions (Regex). Methodology: In this study, we demonstrated, proposed and implemented a hybrid approach that combined the CodeBERT semantic model with detection using explanatory rules (Regex) within an automated architecture integrating GitHub, FastAPI, SQLite and n8n, to process source code, detect vulnerabilities and record the results in a traceable manner. Results: In experimental tests, the hybrid model achieved an accuracy of 0.90, a recall of 1.00 and an F1-score of 0.94, outperforming the CodeBERT model, which achieved an accuracy of 0.50 and an F1-score of 0.67. The best performance was also observed for PHP (88.89 per cent) and Python (77.78 per cent), whilst lower results were found for C++ and Go due to their greater structural complexity and their limited representation in the training data. Conclusions: The hybrid approach is an effective alternative for the automated analysis of vulnerabilities in source code and provides a foundation for future work focused on continuous integration, adaptive learning, and validation in real software repositories.

Authors

Publication Details

Journal
INGENIERÍA Ciencia Tecnología e Innovación
Published
2026-11-09
DOI
https://doi.org/10.26495/8v58r307
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Detección de Vulnerabilidades en Código Fuente Mediante Inteligencia Artificial: Enfoque Híbrido con CodeBERT, Regex y Automatización

Alberto Carlos Mendoza de los Santos, João Serrano, Jonathan Orlando Rojas Reyes, Luiggi Anthony Rosas Pérez
INGENIERÍA Ciencia Tecnología e Innovación
Software Engineering Research
article

Detección de Vulnerabilidades en Código Fuente Mediante Inteligencia Artificial: Enfoque Híbrido con CodeBERT, Regex y Automatización

Alberto Carlos Mendoza de los Santos, João Serrano, Jonathan Orlando Rojas Reyes, Luiggi Anthony Rosas Pérez
article en

Abstract

Objetive: present a hybrid approach for the automated detection of vulnerabilities in source code, which integrates semantic analysis using CodeBERT with the identification of specific patterns via regular expressions (Regex). Methodology: In this study, we demonstrated, proposed and implemented a hybrid approach that combined the CodeBERT semantic model with detection using explanatory rules (Regex) within an automated architecture integrating GitHub, FastAPI, SQLite and n8n, to process source code, detect vulnerabilities and record the results in a traceable manner. Results: In experimental tests, the hybrid model achieved an accuracy of 0.90, a recall of 1.00 and an F1-score of 0.94, outperforming the CodeBERT model, which achieved an accuracy of 0.50 and an F1-score of 0.67. The best performance was also observed for PHP (88.89 per cent) and Python (77.78 per cent), whilst lower results were found for C++ and Go due to their greater structural complexity and their limited representation in the training data. Conclusions: The hybrid approach is an effective alternative for the automated analysis of vulnerabilities in source code and provides a foundation for future work focused on continuous integration, adaptive learning, and validation in real software repositories.

INGENIERÍA Ciencia Tecnología e InnovaciónVol. 13
Software Engineering 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.

Laika access coming soon