BaxBench: Can LLMs Generate Correct and Secure Backends?
Not on the map. Why?
Cited by 20 in LLM agents and tool use, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
Automatic program generation has long been a fundamental challenge in computer science. Recent benchmarks have shown that large language models (LLMs) can effectively generate code at the function level, make code edits, and solve algorithmic coding tasks. However, to achieve full automation, LLMs should be able to generate production-quality, self-contained application modules. To evaluate the capabilities of LLMs in solving this challenge, we introduce BaxBench, a novel evaluation benchmark consisting of 392 tasks for the generation of backend applications. We focus on backends for three critical reasons: (i) they are practically relevant, building the core components of most modern web and cloud software, (ii) they are difficult to get right, requiring multiple functions and files to achieve the desired functionality, and (iii) they are security-critical, as they are exposed to untrusted third-parties, making secure solutions that prevent deployment-time attacks an imperative. BaxBench validates the functionality of the generated applications with comprehensive test cases, and assesses their security exposure by executing end-to-end exploits. Our experiments reveal key limitations of current LLMs in both functionality and security: (i) even the best model, OpenAI o1, achieves a mere 62% on code correctness; (ii) on average, we could successfully execute security exploits on around half of the correct programs generated by each LLM; and (iii) in less popular backend frameworks, models further struggle to generate correct and secure applications. Progress on BaxBench signifies important steps towards autonomous and secure software development with LLMs.
Key facts. Cited by 38 papers in the map (data through 7 Oct 2026). Builds on 33 of its 48 references that are in the map. First posted on arXiv 17 Feb 2025.
Builds on
33 of 48 references.
References · 33
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2024GPT-4o System Cardcited by 4,467
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 956
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
21 more
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
- 2024Cybench: A Framework for Evaluating Cybersecurity Capabilities and Risks of Language Modelscited by 156
- 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 149
- 2023Purple Llama CyberSecEval: A Secure Coding Benchmark for Language Modelscited by 130
- 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agentscited by 129
- 2024IRIS: LLM-Assisted Static Analysis for Detecting Security Vulnerabilitiescited by 100
- 2024NYU CTF Bench: A Scalable Open-Source Benchmark Dataset for Evaluating LLMs in Offensive Securitycited by 90
- 2022Execution-Based Evaluation for Open-Domain Code Generationcited by 89
- 2024RedCode: Risky Code Execution and Generation Benchmark for Code Agentscited by 87
- 2024Instruction Tuning for Secure Code Generationcited by 63
- 2025CWEval: Outcome-driven Evaluation on Functionality and Security of LLM Code Generationcited by 55
- 2023CodeLMSec Benchmark: Systematically Evaluating and Finding Security Vulnerabilities in Black-Box Code Language Modelscited by 52
- 2024Constrained Decoding for Secure Code Generationcited by 35
- 2024Automatic Programming: Large Language Models and Beyondcited by 35
- 2024Sketch2Code: Evaluating Vision-Language Models for Interactive Web Design Prototypingcited by 29
- 2024ProSec: Fortifying Code LLMs with Proactive Security Alignmentcited by 24
- 2024Comparison of Static Application Security Testing Tools and Large Language Models for Repo-level Vulnerability Detectioncited by 18
- 2024Black-Box Adversarial Attacks on LLM-Based Code Completioncited by 13
- 2023"False negative -- that one is going to kill you": Understanding Industry Perspectives of Static Analysis based Security Testingcited by 8
Built on by
Citing papers per year: 2025: 14; 2026: 24.
38 papers.
Sort:
By area:
- 2025SWE-PolyBench: A multi-language benchmark for repository level evaluation of coding agentscited by 80
- 2025RealMath: A Continuous Benchmark for Evaluating Language Models on Research-Level Mathematicscited by 30
- 2026ExploitGym: Can AI Agents Turn Security Vulnerabilities into Real Attacks?cited by 24
- 2025Frontier AI's Impact on the Cybersecurity Landscapecited by 21
- 2026Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?cited by 19
- 2025Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Taskscited by 18
- 2025Nex-N1: Agentic Models Trained via a Unified Ecosystem for Large-Scale Environment Constructioncited by 17
- 2025Constrained Decoding of Diffusion LLMs with Context-Free Grammarscited by 13
- 2025A.S.E: A Repository-Level Benchmark for Evaluating Security in AI-Generated Codecited by 12
- 2025SecureVibeBench: Benchmarking Secure Vibe Coding of AI Agents via Reconstructing Vulnerability-Introducing Scenarioscited by 11
- 2026DevOps-Gym: Benchmarking AI Agents in Software DevOps Cyclecited by 9
- 2025Benchmarking Correctness and Security in Multi-Turn Code Generationcited by 4
26 more
- 2025AutoBaxBuilder: Bootstrapping Code Security Benchmarkingcited by 4
- 2026MOSAIC-Bench: Measuring Compositional Vulnerability Induction in Coding Agentscited by 3
- 2026Constraint Decay: The Fragility of LLM Agents in Backend Code Generationcited by 3
- 2025When "Correct" Is Not Safe: Can We Trust Functionally Correct Patches Generated by Code Agents?cited by 2
- 2025DualGauge: Automated Joint Security-Functionality Benchmarking of Specification-Only Code Generation by LLMs and Coding Agentscited by 1
- 2026Enhancing Reliability in LLM-Based Secure Code Generationcited by 1
- 2026Honeyval: A Comprehensive Evaluation Framework for LLM-powered HTTP Honeypotscited by 1
- 2026SEVRA-BENCH: Social Engineering of Vulnerabilities in Review Agentscited by 1
- 2026Snyk VulnBench JS 1.0: Can LLMs Find the Same Bugs Twice?cited by 1
- 2026Architecture as Capability Equalizer for Coding Agentscited by 1
- 2025Grounded AI for Code Review: Resource-Efficient Large-Model Serving in Enterprise Pipelinescited by 0
- 2025TypePilot: Leveraging the Scala Type System for Secure LLM-generated Codecited by 0
- 2026From Abstract to Contextual: What LLMs Still Cannot Do in Mathematicscited by 0
- 2026A Quasi-Experimental Developer Study of Security Training in LLM-Assisted Web Application Developmentcited by 0
- 2026SecureForge: Finding and Preventing Vulnerabilities in LLM-Generated Code via Prompt Optimizationcited by 0
- 2026CRAB-Bench: Evaluating LLM Agents under Complex Task Dependencies and Human-aligned User Simulationcited by 0
- 2026Activating Latent Security Knowledge through LLM-Guided Risk Analysis for Secure Code Generationcited by 0
- 2026SoK: AI Secure Code Generation: Progress, Pitfalls, and Paths Forwardcited by 0
- 2026The Patchwork Problem in LLM-Generated Codecited by 0
- 2026BackendForge: Benchmarking Agentic End-to-End Code Generation with Backend Servicescited by 0
- 2026Generative Compilation: On-the-Fly Compiler Feedback as AI Generates Codecited by 0
- 2026Vibe Coding and Web Application Security: A Twin-Prompt Studycited by 0
- 2026MACGen: Toward Functionally Correct and Secure Code Generation via Multi-Agent Collaborationcited by 0
- 2026MAGS: Multi-agent Auto-formalization Guarantees Safety for Agentic Outputscited by 0
- 2026SecureVibe: Making Vibe Coding More Securecited by 0
- 2026AuraForge: Scaling Security Supervision for Training Coding Agentscited by 0
- 2026AuraForge: Scaling Security Supervision for Training Coding Agents1 Oct 2026
- 2026SecureVibe: Making Vibe Coding More Secure29 Sep 2026
- 2026MAGS: Multi-agent Auto-formalization Guarantees Safety for Agentic Outputs16 Sep 2026
- 2026MACGen: Toward Functionally Correct and Secure Code Generation via Multi-Agent Collaboration26 Aug 2026
- 2026Architecture as Capability Equalizer for Coding Agents22 Aug 2026
- 2026Vibe Coding and Web Application Security: A Twin-Prompt Study21 Aug 2026
- 2026Generative Compilation: On-the-Fly Compiler Feedback as AI Generates Code15 Jul 2026
- 2026BackendForge: Benchmarking Agentic End-to-End Code Generation with Backend Services13 Jul 2026
- 2026The Patchwork Problem in LLM-Generated Code9 Jul 2026
- 2026SoK: AI Secure Code Generation: Progress, Pitfalls, and Paths Forward23 Jun 2026
- 2026Activating Latent Security Knowledge through LLM-Guided Risk Analysis for Secure Code Generation15 Jun 2026
- 2026Snyk VulnBench JS 1.0: Can LLMs Find the Same Bugs Twice?14 Jun 2026
26 more
- 2026SEVRA-BENCH: Social Engineering of Vulnerabilities in Review Agents11 Jun 2026
- 2026CRAB-Bench: Evaluating LLM Agents under Complex Task Dependencies and Human-aligned User Simulation1 Jun 2026
- 2026Honeyval: A Comprehensive Evaluation Framework for LLM-powered HTTP Honeypots28 May 2026
- 2026Enhancing Reliability in LLM-Based Secure Code Generation22 May 2026
- 2026ExploitGym: Can AI Agents Turn Security Vulnerabilities into Real Attacks?11 May 2026
- 2026SecureForge: Finding and Preventing Vulnerabilities in LLM-Generated Code via Prompt Optimization8 May 2026
- 2026Constraint Decay: The Fragility of LLM Agents in Backend Code Generation7 May 2026
- 2026MOSAIC-Bench: Measuring Compositional Vulnerability Induction in Coding Agents5 May 2026
- 2026A Quasi-Experimental Developer Study of Security Training in LLM-Assisted Web Application Development20 Apr 2026
- 2026Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?12 Feb 2026
- 2026From Abstract to Contextual: What LLMs Still Cannot Do in Mathematics30 Jan 2026
- 2026DevOps-Gym: Benchmarking AI Agents in Software DevOps Cycle27 Jan 2026
- 2025AutoBaxBuilder: Bootstrapping Code Security Benchmarking24 Dec 2025
- 2025Nex-N1: Agentic Models Trained via a Unified Ecosystem for Large-Scale Environment Construction4 Dec 2025
- 2025Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Tasks2 Dec 2025
- 2025DualGauge: Automated Joint Security-Functionality Benchmarking of Specification-Only Code Generation by LLMs and Coding Agents24 Nov 2025
- 2025When "Correct" Is Not Safe: Can We Trust Functionally Correct Patches Generated by Code Agents?15 Oct 2025
- 2025Benchmarking Correctness and Security in Multi-Turn Code Generation13 Oct 2025
- 2025TypePilot: Leveraging the Scala Type System for Secure LLM-generated Code13 Oct 2025
- 2025Grounded AI for Code Review: Resource-Efficient Large-Model Serving in Enterprise Pipelines11 Oct 2025
- 2025SecureVibeBench: Benchmarking Secure Vibe Coding of AI Agents via Reconstructing Vulnerability-Introducing Scenarios26 Sep 2025
- 2025A.S.E: A Repository-Level Benchmark for Evaluating Security in AI-Generated Code25 Aug 2025
- 2025Constrained Decoding of Diffusion LLMs with Context-Free Grammars13 Aug 2025
- 2025RealMath: A Continuous Benchmark for Evaluating Language Models on Research-Level Mathematics18 May 2025
- 2025SWE-PolyBench: A multi-language benchmark for repository level evaluation of coding agents11 Apr 2025
- 2025Frontier AI's Impact on the Cybersecurity Landscape7 Apr 2025
- 2025SWE-PolyBench: A multi-language benchmark for repository level evaluation of coding agentscited by 80
- 2026ExploitGym: Can AI Agents Turn Security Vulnerabilities into Real Attacks?cited by 24
- 2026Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?cited by 19
- 2025Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Taskscited by 18
- 2025Nex-N1: Agentic Models Trained via a Unified Ecosystem for Large-Scale Environment Constructioncited by 17
- 2025SecureVibeBench: Benchmarking Secure Vibe Coding of AI Agents via Reconstructing Vulnerability-Introducing Scenarioscited by 11
- 2026MOSAIC-Bench: Measuring Compositional Vulnerability Induction in Coding Agentscited by 3
- 2026Constraint Decay: The Fragility of LLM Agents in Backend Code Generationcited by 3
- 2025When "Correct" Is Not Safe: Can We Trust Functionally Correct Patches Generated by Code Agents?cited by 2
- 2025DualGauge: Automated Joint Security-Functionality Benchmarking of Specification-Only Code Generation by LLMs and Coding Agentscited by 1
- 2026SEVRA-BENCH: Social Engineering of Vulnerabilities in Review Agentscited by 1
- 2026Snyk VulnBench JS 1.0: Can LLMs Find the Same Bugs Twice?cited by 1
12 most cited of 20 All 20 (JSON)
- 2026AuraForge: Scaling Security Supervision for Training Coding Agents1 Oct 2026
- 2026MAGS: Multi-agent Auto-formalization Guarantees Safety for Agentic Outputs16 Sep 2026
- 2026MACGen: Toward Functionally Correct and Secure Code Generation via Multi-Agent Collaboration26 Aug 2026
- 2026Architecture as Capability Equalizer for Coding Agents22 Aug 2026
- 2026BackendForge: Benchmarking Agentic End-to-End Code Generation with Backend Services13 Jul 2026
- 2026SoK: AI Secure Code Generation: Progress, Pitfalls, and Paths Forward23 Jun 2026
- 2026Snyk VulnBench JS 1.0: Can LLMs Find the Same Bugs Twice?14 Jun 2026
- 2026SEVRA-BENCH: Social Engineering of Vulnerabilities in Review Agents11 Jun 2026
- 2026CRAB-Bench: Evaluating LLM Agents under Complex Task Dependencies and Human-aligned User Simulation1 Jun 2026
- 2026ExploitGym: Can AI Agents Turn Security Vulnerabilities into Real Attacks?11 May 2026
- 2026SecureForge: Finding and Preventing Vulnerabilities in LLM-Generated Code via Prompt Optimization8 May 2026
- 2026Constraint Decay: The Fragility of LLM Agents in Backend Code Generation7 May 2026
12 newest of 20 All 20 (JSON)
- 2025AutoBaxBuilder: Bootstrapping Code Security Benchmarkingcited by 4
- 2025AutoBaxBuilder: Bootstrapping Code Security Benchmarking24 Dec 2025
- 2025Frontier AI's Impact on the Cybersecurity Landscapecited by 21
- 2025Constrained Decoding of Diffusion LLMs with Context-Free Grammarscited by 13
- 2025A.S.E: A Repository-Level Benchmark for Evaluating Security in AI-Generated Codecited by 12
- 2026DevOps-Gym: Benchmarking AI Agents in Software DevOps Cyclecited by 9
- 2025Benchmarking Correctness and Security in Multi-Turn Code Generationcited by 4
- 2026Enhancing Reliability in LLM-Based Secure Code Generationcited by 1
- 2026Honeyval: A Comprehensive Evaluation Framework for LLM-powered HTTP Honeypotscited by 1
- 2025Grounded AI for Code Review: Resource-Efficient Large-Model Serving in Enterprise Pipelinescited by 0
- 2025TypePilot: Leveraging the Scala Type System for Secure LLM-generated Codecited by 0
- 2026From Abstract to Contextual: What LLMs Still Cannot Do in Mathematicscited by 0
- 2026A Quasi-Experimental Developer Study of Security Training in LLM-Assisted Web Application Developmentcited by 0
- 2026Activating Latent Security Knowledge through LLM-Guided Risk Analysis for Secure Code Generationcited by 0
12 most cited of 16 All 16 (JSON)
- 2026SecureVibe: Making Vibe Coding More Secure29 Sep 2026
- 2026Vibe Coding and Web Application Security: A Twin-Prompt Study21 Aug 2026
- 2026Generative Compilation: On-the-Fly Compiler Feedback as AI Generates Code15 Jul 2026
- 2026The Patchwork Problem in LLM-Generated Code9 Jul 2026
- 2026Activating Latent Security Knowledge through LLM-Guided Risk Analysis for Secure Code Generation15 Jun 2026
- 2026Honeyval: A Comprehensive Evaluation Framework for LLM-powered HTTP Honeypots28 May 2026
- 2026Enhancing Reliability in LLM-Based Secure Code Generation22 May 2026
- 2026A Quasi-Experimental Developer Study of Security Training in LLM-Assisted Web Application Development20 Apr 2026
- 2026From Abstract to Contextual: What LLMs Still Cannot Do in Mathematics30 Jan 2026
- 2026DevOps-Gym: Benchmarking AI Agents in Software DevOps Cycle27 Jan 2026
- 2025Benchmarking Correctness and Security in Multi-Turn Code Generation13 Oct 2025
- 2025TypePilot: Leveraging the Scala Type System for Secure LLM-generated Code13 Oct 2025
12 newest of 16 All 16 (JSON)