BAD-ACTS
收藏资源简介:
BAD-ACTS数据集旨在评估基于LLM的代理系统在面对旨在诱使其执行有害行为的攻击时的鲁棒性。该数据集由四个不同应用环境中的代理系统实现以及188个高质量的有害行为示例组成。这些示例涵盖了代理系统可能造成的各种潜在危害,包括执行未经授权的操作、将恶意代码注入软件以及生成有害内容等。该数据集模块化和可扩展,允许在未来工作中根据需要包括更多环境和数据点。BAD-ACTS为代理系统的安全性研究提供了一个多样化的测试平台,有助于评估代理系统在面对恶意行为和代理间的操纵尝试时的鲁棒性。
The BAD-ACTS dataset aims to evaluate the robustness of LLM-based agent systems against attacks that attempt to induce them to perform harmful behaviors. This dataset consists of agent system implementations across four distinct application environments and 188 high-quality harmful behavior examples. These examples cover a wide range of potential harms that agent systems may cause, including unauthorized operations, injecting malicious code into software, generating harmful content, and more. This dataset is modular and scalable, allowing for the inclusion of additional environments and data points as needed in future work. BAD-ACTS provides a diverse testbed for security research on agent systems, facilitating the evaluation of their robustness against malicious behaviors and inter-agent manipulation attempts.
BAD-ACTS Benchmark 数据集概述
数据集简介
BAD-ACTS(Benchmark of ADversarial ACTionS)是一个综合性基准测试,旨在评估智能体系统对抗对抗性操纵的鲁棒性,这些操纵可能导致有害或不期望的行为。该基准测试在论文《Benchmarking the Robustness of Agentic Systems to Adversarially-Induced Harmful Actions》中提出,提供了一个结构化框架来分析不同类型智能体系统对对抗性影响的敏感性。
数据集内容
- 环境代码:包含四个基准测试环境的源代码(旅行规划、金融文章撰写、代码生成和多智能体辩论)
- 对抗性动作数据集:包含有害动作的数据集文件(BAD-ACTS.csv)
- 智能体实现:对抗性和防御性智能体的实现代码
- 评估功能:针对每个环境定制的评估函数
- 实验脚本:运行个体实验和批量实验的脚本工具
技术特性
- 支持模型:兼容通过Ollama托管的模型和OpenAI模型
- 实验环境:旅行规划、金融文章撰写、代码生成、多智能体辩论
- 防护机制:支持对抗性动作警告(AAW)提示和守护智能体干预功能
- 实验追踪:支持通过唯一标识符进行实验追踪和日志记录
使用要求
- Python 3.10或更高版本
- 使用OpenAI API需要设置OPENAI_API_KEY环境变量
实验运行方式
- 个体实验:通过run_experiments.py脚本运行,可自定义环境、模型和智能体参数
- 批量实验:通过scripts目录下的批处理脚本运行全规模实验




