HardEval: An Execution-Verified Benchmark for AI-Driven Security Hardening and Compliance Remediation
Manohar Vellala, Soumya Banerjee, Sandip Roy, Ross Gore, Sachin Shetty
Key points
From the paper's conclusion- A recurring failure mode is plausible security code that does not satisfy the exact compliance condition.
Abstract
Implementing Security Technical Implementation Guide (STIG) controls remains a demanding operating-system administration task. Each natural-language security requirement must be translated into a precise and persistent configuration change. These changes span Secure Shell (SSH) configuration, authentication policy, audit rules, and kernel parameters. Existing benchmarks do not measure whether a model can perform this task on a live system. Code benchmarks evaluate isolated programs without persistent system state, while agent benchmarks largely focus on applications rather than operating-system configuration. In this paper, we introduce \textbf{HardEval}, an execution-verified benchmark for evaluating language-model-assisted security hardening. HardEval is built from Red Hat Enterprise Linux 8 STIG controls that fail on an unhardened baseline system. Expert-written reference remediations and Open Vulnerability and Assessment Language (OVAL) checks serve as hidden ground truth for grading; they are never shown to the model, and each task states only the required security outcome while withholding the implementation. The model produces a Bash script, which is executed on a live virtual machine and graded from fail to pass using the corresponding OpenSCAP/OVAL compliance check. Evaluation of fourteen frontier and open-weight configurations reveals large and uneven capability differences across security domains. A recurring failure mode is plausible security code that does not satisfy the exact compliance condition. For four open-weight configurations, multi-run Wilson confidence intervals preserve the observed ordering. HardEval is publicly available.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- VeriHarm-Bench: Measuring Harmful Success in LLM Coding Agents VerifiablyarXiv · 2026
- Toward Secure Code Generation: Bridging Correctness and Security via Task-Adaptive Vulnerability Modeling and Execution-Based BenchmarkingProceedings of the ACM on software engineering. · 2026
- Applying Security by Design at the Point of Execution: How Governed Security Requirements Affect the Security of AI-Generated CodearXiv · 2026
- VAST: Compiling Grounded Vulnerability Scenarios into Verifiable, Multi-Step Environments for Evaluating LLM Red-Team AgentsarXiv · 2026
- Who Grades the Agent? Privilege Separation for Coding-Agent BenchmarksarXiv · 2026
- Evaluating and Preventing Security Smells in AI-Generated Ansible CodearXiv · 2026