HardEval:面向AI驱动安全加固与合规修复的执行验证基准 HardEval: An Execution-Verified Benchmark for AI-Driven Security Hardening and Compliance Remediation 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-16
⬇️ 1 次下载
👁️ 预览文献
💡 AI 中文简介
现有代码和智能体基准无法衡量模型能否在真实系统上完成安全加固。作者构建了HardEval基准,基于红帽企业Linux 8的STIG安全控制项,要求模型仅根据安全目标编写Bash脚本,在真实虚拟机上执行,并用OpenSCAP/OVAL合规检查自动判分。测试14个前沿与开源模型配置后发现,各安全领域能力差异显著,常见失败是代码看似合理却不满足精确合规条件。该基准为评估AI系统运维安全能力提供了可复现的实测标准。
领域AI安全与系统运维(LLM智能体评测)
适合谁读需要一定专业背景(了解Linux系统管理与安全合规)
核心贡献首次构建在真实虚拟机上执行并用OVAL合规检查自动判分的系统安全加固基准;采用隐藏参考答案与仅给出安全目标的设定,避免模型照抄实现,真实检验其将自然语言安全要求转化为持久配置的能力。
关键数据基于RHEL 8 STIG控制项构建;评测14个前沿与开源模型配置,显示安全领域间能力差异大且不均衡;对4个开源配置用多次运行的Wilson置信区间验证排序稳定;主要失败模式为代码看似合理但未满足精确合规条件。
推荐理由想了解大模型到底能不能真把Linux系统配安全?这个基准直接在真机上跑脚本、用合规检查打分,结果比刷题式评测靠谱得多。
关键词["安全加固", "合规修复", "基准评测", "大语言模型", "STIG", "执行验证"]

原文摘要

查看英文原文摘要

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.