SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Tasks

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Lee, Hwiwon, Zhang, Ziqi, Lu, Hanxiao, Zhang, Lingming
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917033315139584
author Lee, Hwiwon
Zhang, Ziqi
Lu, Hanxiao
Zhang, Lingming
author_facet Lee, Hwiwon
Zhang, Ziqi
Lu, Hanxiao
Zhang, Lingming
contents Rigorous security-focused evaluation of large language model (LLM) agents is imperative for establishing trust in their safe deployment throughout the software development lifecycle. However, existing benchmarks largely rely on synthetic challenges or simplified vulnerability datasets that fail to capture the complexity and ambiguity encountered by security engineers in practice. We introduce SEC-bench, the first fully automated benchmarking framework for evaluating LLM agents on authentic security engineering tasks. SEC-bench employs a novel multi-agent scaffold that automatically constructs code repositories with harnesses, reproduces vulnerabilities in isolated environments, and generates gold patches for reliable evaluation. Our framework automatically creates high-quality software vulnerability datasets with reproducible artifacts at a cost of only $0.87 per instance. Using SEC-bench, we implement two critical software security tasks to rigorously evaluate LLM agents' capabilities: proof-of-concept (PoC) generation and vulnerability patching. A comprehensive evaluation of state-of-the-art LLM code agents reveals significant performance gaps, achieving at most 18.0% success in PoC generation and 34.0% in vulnerability patching on our complete dataset. These results highlight the crucial steps needed toward developing LLM agents that are more practical, intelligent, and autonomous for security engineering.
format Preprint
id arxiv_https___arxiv_org_abs_2506_11791
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Tasks
Lee, Hwiwon
Zhang, Ziqi
Lu, Hanxiao
Zhang, Lingming
Machine Learning
Cryptography and Security
Rigorous security-focused evaluation of large language model (LLM) agents is imperative for establishing trust in their safe deployment throughout the software development lifecycle. However, existing benchmarks largely rely on synthetic challenges or simplified vulnerability datasets that fail to capture the complexity and ambiguity encountered by security engineers in practice. We introduce SEC-bench, the first fully automated benchmarking framework for evaluating LLM agents on authentic security engineering tasks. SEC-bench employs a novel multi-agent scaffold that automatically constructs code repositories with harnesses, reproduces vulnerabilities in isolated environments, and generates gold patches for reliable evaluation. Our framework automatically creates high-quality software vulnerability datasets with reproducible artifacts at a cost of only $0.87 per instance. Using SEC-bench, we implement two critical software security tasks to rigorously evaluate LLM agents' capabilities: proof-of-concept (PoC) generation and vulnerability patching. A comprehensive evaluation of state-of-the-art LLM code agents reveals significant performance gaps, achieving at most 18.0% success in PoC generation and 34.0% in vulnerability patching on our complete dataset. These results highlight the crucial steps needed toward developing LLM agents that are more practical, intelligent, and autonomous for security engineering.
title SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Tasks
topic Machine Learning
Cryptography and Security
url https://arxiv.org/abs/2506.11791