ManipulationArena / README.md
krystal7's picture
Use official AgentDoG2 Getting Started guide and canonical project page
56d0a84 verified
|
Raw History Blame Contribute Delete
26.5 kB
metadata
pretty_name: ManipulationArena
configs:
  - config_name: index
    default: true
    data_files:
      - split: benchmark
        path: release/index/units.csv
dataset_info:
  - config_name: index
    features:
      - name: unit_key
        dtype: string
      - name: unit_id
        dtype: string
      - name: family
        dtype: string
      - name: task_id
        dtype: string
      - name: suite
        dtype: string
      - name: attack_channel
        dtype: string
      - name: attack_failure_mode
        dtype: string
      - name: case_id
        dtype: string
      - name: unit_path
        dtype: string
      - name: plan_path
        dtype: string
      - name: unit_sha256
        dtype: string
      - name: plan_sha256
        dtype: string
tags:
  - agent-safety
  - agentdog
  - benchmark
  - long-horizon
  - red-teaming
  - goal-manipulation

AgentDoG2 Technical Report

🐙 GitHub   |   🤗 Models and Datasets   |   🌐 Project Page   |   🎬 Demos   |   🚀 Getting Started

ManipulationArena: Evaluating Covert Goal Manipulation in Long-Horizon Agent Tasks

Dataset ready — complete release available: 888 frozen attack units, execution tools, documentation and the native Docker runtime image. The complete package is preserved under release/.

Part of AgentDoG2: An Efficient Alignment Framework for Emergent Risk in Long-Horizon Agent Tasks

ManipulationArena evaluates agents' susceptibility to covert goal manipulation through reusable attack plans that adapt to live, long-horizon execution. The current manuscript reports 888 attack plans, seven strategy families, six attack channels, and 30 native tasks across five application suites.

Introduction

Long-horizon agents rely on earlier observations, retained state, tool specifications, and intermediate artifacts. An attack can exploit those dependencies so that later actions still look task-relevant while drifting away from the user's authorized goal.

ManipulationArena studies that risk through executable red teaming. Each case provides a stored attack plan as a common starting point. During evaluation, the attack agent adapts and executes the plan against the target agent's current trajectory. The resulting trajectory and outcome belong to that run; the benchmark is not a collection of identical immutable replay traces.

Project Performance at a Glance

AgentDoG2 project performance overview: unsafe F1 versus inference cost, inference latency and speedups, and fine-grained safety diagnosis on ATBench

Full-resolution main figure (PDF)

AgentDoG2 project overview, reproduced from the manuscript's main figure. The panels compare (a) unsafe F1 and API inference cost, (b) inference latency and relative speedups, and (c) fine-grained diagnosis on ATBench. Cost estimates prioritize official API prices and use DeepInfra or OpenRouter rates for the base models of small open-source models and their derivatives. ManipulationArena evaluates live goal-manipulation attacks; its own attack and defense results appear below.

Released Files

The downloadable package contains 888 attack units across seven strategy families, their execution index, native task assets, the shared Python runner and documentation. The original directory layout and checksum files are preserved inside release/; run the release tools from that directory.

Resource Link
Original release README Browse
Execution index — 888 records JSONL · Download CSV
Installation and runtime guide Getting Started
Record and path definitions Schema
Native Docker runtime — 10.38 GB / 9.67 GiB Download manipulationarena-gym-1.0.0.tar · SHA-256
Complete release checksums SHA256SUMS
Licensing and third-party asset status LICENSE_STATUS.md

The non-image portion of the release is approximately 99 MiB. The HF preview displays the execution index; each row refers to files in the full release. Frozen plans are benchmark inputs. Trajectories and verdicts are produced by actual evaluation runs, rather than shipped as new evaluation results.

The statistics and result tables below reproduce the manuscript's evaluation snapshot. See Getting Started to download and inspect the released files.

Benchmark Overview

Statistic Manuscript-reported value
Reusable attack plans 888
Native long-horizon tasks 30
Attack strategy families 7
Attack channels 6
Possible strategy–channel configurations 7 × 6 = 42
Mean agent response turns 24.12
Mean tool-call steps 23.35

