DefenderBench: A Toolkit for Evaluating Language Agents in Cybersecurity Environments

Chiyu Zhang, Marc-Alexandre Cote, Michael Albada, Anush Sankaran, Jack W. Stokes +4 more
5/31/2025
5 citations
cs.CL
benchmark-dataset

Official code: microsoft/DefenderBench (36 stars, Python, last commit 2025-07-09).

Abstract

Large language model (LLM) agents have shown impressive capabilities in human language comprehension and reasoning, yet their potential in cybersecurity remains underexplored. We introduce DefenderBench, a practical, open-source toolkit for evaluating language agents across offense, defense, and cybersecurity knowledge-based tasks.

Show full abstract

DefenderBench includes environments for network intrusion, malicious content detection, code vulnerability analysis, and cybersecurity knowledge assessment. It is intentionally designed to be affordable and easily accessible for researchers while providing fair and rigorous assessment. We benchmark several state-of-the-art (SoTA) and popular LLMs, including both open- and closed-weight models, using a standardized agentic framework. Our results show that Claude-3.7-sonnet performs best with a DefenderBench score of 81.65, followed by Claude-3.7-sonnet-think with 78.40, while the best open-weight model, Llama 3.3 70B, is not far behind with a DefenderBench score of 71.81. DefenderBench's modular design allows seamless integration of custom LLMs and tasks, promoting reproducibility and fair comparisons. An anonymized version of DefenderBench is available at https://github.com/microsoft/DefenderBench.

View on arXivView PDF

Code Implementations(1)

Rigorously evaluating autonomous systems for cybersecurity at scale

3615PythonApr 10, 20251 years agoNOASSERTION

Similar Papers

Cite this paper

@article{zhang2025defenderbench,
  title  = {DefenderBench: A Toolkit for Evaluating Language Agents in Cybersecurity Environments},
  author = {Chiyu Zhang and Marc-Alexandre Cote and Michael Albada and Anush Sankaran and Jack W. Stokes and Tong Wang and Amir Abdi and William Blum and Muhammad Abdul-Mageed},
  year   = {2025},
  eprint = {2506.00739},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.00739v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.00739.svg)](https://codeofpaper.com/paper/2506.00739)

Discussion