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
- Esther Daniel (ORCID: https://orcid.org/0000-0003-1997-094X)
- S. Durga (ORCID: https://orcid.org/0000-0003-2376-8365)
- S. Seetha (ORCID: https://orcid.org/0000-0001-5136-6991)
- Yogesh Ravi
Institutions
- Karunya University (IN)
- CMR University (IN)
- Amrita Vishwa Vidyapeetham (IN)
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