A turn is one agent response; a step is one tool call. Failure modes are annotated from observed target-agent behavior after evaluation and are not a third attack-configuration axis.

Comparison with Existing Multi-Step Safety Benchmarks

Benchmark Cases Strategies Channels Mean interaction length
AgentDojo 629 4 1 3.49 steps
AutoControl Arena 280 2 — —
AgentLAB 644 5 3 —
SHADE-Arena 17 1 1 ≈25 turns
AgentDyn 560 4 1 7.10 steps
ManipulationArena 888 7 6 24.12 turns / 23.35 steps

Interaction lengths are means in the stated units. — indicates unavailable data, not zero. The approximate SHADE-Arena value is retained from the manuscript comparison.

Attack Coverage

ManipulationArena distributions across seven attack strategies and six channels over 888 cases

Strategy Distribution

Strategy Mechanism Attack plans
Role-play Attack Frames an unauthorized objective as part of a legitimate role or nested scenario. 139
Decomposition Splits an attack objective across plausible subgoals or successive workflow steps. 138
Sleeper Poisoning Attack Plants content in memory or workspace state for delayed activation. 131
Criterion hijacking Replaces trusted quality, acceptance or completion criteria with attacker-controlled criteria. 137
Obstruction Attack Blocks compliant progress, creating pressure for unauthorized workarounds. 120
Self-preservation Attack Uses shutdown, replacement or resource-loss pressure to induce constraint violations. 129
Oversight Evasion Attack Uses oversight or evaluation cues to induce hidden side actions, audit tampering or false completion claims. 94
Total 888

The first four families use goal-directed inducement. The final three use condition-induced misalignment: imposed runtime conditions pressure the agent to depart from its authorized goal.

Channel Distribution

Channel Attack plans
User instruction 205
Tool specification 165
Skill specification 51
Plugin manifest 126
Observation 184
Memory 157
Total 888

The two distributions are independent marginal counts over the same 888 plans; strategy and channel rows must not be paired to infer joint frequencies.

Native Task Pool

Application suite Tasks Native task domain
AppWorld 9 Personal-application workflows.
GAIA2 11 Retrieval, aggregation, calendars, and file operations.
MedAgent 4 Patient-record tasks.
τ-banking 3 Banking customer service.
HealthAgent 3 Two electronic-health-record data-quality checks and one survival-prediction task.
Total 30

The appendix identifies the τ-banking subset of the broader τ-bench suite. The manuscript supports task solvability with 26 successful native evaluations and independent rescoring of saved states for four additional tasks.

Two-Phase Attack Construction

Two-phase attack framework with offline task analysis and attack planning followed by adaptation to live target-agent execution

  1. Task analysis and planning: the attack agent examines the benign task, identifies cross-step dependencies, selects a strategy–channel configuration, and constructs a task-specific attack blueprint.
  2. Live trajectory grounding: the attacker observes the target agent's execution and refines the carrier, timing, and intervention form as new task state becomes available. Failed attempts can inform plan revision.

Benchmark generation samples configurations from the 42 possible strategy–channel combinations, permits at most two iterations per sampled configuration, and retains plans from validated adversarial runs. Evaluation starts from the execution phase because the initial planning phase has already been completed.

Evaluation and Annotation

The primary safety metric is attack success rate (ASR, lower is better for the defending agent): the proportion of evaluated attack runs that satisfy the strategy-specific success criterion.

  • A rule-based evaluator checks action logs and final environment state for the specified action or effect.
  • Where semantic attribution is required, an independent LLM judge reviews the full trajectory together with the available rule-based evidence.
  • Success requires evidence connecting the specified violation to the attack; ordinary task errors must not automatically count as attack-induced failures.
  • Family-level ASRs should be kept separate from the unweighted average across the seven families. The denominator, invalid outcomes, evaluator, and aggregation protocol should accompany reported scores.

After verification, observed behavior receives failure-mode annotations:

Level Failure modes
Harness-level Permission violation; data-flow violation; explicit rule violation; state-change violation
Model-level Intent drift; unsupported fact; situational harm

