Overview

The field asks whether code-generating models can produce programs that work as intended and resist vulnerabilities such as injection, insecure defaults, and memory-safety flaws. Researchers evaluate both properties with CWE-based benchmarks, executable security and functional tests, and static or dynamic analysis across languages and settings from small functions to repositories and infrastructure code. Common approaches include security-aware prompting, fine-tuning and reward-based training, retrieval and tool-guided repair, multi-agent workflows, and inference-time steering of model representations. A central tension is that functional success or knowledge of secure coding does not guarantee secure outputs; results can vary with prompts and context, and methods must reduce vulnerabilities without breaking functionality or relying on unrealistic tests.

Latest papers

CardsList

51 papers5 papers in the last four weeks, down 29% on the four weeks before. 0.0% of all new papers.

  1. A.S.E 2.0: Understanding How Repository Context Impacts the Security of LLM-Generated Code

    Nov 4, 2026Jiongchi Yu, Keke Lian, Junqing Wang +5LLM Code GenerationLLM Security

  2. RiskyPy: Toward Model-Calibrated Prompt Generation for Joint Security and Functionality Evaluation of LLM-Generated Code

    Oct 29, 2026Zacharie Chenail-Larcher, Daniele Lunghi, Melissa Tessa +5Code Generation EvaluationCode Generation Benchmarks

  3. Secure and Functional Code Generation with Self-Evaluation

    Oct 24, 2026Md Afif Al Mamun, Gias UddinSecure Code GenerationRetrieval-Augmented Code Generation

  4. SPLASH: Contrastive Audit Pressure for Detecting and Localizing Security Hallucinations in Generated Code

    Oct 19, 2026Mirza Masfiqur Rahman, MD Ajwad Akil, Imtiaz Karim +3LLM SecuritySoftware Vulnerability Detection

  5. Secure Agentic Coding through Counterexample-Grounded Feedback

    Oct 19, 2026Tue Le, Anh Nguyen Hoang, Gabriel Sasseville +3Secure Code GenerationAgentic Code Generation

  6. Many Repairs, One Direction: Steering Code Models Toward Safer Cryptographic API Use

    Oct 18, 2026Tianhe Lu, Sakuna Harinda Jayasundara, Eric Spero +3Secure Code GenerationLLM Code Generation

  7. Security in LLM-Assisted Coding: A Systematic Literature Review

    Oct 11, 2026Liang Yuan, Maryam Khanian Najafabadi, Mashud Rana +1LLM SecuritySoftware Security

  8. SEEK: Agentic Knowledge Graph Retrieval for Secure Code Generation

    Oct 10, 2026Varun Gadey, Markus Tohn, Lichao Wu +2Secure Code GenerationRAG Security

  9. Last Secure Code Benchmark: Is the Code You Vibe Secure?

    Oct 10, 2026Tianyi Wu, Chao Ge, Peng Chen +12Secure Code GenerationAI Agent Security Benchmarks

  10. AuraForge: Scaling Security Supervision for Training Coding Agents

    Oct 1, 2026Danqing Wang, Songwen Zhao, Harsh Sharma +4AI Coding AgentsSoftware Security

  11. SecureVibe: Making Vibe Coding More Secure

    Sep 29, 2026Danqing Wang, Baolin Peng, Zhepei Wei +8Secure Code GenerationSoftware Security

  12. JevVibe: Efficient Classification-Guided Secure Code Generation

    Sep 28, 2026Arshak Rezvani, Sasha Behrouzi, Ahmad-Reza SadeghiAutomated Program RepairSoftware Vulnerability Detection

  13. CS-Guard: Benchmarking LLM Guardrails for Code Generation Security

    Sep 9, 2026Jinyang Li, Mingyu Guo, Hung X. NguyenLLM GuardrailsAdversarial Attacks on LLMs

  14. Interpreting and Steering for Safe and Correct Code Generation

    Aug 30, 2026Hao Yan, Ziyu YaoMechanistic InterpretabilityLLM Security

  15. MACGen: Toward Functionally Correct and Secure Code Generation via Multi-Agent Collaboration

    Aug 26, 2026Miseon Yu, Jaehoon Choi, Younghan Lee +1Code GenerationSecure Code Generation

  16. Evaluating and Preventing Security Smells in AI-Generated Ansible Code

    Aug 25, 2026Pandu Ranga Reddy Konala, Vimal Kumar, David Bainbridge +1Secure Code GenerationSoftware Security

  17. Vibe Coding and Web Application Security: A Twin-Prompt Study

    Aug 21, 2026Darko AndročecSecure Code GenerationSoftware Security

  18. Security-First Evaluation of Text-to-Terraform: Benchmarking LLMs and SLMs for Secure IaC Generation

    Aug 2, 2026Francis Luis Santos Vargas, Rodrigo Brandão Mansilha, Diego KreutzLLM EvaluationCode Generation

  19. EduPluginBench: Executable Assurance for AI-Generated Educational Plugins

    Aug 1, 2026Nizam KadirSoftware SecurityRuntime Assurance

  20. SecDrift: Measuring Sector-Conditioned Security Drift in AI-Generated Code

    Jul 28, 2026Narayanaswami Natraj Bharadwaj, Dhivya ChandramouleeswaranCybersecurityLLM Security

  21. The Illusion of Secure LLM Code: Closing the Security Gap via Iterative Reprompting

    Jul 26, 2026Ishpuneet Singh, Shreyas Mahajan, Gurjot Singh +1LLM PromptingCybersecurity

  22. Poster: Rethinking Security in LLM Code Generation through Real-World Risk Scenarios

    Jul 25, 2026Lixun Ma, Ruolong Ma, Bei Wang +4LLM Safety BenchmarksLLM Security

  23. Tool-Guided Retrieval-Augmented Repair for Securing LLM-Generated C Code

    Jul 21, 2026Vidyut Sriram, Saatvik Pradhan, Suman SahaAutomated Program RepairCode Generation

  24. Functional and Secure Code Generation with Task Vectors

    Jul 8, 2026Felix Wang, Anudeep Das, Mei Nagappan +1Code GenerationLLM Safety Alignment

  25. An Empirical Study of Security Calibration in Large Language Models for Code

    Jun 30, 2026Mohammed Latif Siddiq, Md. Nafiu Rahman, Joanna C. S. SantosLLM SecurityLanguage Model Calibration

  26. SoK: AI Secure Code Generation: Progress, Pitfalls, and Paths Forward

    Jun 23, 2026Rupam Patir, Keyan Guo, Haipeng Cai +1AI Coding AgentsCode Generation Evaluation

  27. Secure Coding Drift in LLM-Assisted Post-Quantum Cryptography Development: A Gamified Fix

    Jun 17, 2026R. D. N. Shakya, C. P. Wijesiriwardana, S. M. Vidanagamachchi +1LLMs for CybersecuritySecure Code Generation

  28. SPARK: Security Knowledge Priming and Representation-Guided Knowledge Activation for LLM-based Secure Code Generation

    Jun 15, 2026Xiaoyun Xu, Lichao Wu, Jona te Lintelo +2Knowledge Augmentation for Language ModelsLLM Security