mlsanityData to 7 Oct 2026

AutoSafeCoder: A Multi-Agent Framework for Securing LLM Code Generation through Static Analysis and Fuzz Testing

arXiv 2409.10737 ↗First posted 16 Sep 2024cs.SE cs.AIcited by 34

On the map: LLM agents and tool use → Agent threats, guardrails and governance

Abstract (arXiv)

Recent advancements in automatic code generation using large language models (LLMs) have brought us closer to fully automated secure software development. However, existing approaches often rely on a single agent for code generation, which struggles to produce secure, vulnerability-free code. Traditional program synthesis with LLMs has primarily focused on functional correctness, often neglecting critical dynamic security implications that happen during runtime. To address these challenges, we propose AutoSafeCoder, a multi-agent framework that leverages LLM-driven agents for code generation, vulnerability analysis, and security enhancement through continuous collaboration. The framework consists of three agents: a Coding Agent responsible for code generation, a Static Analyzer Agent identifying vulnerabilities, and a Fuzzing Agent performing dynamic testing using a mutation-based fuzzing approach to detect runtime errors. Our contribution focuses on ensuring the safety of multi-agent code generation by integrating dynamic and static testing in an iterative process during code generation by LLM that improves security. Experiments using the SecurityEval dataset demonstrate a 13% reduction in code vulnerabilities compared to baseline LLMs, with no compromise in functionality.

Key facts. Cited by 34 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 13 of its 28 references that are in the map. First posted on arXiv 16 Sep 2024.

Builds on

13 of 28 references.

References · 13

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  2. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  3. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  4. 2023Large Language Modelscited by 774
  5. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  6. 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
  7. 2021Examining Zero-Shot Vulnerability Repair with Large Language Modelscited by 105
  8. 2022Lost at C: A User Study on the Security Implications of Large Language Model Code Assistantscited by 87
  9. 2024Self-Organized Agents: A LLM Multi-Agent Framework toward Ultra Large-Scale Code Generation and Optimizationcited by 84
  10. 2023How Secure is Code Generated by ChatGPT?cited by 77
  11. 2024An Empirical Study on Usage and Perceptions of LLMs in a Software Engineering Projectcited by 28
  12. 2023AIBugHunter: A Practical Tool for Predicting, Classifying and Repairing Software Vulnerabilitiescited by 17
1 more
  1. 2023Pre-trained Model-based Automated Software Vulnerability Repair: How Far are We?cited by 15

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 17; 2026: 16.

34 papers.

Sort:

By area:

  1. 2026Code as Agent Harnesscited by 40
  2. 2025Vibe Coding vs. Agentic Coding: Fundamentals and Practical Implications of Agentic AIcited by 39
  3. 2025AI Agentic Programming: A Survey of Techniques, Challenges, and Opportunitiescited by 26
  4. 2024Agents4PLC: Automating Closed-loop PLC Code Generation and Verification in Industrial Control Systems using LLM-based Agentscited by 25
  5. 2025CoRe: Benchmarking LLMs Code Reasoning Capabilities through Static Analysis Taskscited by 24
  6. 2025D-CIPHER: Dynamic Collaborative Intelligent Multi-Agent System with Planner and Heterogeneous Executors for Offensive Securitycited by 19
  7. 2025Correctness Assessment of Code Generated by Large Language Models Using Internal Representationscited by 17
  8. 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
  9. 2025A Contemporary Survey of Large Language Model Assisted Program Analysiscited by 10
  10. 2026AgentConductor: Topology Evolution for Multi-Agent Competition-Level Code Generationcited by 9
  11. 2025RefAgent: A Multi-agent LLM-based Framework for Automatic Software Refactoringcited by 7
  12. 2025Can You Really Trust Code Copilots? Evaluating Large Language Models from a Code Security Perspectivecited by 6
22 more
  1. 2025SCGAgent: Recreating the Benefits of Reasoning Models for Secure Code Generation with Agentic Workflowscited by 4
  2. 2025From Trace to Line: LLM Agent for Real-World OSS Vulnerability Localizationcited by 4
  3. 2026Clawed and Dangerous: Can We Trust Open Agentic Systems?cited by 3
  4. 2025RA-Gen: A Controllable Code Generation Framework Using ReAct for Multi-Agent Task Executioncited by 2
  5. 2025CTIConnect: A Benchmark for Retrieval-Augmented LLMs over Heterogeneous Cyber Threat Intelligencecited by 2
  6. 2025Helmsman: Autonomous Synthesis of Federated Learning Systems via Collaborative LLM Agentscited by 1
  7. 2026Feedback-based Automated Verification in Vibe Coding of CAS Adaptation Built on Constraint Logiccited by 1
  8. 2025Knowledge-Guided Multi-Agent Framework for Application-Level Software Code Generationcited by 0
  9. 2025Argus: A Multi-Agent Sensitive Information Leakage Detection Framework Based on Hierarchical Reference Relationshipscited by 0
  10. 2025MALCDF: A Distributed Multi-Agent LLM Framework for Real-Time Cybercited by 0
  11. 2026AutoEG: Exploiting Known Third-Party Vulnerabilities in Black-Box Web Applicationscited by 0
  12. 2026A Multi-Agent Framework for Automated Exploit Generation with Constraint-Guided Comprehension and Reflectioncited by 0
  13. 2026Vibe-Coding: Feedback-Based Automated Verification with no Human Code Inspection, a Feasibility Studycited by 0
  14. 2026IACDM: Interactive Adversarial Convergence Development Methodology -- A Structured Framework for AI-Assisted Software Developmentcited by 0
  15. 2026Learn from Your Mistakes: Tree-like Self-Play for Secure Code LLMscited by 0
  16. 2026Critic-Guided Heterogeneous Multi-Agent Reasoning for Reliable Mathematical Problem Solvingcited by 0
  17. 2026Security in a Workflow: Exploring Role-Based Agentic Architectures for Vulnerability Handlingcited by 0
  18. 2026SoK: AI Secure Code Generation: Progress, Pitfalls, and Paths Forwardcited by 0
  19. 2026The Illusion of Secure LLM Code: Closing the Security Gap via Iterative Repromptingcited by 0
  20. 2026MACGen: Toward Functionally Correct and Secure Code Generation via Multi-Agent Collaborationcited by 0
  21. 2026Beyond Static Guarantees: Measuring the Static-Pass Dynamic-Fail Gap in Security-Sensitive and LLM-Generated Python Codecited by 0
  22. 2026Self-Spec Verifiable Code Generationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026FuzzingBrain V2: A Multi-Agent LLM System for Automated Vulnerability Discovery and Reproduction
  2. 2025SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Tasks
  3. 2025TypePilot: Leveraging the Scala Type System for Secure LLM-generated Code
  4. 2026When Passing Tests Hides Vulnerabilities: An Empirical Study of Silent Failures in Agentic Systems
  5. 2025Analyzing Code Injection Attacks on LLM-based Multi-Agent Systems in Software Development
  6. 2026SecureForge: Finding and Preventing Vulnerabilities in LLM-Generated Code via Prompt Optimization
  7. 2025LLM Agents for Automated Web Vulnerability Reproduction: Are We There Yet?
  8. 2025How Safe Are AI-Generated Patches? A Large-scale Study on Security Risks in LLM and Agentic Automated Program Repair on SWE-bench