AutoVulnFix: LLM-augmented automated vulnerability detection and secure code remediation

With the advent of increasingly complex software systems, new attack paths have been developed on a daily basis, making conventional static analysis tools ineffective in vulnerability analysis. To address this challenge, this article describes AutoVulnFix(Deepseek), an LLM-Augmented Vulnerability Analysis Framework utilizing semantic code embeddings, hybrid static-dynamic analysis, and Retrieval-Augmented Generation to allow automated, contextually sound, and security-compliant generation of safe patches. The proposed system takes in source code and breaks it down into a fine-grained level, enhances vulnerability identification with threat intelligence in a real-world setting based on CWE, CVE, and CVSS, and utilizes LLM models in vulnerability analysis, risk identification, and guided repair. A Policy-Aware Enforcement Component enforces OWASP Top 10, SANS Top 25, ISO/IEC 27,001, and PCI-DSS security guidelines in vulnerability analysis. A Retrieval-Based Adaptive Memory Component stores validated patches in a vectorized knowledge repository, enabling continuous knowledge-base enrichment and retrieval-guided remediation without requiring model retraining. Experiments conducted on vulnerable code samples achieved 96% vulnerability detection accuracy, with a Precision of 0.92, Recall of 0.89, and an F1-score of 0.90. AutoVulnFix attained an 89.4% repair success rate, defined as the percentage of generated patches that simultaneously eliminate the identified vulnerability, preserve functional correctness, and satisfy policy-aware validation requirements. In addition, AutoVulnFix achieved a 94% patch correctness rate with a security regression rate of 6%, outperforming baseline models without Retrieval-Augmented Generation (RAG) and adaptive memory mechanisms. The results demonstrate that integrating threat intelligence, retrieval-augmented reasoning, hybrid analysis, and policy-aware validation improves both vulnerability remediation quality and functional stability while maintaining practical runtime performance. The findings show an LLM model’s effectiveness in solving vulnerability analysis problems using threat intelligence information with a learning strategy to produce a reliable scaling framework for safe patch generation with solid performance in terms of accuracy and effectiveness in an adaptive learning setting.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-12-03
DOI
https://doi.org/10.1038/s41598-026-80367-7
Primary Topic
Web Application Security Vulnerabilities
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

AutoVulnFix: LLM-augmented automated vulnerability detection and secure code remediation

Esther Daniel, S. Durga, S. Seetha, Yogesh Ravi
Scientific Reports
Web Application Security Vulnerabilities
article

AutoVulnFix: LLM-augmented automated vulnerability detection and secure code remediation

Esther Daniel, S. Durga, S. Seetha, Yogesh Ravi
article en

Abstract

With the advent of increasingly complex software systems, new attack paths have been developed on a daily basis, making conventional static analysis tools ineffective in vulnerability analysis. To address this challenge, this article describes AutoVulnFix(Deepseek), an LLM-Augmented Vulnerability Analysis Framework utilizing semantic code embeddings, hybrid static-dynamic analysis, and Retrieval-Augmented Generation to allow automated, contextually sound, and security-compliant generation of safe patches. The proposed system takes in source code and breaks it down into a fine-grained level, enhances vulnerability identification with threat intelligence in a real-world setting based on CWE, CVE, and CVSS, and utilizes LLM models in vulnerability analysis, risk identification, and guided repair. A Policy-Aware Enforcement Component enforces OWASP Top 10, SANS Top 25, ISO/IEC 27,001, and PCI-DSS security guidelines in vulnerability analysis. A Retrieval-Based Adaptive Memory Component stores validated patches in a vectorized knowledge repository, enabling continuous knowledge-base enrichment and retrieval-guided remediation without requiring model retraining. Experiments conducted on vulnerable code samples achieved 96% vulnerability detection accuracy, with a Precision of 0.92, Recall of 0.89, and an F1-score of 0.90. AutoVulnFix attained an 89.4% repair success rate, defined as the percentage of generated patches that simultaneously eliminate the identified vulnerability, preserve functional correctness, and satisfy policy-aware validation requirements. In addition, AutoVulnFix achieved a 94% patch correctness rate with a security regression rate of 6%, outperforming baseline models without Retrieval-Augmented Generation (RAG) and adaptive memory mechanisms. The results demonstrate that integrating threat intelligence, retrieval-augmented reasoning, hybrid analysis, and policy-aware validation improves both vulnerability remediation quality and functional stability while maintaining practical runtime performance. The findings show an LLM model’s effectiveness in solving vulnerability analysis problems using threat intelligence information with a learning strategy to produce a reliable scaling framework for safe patch generation with solid performance in terms of accuracy and effectiveness in an adaptive learning setting.

Scientific Reports
Karunya University (IN), CMR University (IN), Amrita Vishwa Vidyapeetham (IN)
Web Application Security Vulnerabilities
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