RAG-SecCode: Retrieval-Augmented Secure Coding Guidance for Enterprise LLM Software Development
Frontiers in Emerging Artificial Intelligence and Machine Learning · 13.06.2026 · 03 (06) · 08-23
DOI: 10.64917/feaiml/volume03issue06-01 ↗Kurz gefasst
Fachartikel in der Zeitschrift Frontiers in Emerging Artificial Intelligence and Machine Learning, online erschienen am 13.06.2026. Verfasst von Sai Shiva Reddy Kongari.
Abstract (Originalsprache)
Large Language Models are increasingly used in enterprise software development for code generation, debugging, refactoring, documentation, and test creation. Their adoption has changed the practical workflow of software engineering by allowing developers to obtain implementation suggestions, boilerplate code, test scaffolds, configuration files, and architectural explanations directly from conversational systems. However, LLM-generated code may contain security vulnerabilities, hallucinated APIs, outdated dependencies, weak authorization logic, insecure default configurations, and implementation patterns that conflict with organizational policies. These risks are especially significant in enterprise environments where software systems are connected to sensitive data, identity platforms, regulated workflows, cloud infrastructure, and third-party integrations. Existing approaches such as secure prompting and manual code review can improve generated outputs, but prompt instructions alone are insufficient because general-purpose LLMs may not have access to current enterprise standards, approved libraries, secure coding rules, deployment constraints, or project-specific architecture. This paper proposes RAG-SecCode, a retrieval-augmented secure coding framework that grounds LLM-assisted software development in authoritative and organization-specific security knowledge. The framework integrates retrieval-augmented generation, secure coding policies, vulnerability knowledge bases, dependency governance rules, static and dynamic validation checks, and human-in-the-loop review. RAG-SecCode is designed to improve code security by supplying the model with relevant secure coding context before generation and by validating the generated output after generation. The study conceptually evaluates whether retrieval-augmented secure context can improve generated code quality compared with baseline prompting and secure prompting alone. The evaluation design measures vulnerability count, CWE mapping, hallucinated API frequency, dependency risk, policy compliance, test inclusion, and human reviewer approval rate. The paper contributes a practical framework for enterprise LLM software development by connecting recent research on vulnerability detection, LLM-based code generation, retrieval-augmented generation, secure repair, and static analysis. It argues that secure code generation should not be treated only as a prompting problem but as a governed software engineering workflow. RAG-SecCode provides a structured approach for reducing insecure and hallucinated LLM-generated code through contextual retrieval, rule-based validation, security-aware review, and continuous feedback.
Zitieren
APA
Kongari, S. S. R. (2026). RAG-SecCode: Retrieval-Augmented Secure Coding Guidance for Enterprise LLM Software Development. Frontiers in Emerging Artificial Intelligence and Machine Learning, 03(06), 08-23. https://doi.org/10.64917/feaiml/volume03issue06-01
Vancouver
Kongari SSR. RAG-SecCode: Retrieval-Augmented Secure Coding Guidance for Enterprise LLM Software Development. Frontiers in Emerging Artificial Intelligence and Machine Learning. 2026;03(06):08-23. doi:10.64917/feaiml/volume03issue06-01
BibTeX
@article{Kongari2026,
author = {Kongari, Sai Shiva Reddy},
title = {RAG-SecCode: Retrieval-Augmented Secure Coding Guidance for Enterprise LLM Software Development},
journal = {Frontiers in Emerging Artificial Intelligence and Machine Learning},
year = {2026},
volume = {03},
number = {06},
pages = {08--23},
doi = {10.64917/feaiml/volume03issue06-01}
}
EUVIMED