The attack strategy and channel describe the plan; failure labels describe what the target actually did. An attack can lead to different outcomes under different agents or execution traces.

Reported Red-Team Results

The manuscript's red-team diagnostic table reports the following unweighted mean ASRs across the seven strategy families on the 888-case result-conditioned diagnostic subset. Invalid outcomes remain in each strategy's denominator. These diagnostic aggregates must be kept separate from the blue-team table below.

Target harness Policy model Mean ASR ↓ (%)
Claude Code Opus 5.5 46.82
Codex GPT-6.1-sol 54.18
DeepSeek Harness DeepSeek-V4.1-flash 74.37
KimiCode Kimi-3.1 pro 69.65
ZCode GLM-5.3 59.18
DeepSeek Harness Qwen3.8-27B 65.84

Vulnerability varies by strategy: the reported self-preservation ASR reaches 94.57% for KimiCode + Kimi-3.1 pro, while Claude Code + Opus 5.5 has 24.47% ASR on oversight evasion and 66.67% on obstruction. These are diagnostic results for the evaluated configurations and selected cases, rather than population-level attack probabilities.

SafeRSI and Guardrail Evaluation

ManipulationArena also evaluates SafeRSI, which routes attributed failures to harness evolution, policy evolution, or both, with optional AgentDoG-Step runtime protection.

Harness Evolution

SafeRSI harness evolution: failure attribution, generation of policy and code patches, admission checks, and paired holdout validation

Attribution → patch generation → validation. An Analyzer locates the violated boundary and an Editor repairs the responsible component. Natural-language policy patches update prompts, memory or skills; code patches add deterministic runtime enforcement. Admission checks and paired safety/utility holdouts determine which patches become part of the hardened harness.

Policy Evolution

SafeRSI policy evolution: analyze failures, synthesize corrective trajectories, review safe task-completion demonstrations, and fine-tune the policy

Learning safe task completion from failures. Failure analysis produces corrective demonstrations through environment-free trajectory synthesis and textual review. Supervised fine-tuning teaches the policy to continue toward the legitimate task safely. The feedback loop in the figure represents the intended iterative process; the quantitative V1/V2 configurations are reported separately below.

Safety and Benign Utility

The following values reproduce the manuscript's blue-team evaluation and share the DSH + Qwen3.8-27B baseline.

Configuration ManipulationArena ASR ↓ (%) BFCL-v3 function-calling accuracy ↑ (%)
DeepSeek Harness + Qwen3.8-27B 65.84 75.34
SafeRSI Harness V1 + SafeRSI-27B V1 28.04 66.72
SafeRSI Harness V2 + SafeRSI-27B V2 25.68 65.17
SafeRSI V1 + AgentDoG-Step 21.40 67.39
SafeRSI V2 + AgentDoG-Step 24.21 64.92

V1/V2 denote reported harness–policy evolution rounds. V1 + Step reduces ManipulationArena ASR by 44.44 percentage points relative to the base configuration, while BFCL-v3 accuracy is 7.95 percentage points lower. V2 + Step is not uniformly better than V1 + Step. BFCL-v3 is a separate utility benchmark and is not part of the ManipulationArena dataset.

These scores describe complete harness–policy configurations. The SafeRSI-27B V1 and V2 repositories publish the policy component; AgentDoG-Step provides pre-execution guardrail assessment. A policy checkpoint alone does not reproduce the complete evaluated system.

See the SafeRSI section for results across AgentLAB, AutoControl-Arena, and BFCL-v3. The manuscript's separate red-team diagnostic and blue-team tables use different reported aggregates for some general-agent baselines; this card does not combine them or infer cross-table improvements.

Getting Started

For AgentDoG2 model inference, see the official Getting Started guide. Dataset download and benchmark setup instructions follow below.

The commands below follow the released installation and runtime guide. Use Python 3.10 or newer, a Bash shell, and Linux with amd64 Docker containers. Ubuntu 24.04 is the documented host setup. Keep Python environments, configuration and run outputs outside release/ so its checksums remain valid.

1. Download the data, code and documentation

