Index / Computing / Database and network design and administration
CWE-bench
collinear-ai/cwe-bench
Find and fix one planted security weakness in a codebase without breaking its normal behaviour.
Good for
- defensive security RL
- multi-language patching
- exploit-based grading
Reward
- How it is scored
- Programmatic check
- Signal
- Pass or fail
Executable grading runs exploit inputs and legitimate cases against the patched code; a fix counts only if the weakness is closed and normal behaviour is kept.
How to run it
1. Get the filesthe whole repository, to a local folder
hf download collinear-ai/cwe-bench --repo-type dataset --local-dir cwe-bench
This repository is gated: request access on the Hub and log in with hf auth login first.