Dataset · collinear-ai
Code vulnerability search and patch benchmark (CWE-bench)
collinear-ai/cwe-bench
100 practical cybersecurity tasks across 8 languages to test AI agents in finding and fixing vulnerabilities without breaking code.
What's inside
The dataset contains 100 text tasks (fewer than 1,000 records) covering 91 vulnerability types according to the CWE classification across 8 programming languages. In each task, the agent is given a codebase with a single vulnerability that must be fixed without disrupting the normal operation of the program. Evaluation is fully automated by running exploits and functional tests on the patched code.
What you can do with it
- Benchmarking autonomous AI agents for automated code auditing and patching (AppSec)
- Reinforcement learning (RL) for safe code generation models based on executable rewards
- Size
- up to 1K rows
- Downloads this month
- 8.1K
- Likes
- 23
- Access
- on request on Hugging Face
How to load it
from datasets import load_dataset
ds = load_dataset("collinear-ai/cwe-bench")