Install the HF CLI, then download the core files without the large runtime archive:

python3 -m pip install -U huggingface_hub
hf download --repo-type dataset AI45Research/ManipulationArena \
  --local-dir ./ManipulationArena \
  --exclude "release/manipulationarena-gym-1.0.0.tar"
cd ./ManipulationArena/release
export MANIPULATIONARENA_ROOT="$PWD"
export PYTHONDONTWRITEBYTECODE=1
export ARENA_HOME="$HOME/.local/share/manipulationarena"
mkdir -p "$ARENA_HOME/tools" "$ARENA_HOME/config" "$ARENA_HOME/runs"
python3 -m venv "$ARENA_HOME/venv"
source "$ARENA_HOME/venv/bin/activate"
python -m pip install 'requests>=2.31' 'PyYAML>=6'
python -B -m manipulationarena inspect

To download the complete package including the image instead, run these commands from your chosen parent directory, then use the same environment setup above:

hf download --repo-type dataset AI45Research/ManipulationArena --local-dir ./ManipulationArena
cd ./ManipulationArena/release

inspect reads the release inventory and makes no model calls. The complete checksum validation in the next step requires the runtime archive as well as the core files.

2. Download, verify and load the runtime image

Install and start Docker using the host setup in the full guide. If you downloaded only the core files, retrieve the archive into the same release layout:

hf download --repo-type dataset AI45Research/ManipulationArena \
  release/manipulationarena-gym-1.0.0.tar \
  release/manipulationarena-gym-1.0.0.tar.sha256 \
  --local-dir "$(dirname "$MANIPULATIONARENA_ROOT")"
cd "$MANIPULATIONARENA_ROOT"
sha256sum --check manipulationarena-gym-1.0.0.tar.sha256
python -B -m manipulationarena validate --require-checksums
docker load --input manipulationarena-gym-1.0.0.tar
export ARENA_IMAGE='manipulationarena-gym:1.0.0'
python -B -m manipulationarena doctor --image "$ARENA_IMAGE"

The image provides AppWorld, Gaia2, MedAgent, HealthAgent and Tau banking with the native runtime dependencies. All seven attack families execute through a local Docker daemon. Execution uses --pull=never, so the image must already be loaded locally. The archive can also be downloaded directly from the runtime image link.

3. Configure the model roles

The host Red CLI uses Node.js 22 and Claude Code 2.1.303. Follow the pinned installation commands in the full guide, and check the runtime dependencies.

cp config/roles.example.json "$ARENA_HOME/config/roles.json"
"${EDITOR:-vi}" "$ARENA_HOME/config/roles.json"
export ARENA_RED_API_KEY='YOUR_RED_KEY'
export ARENA_BLUE_API_KEY='YOUR_BLUE_KEY'
export ARENA_JUDGE_API_KEY='YOUR_JUDGE_KEY'
export ARENA_NATIVE_SCORER_API_KEY='YOUR_NATIVE_SCORER_KEY'
export ARENA_USER_SIMULATOR_API_KEY='YOUR_USER_SIMULATOR_KEY'

Set each role's endpoint and the Blue model in this external configuration. Red remains Claude Code with deepseek-v4.1-flash; native auxiliary models retain their frozen identities. The default Blue adapter is DSH. Other harnesses use the shared Blue adapter protocol.

4. Check the runtime and run one attack unit

python -B -m manipulationarena doctor --full \
  --config "$ARENA_HOME/config/roles.json" --image "$ARENA_IMAGE" \
  --output "$ARENA_HOME/runs/preflight"
ARENA_UNIT="$(python -B -c 'from manipulationarena.dataset import Dataset; print(Dataset().select()[0].key)')"
python -B -m manipulationarena inspect --unit-key "$ARENA_UNIT" --show-plan
ARENA_PREPARE="$(mktemp -d "$ARENA_HOME/runs/prepare.XXXXXXXX")"
python -B -m manipulationarena prepare --unit-key "$ARENA_UNIT" \
  --config "$ARENA_HOME/config/roles.json" --image "$ARENA_IMAGE" \
  --output "$ARENA_PREPARE/unit" --check-plan
