CyberSecEval 2: A Wide-Ranging Cybersecurity Evaluation Suite for Large Language Models
On the map: LLM safety and security → Prompt injection and agent security
Abstract (arXiv)
Large language models (LLMs) introduce new security risks, but there are few comprehensive evaluation suites to measure and reduce these risks. We present BenchmarkName, a novel benchmark to quantify LLM security risks and capabilities. We introduce two new areas for testing: prompt injection and code interpreter abuse. We evaluated multiple state-of-the-art (SOTA) LLMs, including GPT-4, Mistral, Meta Llama 3 70B-Instruct, and Code Llama. Our results show that conditioning away risk of attack remains an unsolved problem; for example, all tested models showed between 26% and 41% successful prompt injection tests. We further introduce the safety-utility tradeoff: conditioning an LLM to reject unsafe prompts can cause the LLM to falsely reject answering benign prompts, which lowers utility. We propose quantifying this tradeoff using False Refusal Rate (FRR). As an illustration, we introduce a novel test set to quantify FRR for cyberattack helpfulness risk. We find many LLMs able to successfully comply with "borderline" benign requests while still rejecting most unsafe requests. Finally, we quantify the utility of LLMs for automating a core cybersecurity task, that of exploiting software vulnerabilities. This is important because the offensive capabilities of LLMs are of intense interest; we quantify this by creating novel test sets for four representative problems. We find that models with coding capabilities perform better than those without, but that further work is needed for LLMs to become proficient at exploit generation. Our code is open source and can be used to evaluate other LLMs.
Key facts. Cited by 89 papers in the map (data through 14 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 6 of its 11 references that are in the map. First posted on arXiv 19 Apr 2024.
Builds on
6 of 11 references.
Closest ancestors · 1
Same direction, newest first
Other references · 5
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearningcited by 509
- 2023Purple Llama CyberSecEval: A Secure Coding Benchmark for Language Modelscited by 138
- 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoningcited by 59
- 2023SecQA: A Concise Question-Answering Dataset for Evaluating Large Language Models in Computer Securitycited by 37
Built on by
Citing papers per year: 2024: 23; 2025: 33; 2026: 33.
89 papers.
Sort:
By area:
- 2025WASP: Benchmarking Web Agent Security Against Prompt Injection Attackscited by 157
- 2025CVE-Bench: A Benchmark for AI Agents' Ability to Exploit Real-World Web Application Vulnerabilitiescited by 96
- 2024RedCode: Risky Code Execution and Generation Benchmark for Code Agentscited by 90
- 2025SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Taskscited by 75
- 2024Safetywashing: Do AI Safety Benchmarks Actually Measure Safety Progress?cited by 61
- 2025CWEval: Outcome-driven Evaluation on Functionality and Security of LLM Code Generationcited by 59
- 2024EnIGMA: Interactive Tools Substantially Assist LM Agents in Finding Security Vulnerabilitiescited by 52
- 2024Automated Red Teaming with GOAT: the Generative Offensive Agent Testercited by 45
- 2026SWE-Lego: Pushing the Limits of Supervised Fine-tuning for Software Issue Resolvingcited by 31
- 2025PropensityBench: Evaluating Latent Safety Risks in Large Language Models via an Agentic Approachcited by 22
- 2025PIShield: Detecting Prompt Injection Attacks via Intrinsic LLM Featurescited by 20
- 2025Fun-tuning: Characterizing the Vulnerability of Proprietary LLMs to Optimization-based Prompt Injection Attacks via the Fine-Tuning Interfacecited by 17
38 more
- 2024Attack Atlas: A Practitioner's Perspective on Challenges and Pitfalls in Red Teaming GenAIcited by 16
- 2025A Framework for Evaluating Emerging Cyberattack Capabilities of AIcited by 16
- 2025AutoAdvExBench: Benchmarking autonomous exploitation of adversarial example defensescited by 15
- 2025May I have your Attention? Breaking Fine-Tuning based Prompt Injection Defenses using Architecture-Aware Attackscited by 15
- 2025Alignment and Safety in Large Language Models: Safety Mechanisms, Training Paradigms, and Emerging Challengescited by 15
- 2026IH-Challenge: A Training Dataset to Improve Instruction Hierarchy on Frontier LLMscited by 15
- 2024Hacking CTFs with Plain Agentscited by 14
- 2025Benchmarking Practices in LLM-driven Offensive Security: Testbeds, Metrics, and Experiment Designcited by 14
- 2025CRAKEN: Cybersecurity LLM Agent with Knowledge-Based Executioncited by 14
- 2024Catastrophic Cyber Capabilities Benchmark (3CB): Robustly Evaluating LLM Agent Cyber Offense Capabilitiescited by 12
- 2025OCCULT: Evaluating Large Language Models for Offensive Cyber Operation Capabilitiescited by 12
- 2025Cybersecurity AI Benchmark (CAIBench): A Meta-Benchmark for Evaluating Cybersecurity AI Agentscited by 12
- 2024Badllama 3: removing safety finetuning from Llama 3 in minutescited by 11
- 2025A Contemporary Survey of Large Language Model Assisted Program Analysiscited by 11
- 2024Insights and Current Gaps in Open-Source LLM Vulnerability Scanners: A Comparative Analysiscited by 10
- 2025EconEvals: Benchmarks and Litmus Tests for Economic Decision-Making by LLM Agentscited by 10
- 2025SandboxEval: Towards Securing Test Environment for Untrusted Codecited by 10
- 2025LLMSecConfig: An LLM-Based Approach for Fixing Software Container Misconfigurationscited by 9
- 2025RedCodeAgent: Automatic Red-teaming Agent against Diverse Code Agentscited by 9
- 2024INDICT: Code Generation with Internal Dialogues of Critiques for Both Security and Helpfulnesscited by 8
- 2024Efficient Federated Intrusion Detection in 5G ecosystem using optimized BERT-based modelcited by 8
- 2025Dynamic Risk Assessments for Offensive Cybersecurity Agentscited by 8
- 2025SV-TrustEval-C: Evaluating Structure and Semantic Reasoning in Large Language Models for Source Code Vulnerability Analysiscited by 8
- 2024eyeballvul: a future-proof benchmark for vulnerability detection in the wildcited by 6
- 2024CIPHER: Cybersecurity Intelligent Penetration-testing Helper for Ethical Researchercited by 6
- 2025Logic layer Prompt Control Injection (LPCI): A Novel Security Vulnerability Class in Agentic Systemscited by 6
- 2024Are You Human? An Adversarial Benchmark to Expose LLMscited by 5
- 2024Dynamic Intelligence Assessment: Benchmarking LLMs on the Road to AGI with a Focus on Model Confidencecited by 5
- 2025Evaluating AI cyber capabilities with crowdsourced elicitationcited by 5
- 2026HardSecBench: Benchmarking the Security Awareness of LLMs for Hardware Code Generationcited by 5
- 2026CIBER: A Comprehensive Benchmark for Security Evaluation of Code Interpreter Agentscited by 5
- 2026Agent Memory Is a Surface for Endogenous Authorization Launderingcited by 5
- 2024SeCodePLT: A Unified Platform for Evaluating the Security of Code GenAIcited by 4
- 2024What AI evaluations for preventing catastrophic risks can and cannot docited by 4
- 2025DefenderBench: A Toolkit for Evaluating Language Agents in Cybersecurity Environmentscited by 4
- 2026Towards Optimal Agentic Architectures for Offensive Security Taskscited by 4
- 2024A Misleading Gallery of Fluid Motion by Generative Artificial Intelligencecited by 3
- 2024Rethinking CyberSecEval: An LLM-Aided Approach to Evaluation Critiquecited by 3
50 most cited of 89 All 89 (JSON)
- 2026LTBD: Learnable Trust-Boundary Delimiters for Prompt Injection Defense8 Oct 2026
- 2026Safeguarding LLMs via Model-Agnostic Latent Safety Signals from Dark Knowledge5 Oct 2026
- 2026ANT: A Multi-Granularity Network Traffic Dataset and Benchmark for Agents Behavior Auditing5 Oct 2026
- 2026Trustworthy Agentic AI: A Comprehensive Cybersecurity and Systems Survey on Threat Landscapes, Defense Architectures, and Open Challenges12 Sep 2026
- 2026Staying on the Attack Path: Structured State for Long-Horizon Automated Penetration Testing7 Sep 2026
- 2026Agent Memory Is a Surface for Endogenous Authorization Laundering1 Sep 2026
- 2026Same Request, Different Boundary: Evaluating Cybersecurity Assistance across Conversational Contexts1 Sep 2026
- 2026Thomson: Continual Learning of Frontier Models for SovereignAI27 Aug 2026
- 2026Detecting Contaminated Code-Generation Prompt Batches via Influence Functions14 Aug 2026
- 2026Trident : How to Break Deep Reinforcement Learning Cyber Defenses (Agentic)5 Aug 2026
- 2026Cyber-Capable AI Agents: Vulnerabilities, Evaluation Containment, and Defensive Response28 Jul 2026
- 2026Beyond Success Rate: Cost-Aware Evaluation of Offensive and Defensive Security Agents16 Jul 2026
38 more
- 2026Beyond Refusal: A Same-Lineage Study of Aligned and Abliterated LLMs for Vulnerability Analysis7 Jul 2026
- 2026An Empirical Study of Security Calibration in Large Language Models for Code30 Jun 2026
- 2026SoK: AI Secure Code Generation: Progress, Pitfalls, and Paths Forward23 Jun 2026
- 2026HarmProfile: Characterizing Harmful Distributions in Frontier LLMs11 Jun 2026
- 2026Are Frontier LLMs Ready for Cybersecurity? Evidence for Vertical Foundation Models from Dual-Mode Vulnerability Benchmarks22 May 2026
- 2026Boiling the Frog: A Multi-Turn Benchmark for Agentic Safety21 May 2026
- 2026Refusal Evaluation in Coding LLMs and Code Agents: A Systematic Review of Thirteen Malicious-Code Prompt Corpora (2023-2025)19 May 2026
- 2026Measuring Safety Alignment Effects in Autonomous Security Agents19 May 2026
- 2026Benchmarking Mythos-Linked Bug Rediscovery17 May 2026
- 2026Muse Spark Safety & Preparedness Report14 May 2026
- 2026CyBiasBench: Benchmarking Bias in LLM Agents for Cyber-Attack Scenarios8 May 2026
- 2026CyberCertBench: Evaluating LLMs in Cybersecurity Certification Knowledge22 Apr 2026
- 2026Towards Optimal Agentic Architectures for Offensive Security Tasks20 Apr 2026
- 2026VulnAgent-R2: Evidence-Calibrated Multi-Agent Auditing for Repository-Level Vulnerability Detection11 Mar 2026
- 2026IH-Challenge: A Training Dataset to Improve Instruction Hierarchy on Frontier LLMs11 Mar 2026
- 2026CIBER: A Comprehensive Benchmark for Security Evaluation of Code Interpreter Agents23 Feb 2026
- 2026A Content-Based Framework for Cybersecurity Refusal Decisions in Large Language Models17 Feb 2026
- 2026Autoregressive, Yet Revisable: In Decoding Revision for Secure Code Generation1 Feb 2026
- 2026Minerva: Reinforcement Learning with Verifiable Rewards for Cyber Threat Intelligence LLMs31 Jan 2026
- 2026HardSecBench: Benchmarking the Security Awareness of LLMs for Hardware Code Generation20 Jan 2026
- 2026SWE-Lego: Pushing the Limits of Supervised Fine-tuning for Software Issue Resolving4 Jan 2026
- 2025Assessing the Software Security Comprehension of Large Language Models24 Dec 2025
- 2025PropensityBench: Evaluating Latent Safety Risks in Large Language Models via an Agentic Approach24 Nov 2025
- 2025Secure Code Generation at Scale with Reflexion5 Nov 2025
- 2025Adapting Large Language Models to Emerging Cybersecurity using Retrieval Augmented Generation31 Oct 2025
- 2025Cybersecurity AI Benchmark (CAIBench): A Meta-Benchmark for Evaluating Cybersecurity AI Agents28 Oct 2025
- 2025BlueCodeAgent: A Blue Teaming Agent Enabled by Automated Red Teaming for CodeGen AI20 Oct 2025
- 2025PIShield: Detecting Prompt Injection Attacks via Intrinsic LLM Features15 Oct 2025
- 2025RedCodeAgent: Automatic Red-teaming Agent against Diverse Code Agents2 Oct 2025
- 2025Neuro-Symbolic AI for Cybersecurity: State of the Art, Challenges, and Opportunities8 Sep 2025
- 2025Alignment and Safety in Large Language Models: Safety Mechanisms, Training Paradigms, and Emerging Challenges25 Jul 2025
- 2025Logic layer Prompt Control Injection (LPCI): A Novel Security Vulnerability Class in Agentic Systems14 Jul 2025
- 2025May I have your Attention? Breaking Fine-Tuning based Prompt Injection Defenses using Architecture-Aware Attacks10 Jul 2025
- 2025SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Tasks13 Jun 2025
- 2025DefenderBench: A Toolkit for Evaluating Language Agents in Cybersecurity Environments31 May 2025
- 2025SV-TrustEval-C: Evaluating Structure and Semantic Reasoning in Large Language Models for Source Code Vulnerability Analysis27 May 2025
- 2025Evaluating AI cyber capabilities with crowdsourced elicitation26 May 2025
- 2025Dynamic Risk Assessments for Offensive Cybersecurity Agents23 May 2025
50 newest of 89 All 89 (JSON)
- 2025WASP: Benchmarking Web Agent Security Against Prompt Injection Attackscited by 157
- 2025CVE-Bench: A Benchmark for AI Agents' Ability to Exploit Real-World Web Application Vulnerabilitiescited by 96
- 2024RedCode: Risky Code Execution and Generation Benchmark for Code Agentscited by 90
- 2025SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Taskscited by 75
- 2024EnIGMA: Interactive Tools Substantially Assist LM Agents in Finding Security Vulnerabilitiescited by 52
- 2024Automated Red Teaming with GOAT: the Generative Offensive Agent Testercited by 45
- 2025PropensityBench: Evaluating Latent Safety Risks in Large Language Models via an Agentic Approachcited by 22
- 2024Hacking CTFs with Plain Agentscited by 14
- 2025CRAKEN: Cybersecurity LLM Agent with Knowledge-Based Executioncited by 14
- 2024Catastrophic Cyber Capabilities Benchmark (3CB): Robustly Evaluating LLM Agent Cyber Offense Capabilitiescited by 12
- 2025Cybersecurity AI Benchmark (CAIBench): A Meta-Benchmark for Evaluating Cybersecurity AI Agentscited by 12
- 2025EconEvals: Benchmarks and Litmus Tests for Economic Decision-Making by LLM Agentscited by 10
12 most cited of 31 All 31 (JSON)
- 2026ANT: A Multi-Granularity Network Traffic Dataset and Benchmark for Agents Behavior Auditing5 Oct 2026
- 2026Trustworthy Agentic AI: A Comprehensive Cybersecurity and Systems Survey on Threat Landscapes, Defense Architectures, and Open Challenges12 Sep 2026
- 2026Agent Memory Is a Surface for Endogenous Authorization Laundering1 Sep 2026
- 2026Trident : How to Break Deep Reinforcement Learning Cyber Defenses (Agentic)5 Aug 2026
- 2026Cyber-Capable AI Agents: Vulnerabilities, Evaluation Containment, and Defensive Response28 Jul 2026
- 2026SoK: AI Secure Code Generation: Progress, Pitfalls, and Paths Forward23 Jun 2026
- 2026Boiling the Frog: A Multi-Turn Benchmark for Agentic Safety21 May 2026
- 2026Refusal Evaluation in Coding LLMs and Code Agents: A Systematic Review of Thirteen Malicious-Code Prompt Corpora (2023-2025)19 May 2026
- 2026Measuring Safety Alignment Effects in Autonomous Security Agents19 May 2026
- 2026CyBiasBench: Benchmarking Bias in LLM Agents for Cyber-Attack Scenarios8 May 2026
- 2026Towards Optimal Agentic Architectures for Offensive Security Tasks20 Apr 2026
- 2026VulnAgent-R2: Evidence-Calibrated Multi-Agent Auditing for Repository-Level Vulnerability Detection11 Mar 2026
12 newest of 31 All 31 (JSON)
- 2025PIShield: Detecting Prompt Injection Attacks via Intrinsic LLM Featurescited by 20
- 2025Fun-tuning: Characterizing the Vulnerability of Proprietary LLMs to Optimization-based Prompt Injection Attacks via the Fine-Tuning Interfacecited by 17
- 2024Attack Atlas: A Practitioner's Perspective on Challenges and Pitfalls in Red Teaming GenAIcited by 16
- 2025May I have your Attention? Breaking Fine-Tuning based Prompt Injection Defenses using Architecture-Aware Attackscited by 15
- 2026IH-Challenge: A Training Dataset to Improve Instruction Hierarchy on Frontier LLMscited by 15
- 2024Badllama 3: removing safety finetuning from Llama 3 in minutescited by 11
- 2024Insights and Current Gaps in Open-Source LLM Vulnerability Scanners: A Comparative Analysiscited by 10
- 2026HarmProfile: Characterizing Harmful Distributions in Frontier LLMscited by 1
- 2026Safeguarding LLMs via Model-Agnostic Latent Safety Signals from Dark Knowledgecited by 0
- 2026LTBD: Learnable Trust-Boundary Delimiters for Prompt Injection Defensecited by 0
- 2026LTBD: Learnable Trust-Boundary Delimiters for Prompt Injection Defense8 Oct 2026
- 2026Safeguarding LLMs via Model-Agnostic Latent Safety Signals from Dark Knowledge5 Oct 2026
- 2026HarmProfile: Characterizing Harmful Distributions in Frontier LLMs11 Jun 2026
- 2026IH-Challenge: A Training Dataset to Improve Instruction Hierarchy on Frontier LLMs11 Mar 2026
- 2025PIShield: Detecting Prompt Injection Attacks via Intrinsic LLM Features15 Oct 2025
- 2025May I have your Attention? Breaking Fine-Tuning based Prompt Injection Defenses using Architecture-Aware Attacks10 Jul 2025
- 2025Fun-tuning: Characterizing the Vulnerability of Proprietary LLMs to Optimization-based Prompt Injection Attacks via the Fine-Tuning Interface16 Jan 2025
- 2024Insights and Current Gaps in Open-Source LLM Vulnerability Scanners: A Comparative Analysis21 Oct 2024
- 2024Attack Atlas: A Practitioner's Perspective on Challenges and Pitfalls in Red Teaming GenAI23 Sep 2024
- 2024Badllama 3: removing safety finetuning from Llama 3 in minutes1 Jul 2024
- 2025SV-TrustEval-C: Evaluating Structure and Semantic Reasoning in Large Language Models for Source Code Vulnerability Analysiscited by 8
- 2024Ollabench: Evaluating LLMs' Reasoning for Human-centric Interdependent Cybersecuritycited by 2
- 2025EVALOOOP: A Self-Consistency-Centered Framework for Assessing Large Language Model Robustness in Programmingcited by 1
- 2025SV-TrustEval-C: Evaluating Structure and Semantic Reasoning in Large Language Models for Source Code Vulnerability Analysis27 May 2025
- 2025EVALOOOP: A Self-Consistency-Centered Framework for Assessing Large Language Model Robustness in Programming18 May 2025
- 2024Ollabench: Evaluating LLMs' Reasoning for Human-centric Interdependent Cybersecurity11 Jun 2024
- 2024Safetywashing: Do AI Safety Benchmarks Actually Measure Safety Progress?cited by 61
- 2025CWEval: Outcome-driven Evaluation on Functionality and Security of LLM Code Generationcited by 59
- 2026SWE-Lego: Pushing the Limits of Supervised Fine-tuning for Software Issue Resolvingcited by 31
- 2025A Framework for Evaluating Emerging Cyberattack Capabilities of AIcited by 16
- 2025AutoAdvExBench: Benchmarking autonomous exploitation of adversarial example defensescited by 15
- 2025Benchmarking Practices in LLM-driven Offensive Security: Testbeds, Metrics, and Experiment Designcited by 14
- 2025OCCULT: Evaluating Large Language Models for Offensive Cyber Operation Capabilitiescited by 12
- 2025A Contemporary Survey of Large Language Model Assisted Program Analysiscited by 11
- 2025SandboxEval: Towards Securing Test Environment for Untrusted Codecited by 10
- 2025LLMSecConfig: An LLM-Based Approach for Fixing Software Container Misconfigurationscited by 9
- 2024INDICT: Code Generation with Internal Dialogues of Critiques for Both Security and Helpfulnesscited by 8
- 2024Efficient Federated Intrusion Detection in 5G ecosystem using optimized BERT-based modelcited by 8
12 most cited of 43 All 43 (JSON)
- 2026Staying on the Attack Path: Structured State for Long-Horizon Automated Penetration Testing7 Sep 2026
- 2026Same Request, Different Boundary: Evaluating Cybersecurity Assistance across Conversational Contexts1 Sep 2026
- 2026Thomson: Continual Learning of Frontier Models for SovereignAI27 Aug 2026
- 2026Detecting Contaminated Code-Generation Prompt Batches via Influence Functions14 Aug 2026
- 2026Beyond Success Rate: Cost-Aware Evaluation of Offensive and Defensive Security Agents16 Jul 2026
- 2026Beyond Refusal: A Same-Lineage Study of Aligned and Abliterated LLMs for Vulnerability Analysis7 Jul 2026
- 2026An Empirical Study of Security Calibration in Large Language Models for Code30 Jun 2026
- 2026Are Frontier LLMs Ready for Cybersecurity? Evidence for Vertical Foundation Models from Dual-Mode Vulnerability Benchmarks22 May 2026
- 2026Benchmarking Mythos-Linked Bug Rediscovery17 May 2026
- 2026Muse Spark Safety & Preparedness Report14 May 2026
- 2026CyberCertBench: Evaluating LLMs in Cybersecurity Certification Knowledge22 Apr 2026
- 2026Autoregressive, Yet Revisable: In Decoding Revision for Secure Code Generation1 Feb 2026
12 newest of 43 All 43 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Analysing Safety Risks in LLMs Fine-Tuned with Pseudo-Malicious Cyber Security Data
- 2025Running in CIRCLE? A Simple Benchmark for LLM Code Interpreter Security
- 2024Threat Modelling and Risk Analysis for Large Language Model (LLM)-Powered Applications
- 2025Prompt Injection as an Emerging Threat: Evaluating the Resilience of Large Language Models
- 2025A Critical Evaluation of Defenses against Prompt Injection Attacks
- 2025LLM-Safety Evaluations Lack Robustness
- 2025CyberLLMInstruct: A Pseudo-malicious Dataset Revealing Safety-performance Trade-offs in Cyber Security LLM Fine-tuning
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniques