SABER
收藏资源简介:
SABER是由多所顶尖学术机构联合创建的环境感知操作安全基准测试数据集,旨在评估大型语言模型作为编码智能体在真实项目工作空间中的安全性。该数据集包含716个可执行任务,覆盖了嵌入项目工件中的恶意指令、智能体自主选择的风险操作以及依赖上下文的安全警告三大风险维度,通过Docker沙箱环境模拟了包含源代码、配置文件和Git历史的项目工作空间。数据集的构建过程整合了现有智能体安全基准、公共CVE漏洞报告以及实际工作流模板,确保了任务的可执行性和可检测性。该数据集主要应用于人工智能安全领域,旨在解决当前模型在动态、多步骤项目环境中操作安全评估的不足,为提升智能体在现实工作空间中的安全对齐提供关键基准。
SABER is an environment-aware operational safety benchmark dataset jointly created by multiple top-tier academic institutions, aimed at evaluating the safety of large language models (LLMs) acting as coding AI Agents within real-world project workspaces. This dataset comprises 716 executable tasks covering three risk dimensions: malicious instructions embedded in project artifacts, risky operations autonomously selected by AI Agents, and context-dependent security warnings. It simulates project workspaces containing source code, configuration files, and Git histories via Docker sandbox environments. The dataset construction process integrates existing AI Agent security benchmarks, public CVE vulnerability reports, and real-world workflow templates to ensure the executability and detectability of the tasks. Primarily applied in the field of AI safety, this dataset aims to address the current gaps in operational safety assessment of models in dynamic, multi-step project environments, providing a critical benchmark for enhancing the safety alignment of AI Agents in real-world workspaces.
数据集概述:SABER(Stateful Project Workspace Safety Benchmark)
SABER 是一个用于评估 LLM 编程智能体在有状态项目工作区中操作安全性的基准测试套件。该数据集源自同名论文,包含基准任务定义、沙箱运行时、评判流程以及基线复现工具。
核心内容
- 任务(tasks/):基准测试任务定义与元数据。
- 运行时环境:
sandbox_shell.py:沙箱执行环境。task_runtime.py与mcp_runtime.py:任务运行与工具运行时。
- 推理与评判:
run_osbench.py:历史推理入口。judge_osbench.py:历史评判入口。
- 基线复现(baselines/):用于复现外部基线评估的脚本与数据。
- 文档(docs/):设计笔记、内部报告及与论文相关的材料。
使用方式
- 将
config.example.json复制为config.json,并填写评判模型与目标模型的 API 凭据。 - 参照
RUNNING.md进行推理、评判及结果检查。 - 使用
baselines/README.md复现外部基准对比。
仓库结构
SABER/ ├── README.md ├── RUNNING.md ├── CONTRIBUTING.md ├── AGENTS.md ├── Dockerfile ├── config.example.json ├── tasks/ ├── results/ ├── judged/ ├── docs/ ├── scripts/ ├── baselines/ ├── run_osbench.py ├── judge_osbench.py ├── sandbox_shell.py ├── task_runtime.py └── mcp_runtime.py
许可证
采用混合许可结构:
- 源代码、脚本、Docker/配置文件及软件文档:Apache License 2.0。
- SABER 撰写的任务文本、注释、任务元数据等非代码基准材料:Creative Commons Attribution 4.0 International。
- 第三方基准资产(
baselines/benchmarks/中):保留上游许可证与署名要求。

- 1SABER: Benchmarking Operational Safety of LLM Coding Agents in Stateful Project Workspaces香港大学; 山东大学; 卡内基梅隆大学; 新加坡国立大学; 香港科技大学 · 2026年




