mlsanityData to 7 Oct 2026

LLMs + Security = Trouble

arXiv 2602.08422 ↗First posted 9 Feb 2026cs.CR cs.AI cs.SEcited by 0

Not on the map. Why?

Abstract (arXiv)

We argue that when it comes to producing secure code with AI, the prevailing "fighting fire with fire" approach -- using probabilistic AI-based checkers or attackers to secure probabilistically generated code -- fails to address the long tail of security bugs. As a result, systems may remain exposed to zero-day vulnerabilities that can be discovered by better-resourced or more persistent adversaries. While neurosymbolic approaches that combine LLMs with formal methods are attractive in principle, we argue that they are difficult to reconcile with the "vibe coding" workflow common in LLM-assisted development: unless the end-to-end verification pipeline is fully automated, developers are repeatedly asked to validate specifications, resolve ambiguities, and adjudicate failures, making the human-in-the-loop a likely point of weakness, compromising secure-by-construction guarantees. In this paper we argue that stronger security guarantees can be obtained by enforcing security constraints during code generation (e.g., via constrained decoding), rather than relying solely on post-hoc detection and repair. This direction is particularly promising for diffusion-style code models, whose approach provides a natural elegant opportunity for modular, hierarchical security enforcement, allowing us to combine lower-latency generation techniques with generating secure-by-construction code.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 41 of its 50 references that are in the map. First posted on arXiv 9 Feb 2026.

Builds on

41 of 50 references.

References · 41

  1. 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
  2. 2025DiffuCoder: Understanding and Improving Masked Diffusion Models for Code Generationcited by 184
  3. 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 149
  4. 2024Guiding LLMs The Right Way: Fast, Non-Invasive Constrained Generationcited by 99
  5. 2022Gradient-Based Constrained Sampling from Language Modelscited by 64
  6. 2025VeriGuard: Enhancing LLM Agent Safety via Verified Code Generationcited by 46
  7. 2023A New Era in Software Security: Towards Self-Healing Software via Large Language Models and Formal Verificationcited by 42
  8. 2025Flexible and Efficient Grammar-Constrained Decodingcited by 42
  9. 2024Constrained Decoding for Secure Code Generationcited by 35
  10. 2025Agentic AI Software Engineers: Programming with Trustcited by 19
  11. 2024APPATCH: Automated Adaptive Prompting Large Language Models for Real-World Software Vulnerability Patchingcited by 18
  12. 2025Security and Quality in LLM-Generated Code: A Multi-Language, Multi-Model Analysiscited by 18
29 more
  1. 2025Exploring the Potential of Diffusion Large Language Models in Code Generationcited by 16
  2. 2023Efficient Avoidance of Vulnerabilities in Auto-completed Smart Contract Code Using Vulnerability-constrained Decodingcited by 14
  3. 2024HexaCoder: Secure Code Generation via Oracle-Guided Synthetic Training Datacited by 14
  4. 2025Assessing Correctness in LLM-Based Code Generation via Uncertainty Estimationcited by 14
  5. 2025Guiding AI to Fix Its Own Flaws: An Empirical Study on LLM-Driven Secure Code Generationcited by 12
  6. 2025ChopChop: a Programmable Framework for Semantically Constraining the Output of Language Modelscited by 12
  7. 2024Artificial-Intelligence Generated Code Considered Harmful: A Road Map for Secure and High-Quality Code Generationcited by 11
  8. 2025TreeDiff: AST-Guided Code Generation with Diffusion LLMscited by 11
  9. 2025DiffuGuard: How Intrinsic Safety is Lost and Found in Diffusion Large Language Modelscited by 11
  10. 2024Diffusion On Syntax Trees For Program Synthesiscited by 10
  11. 2025Low-Cost and Comprehensive Non-textual Input Fuzzing with LLM-Synthesized Input Generatorscited by 10
  12. 2025Rethinking the Evaluation of Secure Code Generationcited by 10
  13. 2025Systems Security Foundations for Agentic Computingcited by 9
  14. 2025Towards Formal Verification of LLM-Generated Code from Natural Language Promptscited by 8
  15. 2025A Systematic Literature Review on Detecting Software Vulnerabilities with Large Language Modelscited by 8
  16. 2025A Neurosymbolic Approach to Natural Language Formalization and Verificationcited by 8
  17. 2025RESCUE: Retrieval Augmented Secure Code Generationcited by 7
  18. 2025PoCo: Agentic Proof-of-Concept Exploit Generation for Smart Contractscited by 7
  19. 2025Comparing Human and LLM Generated Code: The Jury is Still Out!cited by 6
  20. 2025Grammar-Based Code Representation: Is It a Worthy Pursuit for LLMs?cited by 5
  21. 2025Guiding LLM-based Smart Contract Generation with Finite State Machinecited by 5
  22. 2025SCGAgent: Recreating the Benefits of Reasoning Models for Secure Code Generation with Agentic Workflowscited by 4
  23. 2025Towards Verified Code Reasoning by LLMscited by 4
  24. 2025VulInstruct: Teaching LLMs Root-Cause Reasoning for Vulnerability Detection via Security Specificationscited by 4
  25. 2025Data and Context Matter: Towards Generalizing AI-based Software Vulnerability Detectioncited by 2
  26. 2025Exploring the Power of Diffusion Large Language Models for Software Engineering: An Empirical Investigationcited by 2
  27. 2023Neuro-Symbolic Execution of Generic Source Codecited by 1
  28. 2025VULSOLVER: Vulnerability Detection via LLM-Driven Constraint Solvingcited by 1
  29. 2025Large Language Models Cannot Reliably Detect Vulnerabilities in JavaScript: The First Systematic Benchmark and Evaluationcited by 1

Built on by

Not cited yet.