EUVIMEDEUVIMED entdecken
Open Access · CC BY-NC 4.0

Real-Time Code Vulnerability Detection Using a Machine Learning-Integrated Language Server

Ariel Roy Luceño Reyes, Mark David Dayanan Prado, Raffy Beting Suarez, Rovenado Nesta Abellana Villotes

Proceedings of Engineering and Technology Innovation · 01.01.2026 · 32 · 28-42

DOI: 10.46604/peti.2025.15065 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Proceedings of Engineering and Technology Innovation, online erschienen am 01.01.2026. Verfasst von Ariel Roy Luceño Reyes und 3 weiteren Autor:innen. Die Arbeit nennt 29 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY-NC 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

The rapid growth of software development has improved productivity but also introduced security risks, especially when developers skip essential scans due to time constraints or limited tool support. This study proposes a real-time vulnerability detection system that integrates machine learning (ML) into a language server framework to enhance software security during coding. The system uses a Language Server Protocol (LSP) architecture with a Random Forest classifier that analyzes source code at the line level. Code is pre-processed through tokenization, abstract syntax tree (AST) traversal, and TF-IDF vectorization before being classified into four vulnerability types: CWE-79 (Cross-Site Scripting), CWE-89 (SQL Injection), CWE-22 (Path Traversal), and CWE-434 (Unrestricted File Upload). Using 20,000 labeled code lines, the model achieves 82.3% accuracy and an F1-score of 80.7%, performing best on CWE-79 and CWE-89 and showing weakest performance on CWE-434. The language server averages 72 ms per diagnostic, demonstrating its suitability for real-time developer workflows.

Zitieren

APA

Reyes, A. R. L., Prado, M. D. D., Suarez, R. B., & Villotes, R. N. A. (2026). Real-Time Code Vulnerability Detection Using a Machine Learning-Integrated Language Server. Proceedings of Engineering and Technology Innovation, 32, 28-42. https://doi.org/10.46604/peti.2025.15065

Vancouver

Reyes ARL, Prado MDD, Suarez RB, Villotes RNA. Real-Time Code Vulnerability Detection Using a Machine Learning-Integrated Language Server. Proceedings of Engineering and Technology Innovation. 2026;32:28-42. doi:10.46604/peti.2025.15065

BibTeX
@article{Reyes2026,
  author = {Reyes, Ariel Roy Luceño and Prado, Mark David Dayanan and Suarez, Raffy Beting and Villotes, Rovenado Nesta Abellana},
  title = {Real-Time Code Vulnerability Detection Using a Machine Learning-Integrated Language Server},
  journal = {Proceedings of Engineering and Technology Innovation},
  year = {2026},
  volume = {32},
  pages = {28--42},
  doi = {10.46604/peti.2025.15065}
}
Kostenlos starten →