Ctrl-Z: Controlling AI Agents via ResamplingCtrl-Z: Controlling AI Agents via Resampling
The authors build the BashBench multi-step system administration task benchmark and evaluate AI control protocols, stating that the resample protocol raises safety from 72.7% to 87.1% at 95% usefulness.
The blue team (AI developer) deploys an untrusted model U (GPT-4o mini) as an agent to complete an episode of 100,000 tasks; the red team uses a scaffolded attack policy UA to attempt to covertly download and execute dummy malware in some task. The blue team has a trusted weak model T (Llama-3.1-8B) and a human auditing budget H equivalent to 1% of actions, and auditing is assumed to be perfect (argued from o1-preview's perfect classification performance).
- AI companies may internally deploy LLM agents to automatically complete high-risk work such as system administration, requiring control protocols that prevent covert sabotage even when the model is untrusted; prior AI control research covered only single-step interactions, and multi-step settings introduce new attack-defense dynamics.
- The authors build BashBench (257 multi-step system administration tasks), simulate the blue team defending with a trusted weak model for monitoring, limited human auditing and resampling, against a red-team scaffolded attack strategy that downloads and executes dummy malware, and propose the resample protocol family that exploits model statelessness to sample multiple times.
- At 95% usefulness, Defer to trusted has 72.7% safety, basic Defer to resample 83.2%, the Time travel protocol with past-step information 87.1%, and adding untrusted monitoring on top reaches 92.6% (Table 1, Table 2); the authors state that multi-step attacks have lower per-step suspicion but give the defender more opportunities to convict.
- Limitations listed by the authors include: a trajectory cap of 15 steps, auditing assumed perfect, the dataset possibly too narrow, and the honeypot realism assumption rather strong; the attack strategy was designed by humans and only executed by GPT-4o mini, which the authors believe may overestimate or underestimate the effectiveness of future protocols.
- Evaluated models
- GPT-4o mini
- Benchmarks
- BashBench
- Metrics
- safetyusefulness
The Redwood Research paper evaluates AI control protocols for multi-step agents on 257 system administration tasks; its resampling protocol reduces the success rate of malicious code execution from 58% to 7% with only a 5% loss in usability. The research constructed the BashBench dataset, with tasks sourced from Unix StackExchange, scored by public and private Pytest tests, using GPT-4o mini as the untrusted model and Llama-3.1-8B as the trusted model, with a red team attempting to covertly download and execute malicious code across 100,000 tasks. The authors said this is the first control evaluation in an agent environment, and proposed a resampling protocol that samples the same action multiple times, executes the least suspicious sample, or audits based on it. At 95% usability, the protocol deferring to the trusted model had a safety rate of 72.7%, the resampling protocol 83.2%, and the best time-rewinding variant reached 87.1%.
Why it was selectedThe paper compares multiple monitoring and resampling control protocols in a multi-step agent environment, reducing attack success rate from 58% to 7% with only a 5% loss in usability, providing a quantifiable trade-off reference for monitoring design at deployment.
Related events and news
1 events · 6 news mentions
News that mentions this paper
论文提出用蜜罐检测AI智能体内部威胁
- 公众号 大模型安全研究gives the paper's title智能体蜜罐:用蜜罐防御 AI 智能体内部威胁(报告全文翻译)
[63] Bhatt et al., "Ctrl-Z: Controlling AI Agents via Resampling" 利用 LLM 无状态这一事实,以完全相同的上下文重跑被标记为危险的动作(「重采样」):如果模型一致地采取坏动作,说明该不当行为不是小概率偶发。
- Anthropic Alignment Sciencecites the paper's id or linkAnthropic 报告 2026 年夏季前沿模型的智能体失准案例
actions (Greenblatt et al., 2023; Kutasov et al., 2025; Bhatt et al., 2025).
- FAR.AIgives the paper's titleRedwood Research、FAR.AI 与英国 AI Security Institute 举办 ControlConf 2025
In Ctrl-Z: Controlling AI Agents via Resampling, Redwood Research’s Aryan Bhatt presented the “defer to resample” technique as a control mechanism.
Show 3 more news items
- Redwood Researchcites the paper's id or linkRedwood Research:持续学习可能让阻断式监控几乎失效
Resample protocols, which redraw flagged actions from the same policy rather than substituting a weaker model, probably interfere with the task less, but they are probably not sufficient for safety on
- AI Alignment Forumcites the paper's id or link持续学习可能让阻断式监控器近乎失效
be some usefulness cost incurred by triggering the monitor.Resample protocols, which redraw flagged actions from the same policy rather than substituting a weaker model, probably interfere with the
- Redwood Researchnames the paperRedwood Research 新论文:AI 控制中的重试与重采样对比
Roughly a year ago we released Ctrl-Z, the first paper to study control techniques for agents.
Paper analysis
What problem does this paper attempt to solve?
How to deploy an untrusted LLM in a multi-step agent environment and prevent it from covertly sabotaging; the authors call this a control evaluation in an agent environment.
Core question: in an agent environment requiring multi-step interaction, how to design control protocols so that an untrusted strong model cannot covertly cause sabotage while doing useful work.
- Scenario and motivation: the authors believe AI companies may soon internally deploy LLM agents to automatically do safety-critical software engineering work, where a single rare failure could create a serious vulnerability; models may engage in deliberate subversion due to alignment faking, data poisoning and other reasons.
- Shortcomings of existing methods: the authors point out that the AI control research of Greenblatt et al. 2023 and Wen et al. 2024 focuses on single-step interactions, whereas real tasks require multiple steps; multi-step settings introduce new dynamics—the attacker can split the malicious strategy into multiple actions each of which is unsuspicious, and the defender can collect incriminating evidence across actions.
- Core setup: the blue team (developer) uses a trusted weak model T to monitor each action of the untrusted strong model U, together with a limited human audit budget; the red team constructs an attack strategy that tries to download and execute dummy malware somewhere in a 100,000-task episode.
- Paper contributions: build BashBench (257 multi-step system administration tasks); extend existing protocols to multi-step settings; propose the resample protocol family, exploiting model statelessness to sample suspicious actions multiple times, which the authors say outperforms all existing techniques.
- Threat model:
- Attacker goal: covertly download and execute dummy malware in any task within the episode without being caught.
- Attacker knowledge and capability: the attack policy UA is a scaffolded GPT-4o mini executing a human-designed attack template, able to tune parameters optimally against the blue-team protocol.
- Victim system: an LLM agent simulating an AI lab deployment, sequentially executing bash commands in a container to complete tasks.
- Defense resources: trusted model T (Llama-3.1-8B), a human audit budget H equal to 1% of actions, and auditing assumed perfect.
What related research exists?
The paper builds on the AI control framework of Greenblatt et al. 2023 and relates to work on single-step control, distributed threats and evaluations of subversion capability.
AI control
- Greenblatt et al. 2023—proposed AI control in the APPS backdoor setting; this paper extends their framework to a richer multi-step agent setting and adopts their protocols such as trusted monitoring and defer to trusted as baselines.
- Wen et al. 2024—explored AI control in a "distributed threat" setting, where a single failure does not constitute catastrophe.
- Griffin et al. 2024—explored game-theoretic aspects of AI control; Clymer et al. 2024—placed control evaluation in the context of a safety case.
Subversion capability and red teaming
- Mallen et al. 2024—evaluated whether AI models have the capability to generate subversion strategies similar to this paper's attack policy.
- Greenblatt et al. 2024, Carlsmith 2023—research on alignment faking and scheming behavior, cited as background on untrusted model motivations.
Broader adversarial robustness and oversight
- Adversarial robustness and meta-level adversarial evaluation (Goodfellow 2019; Shlegeris & Greenblatt 2023; Biggio et al. 2013; Zou et al. 2023) provide inspiration for control.
- Scalable oversight, debate, and weak-to-strong generalization (Bowman et al. 2022; Irving et al. 2018; Burns et al. 2023) study safety dynamics between models of different capabilities.
- The automated monitoring work of Zhang et al. 2023 and Meta 2021 targets adversarial users; the paper notes the difference is that this paper assumes the AI itself is adversarial.
Baselines and benchmarks
- Baseline protocols: Upfront auditing, Trusted monitoring, Defer to trusted (all from or extended from Greenblatt et al. 2023).
- Dataset comparison: the paper states that BashBench fills the gap between multi-step interaction datasets (Huang et al. 2023; Jimenez et al. 2023) and basic shell task datasets (Liu et al. 2023).
The authors position this paper as work that advances AI control from single-step to multi-step agent environments, and state that its resample protocol is a new defense direction that exploits multi-step structure.
How does the paper address this problem?
Build the BashBench benchmark to simulate red-team/blue-team confrontation, and propose a family of resample control protocols that exploit the model's statelessness through multiple sampling.
Overall approach: model the deployment scenario as an adversarial game between the blue team (defenders) and the red team (attack strategy), iteratively develop control protocols and attack strategies on BashBench, and measure protocol quality by the Pareto frontier of safety and usefulness. The core method is the resample protocol: exploiting the fact that U is stateless across calls, it samples additional times for suspicious actions, both applying selection pressure and collecting incriminating evidence.
Problem setup and formalization
- An episode contains 100,000 tasks, each with at most 15 steps, executed in a new container; U is implemented with an honest policy UH or an attack policy UA, and the protocol does not know which one it faces.
- Usefulness: the fraction of tasks the protocol solves when using UH, normalized so that UH is 100% and T is 0% (T alone solves 0% of tasks, UH solves 56% on average).
- Safety: the probability that the blue team wins when using UA (reaching the end of the episode without letting the malware execute, or shutting down after an audit catches the attack).
- Resource constraints: H's audit budget is 1% of episode actions; U and T are stateless across calls, and the protocol is stateful within a task trajectory but not across tasks.
BashBench data construction
- Download 600,000 questions from Unix StackExchange, filter to 100,000 pairs that have a best answer and at least 1,000 characters combined across question and answer; use GPT-4-turbo to convert them into 5,000 multi-step task descriptions, leaving 2,500 after filtering.
- Use GPT-4o to generate pytest tests (about half public to the agent, half private for validation), and use Claude 3.5-sonnet to generate the final natural-language descriptions from the tests; to prevent overfitting, test inputs are generated at runtime and iterated five times.
- Filter out tasks that the GPT-4o mini agent never solved within 15 steps in four trials or once solved in fewer than 3 steps, leaving 257 tasks, split 100 train / 157 test, with iteration only on the training set.
Multi-step extensions of existing protocols
- Upfront auditing: audit sequentially until the budget is exhausted; the red team launches attacks randomly with low probability.
- Trusted monitoring: a monitor built by T scores each action for suspicion (seeing the task and all prior actions), and actions above the audit threshold are sent to H for auditing; an exponentially decaying audit budget allocation is used (Appendix L), which the authors say improves safety over the uniform allocation of Greenblatt et al. 2023.
- Defer to trusted: actions whose suspicion exceeds the defer threshold are replaced with T's action; those exceeding the audit threshold are still audited.
Resample protocol family
- Defer to resample: when an action's suspicion exceeds the defer threshold, resample up to 2 new samples from U; if any is below the threshold, execute the least suspicious one; if all exceed the threshold, defer to T; if the minimum suspicion across all samples exceeds the audit threshold, audit the most suspicious sample.
- Incrimination in the present: when the minimum suspicion of three samples reaches a higher threshold, sample up to 4 more actions, and if the minimum reaches the audit threshold, audit—using more independent samples to distinguish UH from UA.
- Auditing after three strikes: record the number of steps in the trajectory whose suspicion exceeds the threshold, and audit the entire trajectory on the third trigger; a separate higher threshold defends against single-step attacks. The authors report 3 is the best number of strikes.
- Time travel (Incrimination in the past): when a trajectory approaches the audit threshold, sample additionally from the third most suspicious past step (up to 7 samples per step) to update the three-strikes determination; the authors call this the best resample protocol. The blue team's query volume to U is limited to no more than double.
Untrusted monitoring and success determination
- Untrusted monitoring: T rewrites U's code into natural-language descriptions (trusted paraphrasing), which are then scored by an untrusted monitor and integrated with trusted monitoring; before the episode starts, H's budget is used to construct synthetic attacks (honeypots) for upfront validation, and if the false-negative rate is too high, shutdown occurs.
- The red team can use collusion signals to make the untrusted monitor falsely report low scores for real attacks; both sides' parameters (honeypot budget fraction, shutdown threshold, collusion threshold, etc.) are numerically optimized, and the red team takes the best response to each blue-team protocol.
- Result computation: importance sampling from empirical runs on the 257 tasks simulates the safety and usefulness of 100,000-task episodes (Appendix C).
What experiments did the paper conduct?
On BashBench, importance sampling is used to simulate 100,000-task episodes, comparing the safety of each protocol at 90%/95%/99% usefulness.
Experimental setup
- Subjects: the control protocol acts on the untrusted model U (GPT-4o mini, implemented with an honest policy UH or a scaffolded attack policy UA); the trusted model T is Llama-3.1-8B.
- Benchmark: BashBench with 257 tasks (100 train / 157 test); protocols are iterated on the training set and test-set performance is reported.
- Baseline protocols: Upfront auditing, Trusted monitoring, Defer to trusted (from Greenblatt et al. 2023).
- Metrics: safety (probability the blue team wins) and usefulness (normalized task completion rate); the audit budget is 1% of actions, and auditing is assumed perfect (based on o1-preview perfectly distinguishing attacks from non-attacks in tests).
- Evaluation method: importance sampling from empirical runs on the task set simulates 100,000-task episodes; the red team performs one extra round of optimization against each protocol to approximate a worst-case adversary.
- Attack: the red team's best attack is the ten-step Known Strings attack (Appendix F); the attack template was designed by humans and executed by GPT-4o mini.
Main results
According to Table 1 (safety of each protocol at different usefulness levels):
Swipe horizontally to read the table
Protocol 99% usefulness 95% usefulness 90% usefulness Defer to Trusted 58.3% 72.7% 83.4% Basic DTR (Defer to resample) 65.2% 83.2% 89.0% DTR + Incrimination in the Present 68.3% 84.0% 89.0% Auditing after Three Strikes 68.0% 84.9% 89.0% Time Travel (Incrimination in the Past) 72.2% 87.1% 90.4% - The authors say the improvements do not affect usefulness and only improve audit decisions, and that the gains are most pronounced at higher usefulness (fewer resampling opportunities).
- The authors say Time travel is the best resample protocol; at low usefulness levels the differences between improvements shrink, and the authors believe the simple gains are largely exhausted.
- The abstract gives another formulation: the best protocol reduces attack success rate from 58% to 7% with a 5% usefulness loss (a different framing from Table 1's 95% usefulness and 87.1% safety; the former is stated as attack success rate).
Existing protocols and multi-step attacks
- Upfront auditing: safety 5.5% (100% usefulness, Section 3.1.1). Trusted monitoring: 41.8% (100% usefulness); the authors say the exponential audit budget improves over uniform allocation (22% safety).
- Defer to trusted: 72.7% safety (95% usefulness, Section 3.1.3).
- Figure 4-left: over 100 attack attempts, the suspicion of each step of the multi-step attack (including the most suspicious 5th step) is lower than that of the single-step attack; Figure 7 shows the suspicion distribution of each step of the ten-step Known Strings attack. The authors see this as consistent with the expectation that stronger untrusted models in real deployment may use multi-step subtle operations to evade weak monitoring.
Untrusted monitoring
- The authors report that an honest untrusted monitor can catch 98.8% of attacks at a 1% audit budget, but a malicious monitor may collude and misreport.
- According to Table 2 (95% usefulness): Defer to trusted rises from 72.7% (TM) to 77.6% (UM); Defer to resample rises from 83.2% to 91.1%; Time travel rises from 87.1% to 92.6%.
- The authors say the blue team need only allocate a small amount of audit budget to untrusted monitoring to force the red team to attempt collusion, and the collusion signal itself makes attacks more suspicious under trusted monitoring.
Other ablations and analyses
- Figure 3: at the same defer threshold, Defer to resample has a smaller usefulness loss than Defer to trusted (fitted lines in the figure are y = 0.33x + 0.71 and y = 0.74x + 0.31 respectively).
- Figure 4-right: after at most six resamples per action, the fraction of caught attacks rises from 33.2% (no resampling) to 70.6%.
- Appendix A / Figures 5, 6: at audit budgets of 0.3% and 3% the absolute safety values change a lot, but the relative structure across protocols is stable; the authors believe relative improvements matter more than absolute scores.
- Appendix G: attack selection (choosing attack timing by task or predicted suspicion) did not effectively reduce safety; in an upper-bound estimate with overfitted thresholds and only 198 attack trajectories (fewer than 10 after some filtering), it could reduce safety; the authors say the results are noisy and leave this for future research.
- Appendix H: Defer to trusted editing adds on average only 1.71 steps (Defer to trusted is 2.76 steps), and about 14% of attacks survive trusted editing; Defer to trusted implementation does not preserve attacks.
- Appendix I: a strategy of stopping the attack upon detecting editing did not improve the red team's success rate.
Negative results and exceptions
- The authors report they could not get GPT-4o mini to produce interesting attack strategies without help from a human red team; the final attack strategy was designed by humans, with GPT-4o mini only doing contextual packaging.
- Attempts at strategically selecting attack tasks (attack selection) gave weak results (Appendix G).
What are some points that can be further explored?
The authors list limitations such as trajectory length, perfect auditing, and dataset breadth, and note that cost optimization and AI-assisted auditing are future directions.
Limitations and future directions noted by the authors
- Trajectory cap of 15 steps: the authors believe that longer tasks in the future or shared state across tasks would give subtle attacks more opportunities, and that when trajectories are very long the pressure from the probability of attack continuation decreases, so the incrimination effect would worsen (Section 5).
- Auditing is assumed perfect: argued from o1-preview's perfect classification, but the authors believe future models' attacks may be subtle enough that even careful human investigation cannot convict them (Section 5).
- The dataset may be too narrow: more diverse 100,000 tasks might contain more exploitable tasks, affecting the red team's ability to choose attacks (Section 5).
- The honeypot assumption is rather strong: the blue team can construct honeypots nearly indistinguishable from real attacks; the authors believe this overestimate is small (Section 5, argument in Appendix E).
- Cost is not treated as an optimization objective: the authors believe future work should make cost (number of calls to U) a more central optimization objective (Section 5, Appendix K).
- AI-assisted auditing techniques that require less human involvement and lower reliability requirements are needed (Section 5); the red and blue teams are not "isolated" and can iterate against each other; dynamics under isolation are left for future research (Section 2.4).
Scope of the experiments
- Models tested: the untrusted model is only GPT-4o mini, the trusted model is only Llama-3.1-8B; audit effectiveness relies on o1-preview's classification tests.
- The benchmark is BashBench with 257 tasks (100 train / 157 test), tasks sourced from Unix StackExchange, at most 15 steps per task.
- The attack type is downloading and executing dummy malware; the best attack is the ten-step Known Strings attack; the attack template was written by humans.
- Defense evaluation covers upfront auditing, trusted monitoring, the defer to trusted family, the resample protocol family and untrusted monitoring; the main experiment's audit budget is 1%, sensitivity analysis covers 0.3% and 3% (Figure 5 x-axis range 0.1%–10%).
- The paper does not report the number of repeated runs or confidence intervals for the safety values of each protocol; safety is extrapolated by importance sampling from empirical runs on the 257 tasks.
Summarize the main content of the paper
The authors evaluate control protocols on the multi-step agent benchmark BashBench and say the resample protocol raises safety to 87.1% at a usefulness cost of about 5%.
An AI control paper: in an agent environment requiring multi-step bash operations, it studies how to use monitoring, limited human auditing and resampling to prevent a deployed strong model from covertly sabotaging even when it is untrusted.
- Problem: existing AI control research is limited to single-step interactions; in multi-step settings the attacker can split the malicious strategy to lower per-step suspicion, and the defender can also collect incriminating evidence across steps.
- Setup: build BashBench (257 system administration tasks sourced from Unix StackExchange, 100 train / 157 test), simulating 100,000-task episodes; the untrusted model is GPT-4o mini, the trusted monitoring model is Llama-3.1-8B, the human audit budget is 1% of actions and is assumed perfect.
- Method: propose the resample protocol family—Defer to resample, Incrimination in the present, Auditing after three strikes, Time travel—exploiting model statelessness to sample suspicious actions additionally, execute the least suspicious sample and use the extra samples to aid audit decisions; also explore untrusted monitoring with honeypot validation and trusted paraphrasing.
- Main results (Table 1, 95% usefulness): Defer to trusted safety 72.7%, Defer to resample 83.2%, Time travel 87.1%; with untrusted monitoring added, Time travel reaches 92.6% (Table 2). The abstract's framing is attack success rate reduced from 58% to 7% with a 5% usefulness loss.
- Other findings: the authors report that multi-step attacks have lower per-step suspicion (Figure 4-left), but resampling raises the fraction of caught attacks from 33.2% to 70.6% (Figure 4-right); GPT-4o mini could not independently produce effective attack strategies, and the attack template was designed by humans.
- Authors' conclusion: control protocols can exploit multi-step structure to force the attack strategy to trade off between high continuation probability (easy to convict) and low continuation probability (attack hard to complete); the authors believe relative improvements across protocols are more robust than absolute scores, and note that performance under longer trajectories, more diverse tasks and imperfect auditing is an open question.