Skip to content
Conference

Transformer–LLM Framework for Automated Code Vulnerability Detection in GitHub Repositories

Oct 2026 · 2026 10th International Conference on Electronics, Communication and Aerospace Technology (ICECA) · pp. 1761-1770 · 0 citations · 20 references

Abstract

Automated vulnerability detection is essential for securing rapidly expanding open-source software repositories. Conventional static-analysis methods depend primarily on predefined rules and manual feature engineering, which may limit their ability to detect context-dependent security weaknesses. This paper presents an integrated Transformer-LLM framework for vulnerability detection and remediation in GitHub repositories. Source-code functions written in Python, Java, JavaScript, PHP, and C/C++ are submitted through a Flask-based interface and processed using CodeBERT or GraphCodeBERT. The transformer representation is used for binary vulnerability detection, Common Weakness Enumeration (CWE) classification, and attribution-based candidate-line localization. When vulnerable code is identified, the relevant source segment and predicted CWE category are supplied to LLaMA 3 through the Groq API to generate a human-readable explanation and remediation recommendation. Big-Vul and CVEfixes are used as sources of vulnerable and non-vulnerable code samples. The framework achieved 90% accuracy, 86% precision, 82% recall, an F1-score of 85%, and a ROC-AUC of 0.90, with a 10% false-positive rate. CWE classification achieved 77% accuracy. The resulting report presents the vulnerability status, predicted CWE category, candidate source line, explanation, and recommended correction, providing developers with an interpretable vulnerability-assessment workflow.

View source

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.