Large Language Model Pipeline for Vulnerability Assessment and Validated Patch Generation in Cloud Native Applications
Keywords:
Cloud Native Security, Large Language Models, Automated Program Repair, Vulnerability Assessment, Patch Generation, Retrieval Augmented GenerationAbstract
Cloud-native apps are developed on container technology, microservice architecture, kubernetes deployment templates and IaC so they're more agile compared to security team's ability for vulnerability management; also there’s little research available about how quickly we can patch up those hybrid environments. The article ultravulnerable software security analysis tool uses an eight step process which involves static code review tools, dependency scan engines, infrastructure-as-code scanners along with LLM-based vulnerability detection for finding weaknesses and generating patch suggestions. Detection using an LLM for triaging scanners issues; cwe-aware severity rating; retrieval enhanced patches creation and autovalidity checks via patching applications, builds, testing, rescansing .This is an open-source solution where we use CVEfixes and big-vul for vulnerabilities and fixes pair; primevul for leak-resistant detection; also public kubernetes manifest files and dockerfile labels through open source policies scanner tools with chronology, deduped split. We compare zero-shot prompting, few-shot prompting, retrieval-augmented generation (RAG), and LoRA/QLoRA fine-tuning on Code Llama, StarCoder2, and DeepSeek-Coder by detecting accuracy scores of detection F1 score for scanners verification fix rate for building and testing passes and costs. Our finding shows that scanner and LLM triage reduced the false positive rate from 0.19 to 0.11. The fine-tuned DeepSeek-Coder achieved an accuracy of 38.7 percent on verification tests and improved to 52.8 percent after three rounds of validation cycles. The configuration artifact repair rate was higher at 51.3% compared to application code at 30.0%, while 8-9 % of candidates removed the finding but did not pass validation.
Downloads
References
[1] Rahman, A., Parnin, C., & Williams, L. (2019). The seven sins: Security smells in infrastructure as code scripts. Proc. IEEE/ACM 41st International Conference on Software Engineering (ICSE), 164–175. https://doi.org/10.1109/ICSE.2019.00033
[2] Rahman, A., Shamim, S. I., Bose, D. B., & Pandita, R. (2023). Security misconfigurations in open source Kubernetes manifests: An empirical study. ACM Transactions on Software Engineering and Methodology, 32(4). https://doi.org/10.1145/3579639
[3] National Institute of Standards and Technology. National Vulnerability Database (NVD). https://nvd.nist.gov (accessed 28 October 2026). This web resource has no DOI. JEIDS - Journal of Engineering Informatics and Data Systems Vol. 1(2) · 2026 81-94 © 2026 International Journal Press · Licensed under CC BY 4.0 Page 93
[4] Wu, Y., Jiang, N., Pham, H. V., Lutellier, T., Davis, J., Tan, L., Babkin, P., & Shah, S. (2023). How effective are neural networks for fixing security vulnerabilities. Proc. ACM International Symposium on Software Testing and Analysis (ISSTA), 1282–1294. https://doi.org/10.1145/3597926.3598135
[5] Pearce, H., Tan, B., Ahmad, B., Karri, R., & Dolan-Gavitt, B. (2023). Examining zero-shot vulnerability repair with large language models. Proc. IEEE Symposium on Security and Privacy (SP), 2339–2356. https://doi.org/10.1109/SP46215.2023.10179324
[6] Fu, M., Tantithamthavorn, C., Le, T., Nguyen, V., & Phung, D. (2022). VulRepair: A T5-based automated software vulnerability repair. Proc. ACM ESEC/FSE, 935–947. https://doi.org/10.1145/3540250.3549098
[7] Zhou, X., Cao, S., Sun, X., & Lo, D. (2025). Large language model for vulnerability detection and repair: Literature review and the road ahead. ACM Transactions on Software Engineering and Methodology. https://doi.org/10.1145/3708522
[8] Lee, H., Zhang, Z., Lu, H., & Zhang, L. (2025). SEC-bench: Automated benchmarking of LLM agents on realworld software security tasks. Advances in Neural Information Processing Systems (NeurIPS), 38. https://doi.org/10.48550/arXiv.2506.11791
[9] Ding, Y., Fu, Y., Ibrahim, O., Sitawarin, C., Chen, X., Alomair, B., Wagner, D., Ray, B., & Chen, Y. (2025). Vulnerability detection with code language models: How far are we? Proc. IEEE/ACM 47th International Conference on Software Engineering (ICSE), 1729–1741. https://doi.org/10.1109/ICSE55347.2025.00038
[10] Zhou, Y., Liu, S., Siow, J., Du, X., & Liu, Y. (2019). Devign: Effective vulnerability identification by learning comprehensive program semantics via graph neural networks. Advances in Neural Information Processing Systems (NeurIPS), 32. https://doi.org/10.48550/arXiv.1909.03496
[11] Fan, J., Li, Y., Wang, S., & Nguyen, T. N. (2020). A C/C++ code vulnerability dataset with code changes and CVE summaries. Proc. 17th International Conference on Mining Software Repositories (MSR), 508–512. https://doi.org/10.1145/3379597.3387501
[12] Bhandari, G., Naseer, A., & Moonen, L. (2021). CVEfixes: Automated collection of vulnerabilities and their fixes from open-source software. Proc. 17th International Conference on Predictive Models and Data Analytics in Software Engineering (PROMISE), 30–39. https://doi.org/10.1145/3475960.3475985
[13] Chen, Y., Ding, Z., Alowain, L., Chen, X., & Wagner, D. (2023). DiverseVul: A new vulnerable source code dataset for deep learning based vulnerability detection. Proc. 26th International Symposium on Research in Attacks, Intrusions and Defenses (RAID), 654–668. https://doi.org/10.1145/3607199.3607242
[14] Fu, M., & Tantithamthavorn, C. (2022). LineVul: A transformer-based line-level vulnerability prediction. Proc. 19th International Conference on Mining Software Repositories (MSR), 608–620. https://doi.org/10.1145/3524842.3528452
[15] Ullah, S., Han, M., Pujar, S., Pearce, H., Coskun, A., & Stringhini, G. (2024). LLMs cannot reliably identify and reason about security vulnerabilities (yet?): A comprehensive evaluation, framework, and benchmarks. Proc. IEEE Symposium on Security and Privacy (SP). https://doi.org/10.1109/SP54263.2024.00210
[16] Rozière, B., et al. (2023). Code Llama: Open foundation models for code. arXiv preprint arXiv:2308.12950. https://doi.org/10.48550/arXiv.2308.12950
[17] Lozhkov, A., et al. (2024). StarCoder 2 and The Stack v2: The next generation. arXiv preprint arXiv:2402.19173. https://doi.org/10.48550/arXiv.2402.19173
[18] Guo, D., et al. (2024). DeepSeek-Coder: When the large language model meets programming, the rise of code intelligence. arXiv preprint arXiv:2401.14196. https://doi.org/10.48550/arXiv.2401.14196
[19] Li, R., et al. (2023). StarCoder: May the source be with you! arXiv preprint arXiv:2305.06161. https://doi.org/10.48550/arXiv.2305.06161
[20] Hu, E. J., et al. (2022). LoRA: Low-rank adaptation of large language models. International Conference on Learning Representations (ICLR). https://doi.org/10.48550/arXiv.2106.09685
[21] Dettmers, T., Pagnoni, A., Holtzman, A., & Zettlemoyer, L. (2023). QLoRA: Efficient finetuning of quantized LLMs. Advances in Neural Information Processing Systems (NeurIPS), 36. https://doi.org/10.48550/arXiv.2305.14314
[22] Pearce, H., Ahmad, B., Tan, B., Dolan-Gavitt, B., & Karri, R. (2022). Asleep at the keyboard? Assessing the security of GitHub Copilot’s code contributions. Proc. IEEE Symposium on Security and Privacy (SP), 754–768. https://doi.org/10.1109/SP46214.2022.9833571
[23] Siddiq, M. L., & Santos, J. C. S. (2022). SecurityEval dataset: Mining vulnerability examples to evaluate machine learning-based code generation techniques. Proc. 1st International Workshop on Mining Software Repositories Applications for Privacy and Security (MSR4P&S), 29–33. https://doi.org/10.1145/3549035.3561184 JEIDS - Journal of Engineering Informatics and Data Systems Vol. 1(2) · 2026 81-94 © 2026 International Journal Press · Licensed under CC BY 4.0 Page 94
[24] Malul, E., Meidan, Y., Mimran, D., Elovici, Y., & Shabtai, A. (2024). GenKubeSec: LLM-based Kubernetes misconfiguration detection, localization, reasoning, and remediation. arXiv preprint arXiv:2405.19954. https://doi.org/10.48550/arXiv.2405.19954
[25] Cohen, O. S., Malul, E., Meidan, Y., Mimran, D., Elovici, Y., & Shabtai, A. (2025). KubeGuard: LLM-assisted Kubernetes hardening via configuration files and runtime logs analysis. arXiv preprint arXiv:2509.04191. https://doi.org/10.48550/arXiv.2509.04191
[26] Minna, F., Massacci, F., & Tuma, K. (2024). Analyzing and mitigating (with LLMs) the security misconfigurations of Helm charts from Artifact Hub. arXiv preprint arXiv:2403.09537. https://doi.org/10.48550/arXiv.2403.09537
[27] Lewis, P., et al. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. Advances in Neural Information Processing Systems (NeurIPS), 33. https://doi.org/10.48550/arXiv.2005.11401
[28] Wei, J., et al. (2022). Chain-of-thought prompting elicits reasoning in large language models. Advances in Neural Information Processing Systems (NeurIPS), 35. https://doi.org/10.48550/arXiv.2201.11903
[29] Jimenez, C. E., et al. (2024). SWE-bench: Can language models resolve real-world GitHub issues? International Conference on Learning Representations (ICLR). https://doi.org/10.48550/arXiv.2310.06770
[30] Yang, J., Jimenez, C. E., Wettig, A., Lieret, K., Yao, S., Narasimhan, K., & Press, O. (2024). SWE-agent: Agentcomputer interfaces enable automated software engineering. Advances in Neural Information Processing Systems (NeurIPS), 37. https://doi.org/10.48550/arXiv.2405.15793
[31] Zhang, Y., Ruan, H., Fan, Z., & Roychoudhury, A. (2024). AutoCodeRover: Autonomous program improvement. Proc. 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA), 1592–1604. https://doi.org/10.1145/3650212.3680384
[32] Greshake, K., Abdelnabi, S., Mishra, S., Endres, C., Holz, T., & Fritz, M. (2023). Not what you’ve signed up for: Compromising real-world LLM-integrated applications with indirect prompt injection. Proc. 16th ACM Workshop on Artificial Intelligence and Security (AISec), 79–90. https://doi.org/10.1145/3605764.3623985
[33] Rani, Deepika, Jay Kumar Pandey, and Rajendra Kumar. "DEEPFAKES AND THE COMPLIANCE VACUUM: LABELLING AI-GENERATED CONTENT UNDER ARTICLE 50 OF THE EU AI ACT." Indian Journal of Law and Legal Research Volume VIII Issue V| ISSN 2582: 8878. https://www.ijllr.com/post/deepfakes-and-the-compliance-vacuum-labelling-ai-generated-content-under-article-50-of-the-eu-ai-ac
[34] Rani, Deepika. "Protecting children from online grooming in India's increasingly digital post-covid-19 landscape: Leveraging technological solutions and AI-powered tools." International Journal of Innovative Research in Computer Science and Technology 12.3 (2024): 38-44. https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4842549
[35] Kumar, Rajendra, and Deepika Rani. "Revolutionizing Early Warning Systems for Natural Disasters: Integrating AI and ML-driven Models, Tools, and Platforms." AI and ML in Early Warning Systems for Natural Disasters. Bentham Science Publishers, 2025. 98-123. https://doi.org/10.2174/9798898811389125010009
[36] Rani, Deepika. "Averting a lost COVID generation: Reimagining a post-pandemic world for children in India." Issue 2 Int'l JL Mgmt. & Human. 7 (2024): 134. https://ijlmh.com/paper/averting-a-lost-covid-generation-reimagining-a-post-pandemic-world-for-children-in-india/
[37] Lata, Prem, and Deepika Rani. "Designing Formative Assessment Through Multimodal Learning Analytics: Integrating Knowledge Tracing, Dashboards, and Epistemic Feedback in Higher Education." Journal of Interdisciplinary Education, Learning and Knowledge Sciences 1.1 (2026): 34-45. https://ijpress.com/jielks/article/view/49
[38] Rani, Deepika, and Prem Lata. "Interpretive Debt: How Organisations Accumulate Hidden Liabilities When Humans Defer Sensemaking to Automated Systems." Journal of Digital Justice and Legal Innovation 1.1 (2026): 31-41. https://ijpress.com/jdjli/article/view/44
[39] Rani, Deepika. "Operational Translucency: A Third Mode of Algorithmic Visibility in Platform Governance." Journal of Digital Justice and Legal Innovation 1.1 (2026): 20-30. https://ijpress.com/jdjli/article/view/43
[40] Pandey, Jay Kumar, and Rajendra Kumar. "Governing the Algorithmic Agent: Confronting Overt and Covert Challenges to Justice and the Future of Work." Issue 4 Int'l JL Mgmt. & Human. 8 (2025): 1974. https://ijlmh.com/paper/governing-the-algorithmic-agent-confronting-overt-and-covert-challenges-to-justice-and-the-future-work/
[41] Kumar, Dr Rajendra, and Prof Singh. "The Rise of the Robo-Mediator: AI's Transformative Role in Alternative Dispute Resolution." White Black Legal 3.1 (2024): 1-11. https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5222318
[42] Kumar, Dr Rajendra. "Ethical Implications of the Use of Artificial Intelligence: Failure of Ethical AI to Address Privacy, Discrimination and Other Issues." (2024). https://doi.org/10.13140/RG.2.2.27100.30085
[43] Singh, S., & Pandey, J. K. (2026). Hybrid deep feature fusion for facial emotion recognition using VGG19 and ResNet152V2. International Journal of Innovative Research in Computer Science and Technology, 14(3), 17–26. https://doi.org/10.55524/ijircst.2026.14.2.10
[44] Pandey, J. K., Jain, R., Dilip, R., Kumbhkar, M., Jaiswal, S., Pandey, B. K., & Gupta, A., et al. (2023). Investigating role of IoT in the development of smart application for security enhancement. In N. Sindhwani, R. Anand, M. Niranjanamurthy, D. C. Verma, & E. B. Valentina (Eds.), IoT-Based Smart Applications (pp. 219–243). Springer. https://doi.org/10.1007/978-3-031-04524-0_13
[45] Pandey, J. K., Shameer, A. P., Sivakumar, S., Nutulapati, N. P., Ahamed, S. B., & Avasthi, V. (2022). An adaptive long-short term prediction model for resource management in cloud. In 2022 International Conference on Edge Computing and Applications (ICECAA) (pp. 50–55). IEEE.
[46] Pandey, J. K., & Srivastava, V. (2009). Feed forward neural network for detection and severity evaluation of stator faults in induction motor using stator current. In International Conference on Control, Automation, Communication and Energy Conservation (INCACEC). IEEE.
[47] Pandey, J. K., Veeraiah, V., Kumar, M. R., Kumari, P. L., Kotti, J., Dharani, M. K., & Gupta, A. (2024). Emerging soft computing and machine learning techniques applicable in industrial and automated applications. In N. Sindhwani, R. Anand, A. George, & D. Pandey (Eds.), Robotics and Automation in Industry 4.0 (pp. 65–88). CRC Press. https://doi.org/10.1201/9781003317456
Downloads
Published
Issue
Section
License
Copyright (c) 2026 International Journal Press

This work is licensed under a Creative Commons Attribution 4.0 International License.
All articles are distributed under the terms of the Creative Commons Attribution 4.0 International License (CC BY 4.0): anyone may copy, redistribute, remix, transform, and build upon the material in any medium or format for any purpose, including commercially, provided appropriate credit is given to the original authors and a link to the licence is provided.