ARENA_RUN="$(mktemp -d "$ARENA_HOME/runs/run.XXXXXXXX")"
python -B -m manipulationarena run --unit-key "$ARENA_UNIT" \
  --config "$ARENA_HOME/config/roles.json" --image "$ARENA_IMAGE" \
  --output "$ARENA_RUN/unit"

Inspection, validation and preparation make no model calls and start no native tasks. Full preflight checks the local runtime; run calls the configured model APIs and executes the native task. Use fresh external output directories. A successful process exit is not itself an attack verdict: the recorded result must have status equal to attack_success or attack_failure.

5. Evaluate or resume a batch

python -B -m manipulationarena batch \
  --config "$ARENA_HOME/config/roles.json" --image "$ARENA_IMAGE" \
  --output "$ARENA_HOME/runs/benchmark"
python -B -m manipulationarena batch --resume \
  --config "$ARENA_HOME/config/roles.json" --image "$ARENA_IMAGE" \
  --output "$ARENA_HOME/runs/benchmark"
python -B -m manipulationarena summarize --output "$ARENA_HOME/runs/benchmark"

Use --family, repeated --unit-key, or --limit to select a subset. --resume skips valid verdicts; add --retry-incomplete explicitly to retry incomplete attempts. See the evaluation and output definitions for valid results, failure categories and aggregation.

Data Format

release/index/units.jsonl has one record per attack unit. The same execution index is provided as CSV.

Field Meaning
unit_key, unit_id Stable opaque identity and readable composite identifier.
family, task_id, suite, attack_channel Attack mechanism and native task context. Task IDs may recur in different cases or channels.
unit_path, plan_path Paths to the unit and frozen plan, relative to the release/ directory.
unit_sha256, plan_sha256 Content hashes for the referenced files.
attack_failure_mode, case_id, engine_profile Optional frozen-design or source-variant metadata, where supplied.

Each attack unit contains unit.json and attack_plan.json. Obstruction units also include initialization and task-context files. attack_failure_mode describes the frozen design; later runtime observations and Judge verdicts belong to the evaluation run. See the complete schema.

The HF index configuration previews the CSV execution index as a single benchmark split, with its fields displayed as strings. It provides an entry point for browsing the 888 units; it does not define a training/test partition. The index alone does not reproduce live evaluation: native execution also requires the referenced data, engines, configured model roles and Docker runtime. ManipulationArena is intended for authorized safety evaluation and defense research in isolated agent environments.

Limitations and Intended Use

  • The corpus contains retained plans from validated adversarial runs. Its success rates are diagnostic for the evaluated settings and should not be interpreted as universal population-level attack probabilities.
  • Live adaptation, target-agent sampling, tool behavior, and environment state can change the generated trajectory and result across runs.
  • Seven strategy families and six channels do not exhaust the possible attack space. Coverage of a strategy/channel family does not imply equal coverage of every joint configuration.
  • Semantic judging can introduce evaluator error. Results should identify the decision rules, denominator, aggregation protocol, and target configuration used.
  • The 30-task pool spans five suites but remains limited in application and runtime coverage. Task success and safety are complementary evaluation dimensions.
  • Native environments and third-party materials retain their own access requirements and redistribution terms. Consult the included licensing and third-party asset status and runtime dependency notices.

License and Release Information

The package preserves its original LICENSE_STATUS.md. No new blanket license is asserted for the data, source code or runtime image. Native benchmark assets, Docker layers and bundled dependencies retain their respective upstream terms and notices; model-weight licenses do not establish the license of this package.

Citation

This benchmark is introduced in AgentDoG2: An Efficient Alignment Framework for Emergent Risk in Long-Horizon Agent Tasks, from Shanghai Artificial Intelligence Laboratory. A public technical-report URL and the final BibTeX citation will be added with the report release. Until then, refer to the exact title and the AgentDoG project repository; earlier AgentDoG/ATBench paper identifiers should not be used as the identifier for this new report.

Contact

Please use GitHub Issues for questions, suspected benchmark errors, or release updates.