Refusal steering creates agents that are both capable and dangerousRefusal Steering Creates Capable and Dangerous Agents
The authors orthogonalize the refusal direction and apply it to four open-weight agents, reporting that the AgentHarm refusal rate drops to 0%–3% and that GPT-OSS-120B achieves a 72.6% completion rate on harmful tasks.
Attackers can already download open-weight LLMs and deploy them as tool-calling agents on their own hardware; they recover the refusal direction offline from public harmful/benign prompts and orthogonalize the weights, without needing fine-tuning data, human feedback, or inference-time hooks, with the goal of executing harmful tasks while preserving planning, tool calling, and dangerous program knowledge.
- Refusal-direction steering has been used for weight-level jailbreaks in single-turn chat, but whether it transfers to multi-turn tool-calling agents, simultaneously removing refusal and preserving the capabilities needed to execute harmful tasks, still lacks systematic evaluation.
- On four open-weight models, the authors recover the refusal direction using the difference of residual-stream means from public harmful and benign prompts, then orthogonalize all residual writes in the weights; they also compare chat, simulated-agent, and agent context extraction, as well as inference-time projection.
- The authors report that AgentHarm refusal rates drop substantially for all four models, with most capability metrics preserved; GPT-OSS-120B's harmful task completion rate is 72.6%, but AgentDojo security drops from 29.1% to 14.8%. Qwen3.6-27B shows knowledge degradation and empty code implementations.
- The authors note that only four model families were studied, not covering other MoE and different safety post-training schemes; judge error is not quantified, and safety considerations in long reasoning traces are not checked. All results are single evaluations on fixed test sets.
- Evaluated models
- Granite-4.1-30BGPT-OSS-120BGLM-4.7-FlashQwen3.6-27B
- Benchmarks
- AgentHarmRedCode-GenFortressAgentDojoBFCLWMDPMMLUAdvBenchHarmBenchJailbreakBenchMaliciousInstructStrongREJECTTDC2023Alpaca
- Metrics
- AgentHarm refusalAgentHarm harmful task completionRedCode-Gen functional ratingLlamaGuard3 ASRFortress ARSAgentDojo securityAgentDojo utilityBFCL accuracyWMDP accuracyMMLU accuracy
Researchers from UC Santa Cruz and Berkeley test whether refusal steering, a weight-level jailbreak, transfers to tool-calling agent settings, and refusal collapses entirely across four open-weight model families spanning dense, MoE, and hybrid attention architectures. AgentHarm refusal rates drop from 29%–85% unmodified to 0%–3%, and GPT-OSS-120B reaches a 73% harmful task completion rate; except for the hybrid-attention Qwen3.6-27B, which loses 7 points on MMLU and about 12 points on WMDP, function calling, general knowledge, and biochemical hazardous procedure knowledge are largely preserved across families. Indirect prompt injection resistance is unchanged in three of the four families, and GPT-OSS-120B, originally the most resistant, becomes the most susceptible to injection after steering. The attack is completed offline once, direction extraction requires only a single GPU and about 256 prompts, any user who can download the weights can reproduce it, and inference-side defenses cannot undo it; the authors call this the first permanent weight-level jailbreak study targeting tool-calling agents, and discuss its implications for open-weight release safety and governance.
Why it was selectedThe paper transfers a known weight-level jailbreak recipe to the agent setting and gives quantitative results for four open-source model families, providing empirical reference for discussions of safety and governance in open-weight releases.
Related events and news
1 events · 0 news mentions
- This event's paper
研究:拒答转向令开放权重智能体拒答率降至0%–3%
Paper analysis
What problem does this paper attempt to solve?
Examine whether weight-level jailbreaks via the refusal direction in single-turn chat can transfer to agent attacks that preserve tool-calling capability.
The core question is: can refusal-direction steering turn open-weight models into agents that no longer refuse and can also execute harmful tool-calling tasks.
- Research gap: The authors state that existing refusal-direction research has been validated almost entirely on single-turn chat and dense attention transformers; agent attacks also need to preserve planning, function calling, and dangerous program knowledge, and capability preservation rather than mere refusal removal is the key constraint.
- Risk scenario: Unlike chat jailbreaks, agents can take actions in external systems; weight modifications enter deployment with the checkpoint, and when the attacker controls the inference stack, the provider's system prompt, output filtering, content moderation, and rate limiting are not in the request path.
- Core observation: The authors hypothesize that a single residual-stream refusal direction can be reused across single-turn and multi-turn tool-calling contexts, and test whether it applies to dense, mixture of experts, and hybrid attention architectures.
- Threat model:
- Goal: Make the downloaded model execute harmful instructions through its original tool interface while preserving the general and dangerous knowledge needed to complete tasks.
- Knowledge and capability: The attacker has download access to the publicly released model and can modify it offline on their own hardware and serve it; no fine-tuning data, human feedback, or inference-time hooks are needed.
- Victim system: An open-weight LLM that has undergone safety post-training and is deployed as a multi-turn tool-calling agent.
- Defense boundary: The authors treat indirect prompt injection in the environment as the defender's remaining means, and test whether steering changes its susceptibility.
- Paper contributions: The authors perform weight editing on four model families, evaluate harmful behavior, capability, and AgentDojo injection resistance, and compare three direction-extraction contexts and weight editing versus inference-time projection.
What related research exists?
Related work covers refusal-direction steering, agent safety benchmarks, and prompt-level jailbreaks; the authors position their difference as agent evaluation after weight editing.
Refusal direction and representation steering
- Arditi et al. (2024): Identifies a single residual-stream direction that mediates refusal and jailbreaks open chat models by orthogonalizing the weights; this paper follows its difference-of-means and weight orthogonalization procedure.
- Marshall et al. (2024), Wollschläger et al. (2025), Siu et al. (2025b,c), Lee et al. (2024): Respectively formalize refusal geometry as an affine map or low-dimensional cone, recover directions across activation spaces, isolate concept directions, and implement conditional steering.
- Chen et al. (2025), Durmus et al. (2024), Wang et al. (2024), Tan et al. (2024), Siu et al. (2025a): Apply similar procedures to persona traits, bias mitigation, and false refusal correction, and study reliability and capability entanglement. The authors note that this literature overall still estimates and validates directions on single-turn prompts and almost exclusively dense attention transformers.
Agent safety and capability benchmarks
- AgentHarm (Andriushchenko et al., 2025): Measures refusal and harmful task completion in multi-step tool-calling environments; RedCode (Guo et al., 2024): Scores functional malware generation.
- AgentDojo (Debenedetti et al., 2024), AgentVigil (Wang et al., 2025): Probe indirect prompt injection; WMDP (Li et al., 2024): Tracks biological, chemical, and cybersecurity knowledge that attackers may need.
- The authors note that none of this work evaluates agents whose weights have been steered.
Prompt-level jailbreaks and combined attacks
- Zou et al. (2023), Chao et al. (2023), Andriushchenko et al. (2024), Shen et al. (2023): Use adversarial suffixes, role-playing, or template wrapping to rewrite inputs at inference time; the authors state that input attacks may not transfer across turns, tool calls, or task formats, and can be filtered by providers.
- Xiong et al. (2026): Combine benign steering vectors with prompt-level jailbreaks to increase attack success rates on standard chat benchmarks.
Comparisons and data used in this paper: No other jailbreak algorithm is set as a baseline; the main comparison is the unaltered model for each family; the paper additionally compares the three extraction recipes chat, mock, and agent and the two implementations Weight and Proj. Direction extraction uses AdvBench, HarmBench, JailbreakBench, MaliciousInstruct, StrongREJECT, TDC2023, and Alpaca, and evaluation uses AgentHarm, RedCode-Gen, Fortress, AgentDojo, BFCL, WMDP, and MMLU.
The authors position this paper as extending existing weight-level refusal-removal techniques to current tool-calling agents and characterizing when they are effective across architectures, deployment contexts, and environmental defenses; the Ethics Statement explicitly states that the technique itself is not novel.
How does the paper address this problem?
Recover the refusal direction as the difference of residual-stream means, orthogonalize all residual writes in the weights, and compare extraction contexts and implementation methods.
Overall, refusal direction steering is used: first estimate the refusal direction at a single layer, then perform a one-time weight edit on all residual-writing matrices of the model; no training or iterative optimization is needed, and no inference-time hook is required after deployment.
Problem formulation and weight editing
- For a selected layer ℓ, take residual stream activations at the last instruction token before the model begins answering, and average them separately over harmful and harmless prompts; the direction is r(ℓ)=μharmful(ℓ)−μharmless(ℓ), normalized to r̂.
- Apply W↦ W−r̂r̂⊤W to every matrix that writes to the residual stream, so that the modified forward pass cannot produce a residual component along r̂ at any layer.
- Generate two endpoints, unaltered and steered, for each family, eight in total; steered checkpoints are saved in standard HuggingFace transformers format and served through vLLM's OpenAI compatible mode, keeping the original tool parser, reasoning parser and quantization backend.
Data, layer selection and cost
- Harmful prompts come from AdvBench, HarmBench, JailbreakBench, MaliciousInstruct, StrongREJECT and TDC2023; harmless prompts come from Alpaca; 256 in total are used for direction extraction, 463 for layer selection, and 512 held out for testing.
- Scan layers between the 25th and 75th percentile of model depth, and select ℓ⋆ by LlamaGuard3 attack success rate on held-out validation harmful prompts; weight editing uses Granite 31, GPT-OSS 13, GLM 22, Qwen 19 (Appendices A, C).
- The authors state that direction extraction requires about one forward pass over 256 prompts and takes minutes on a single workstation GPU; the layer-selection scan is the main construction cost. Appendix C reports about 1–20 GPU hours per model for direction recovery plus capability evaluation, and up to about 20 GPU hours for the full agent harm and injection suite.
Residual-writing handling across architectures
- Orthogonalize embed_tokens, each block's o_proj and down_proj, without modifying query, key, value projections; for MoE models, process down_proj per expert and shared_experts.down_proj when present, with routing unchanged.
- For Qwen3.6-27B, both full and linear attention blocks write to the residual stream, and the authors identify the corresponding projections from the block implementation; handling only full attention layers still gives an AgentHarm refusal rate of 35%, while full coverage gives 0% (Appendix C).
- GPT-OSS-120B is first dequantized from MXFP4 to bf16, the direction is estimated and edited on bf16 activations, then requantized to MXFP4; experiments use an NVIDIA RTX PRO 6000 Blackwell GPU.
Deployment context versus implementation recipe
- chat: use single-turn Arditi-style prompts; mock: wrap the same prompts in the AgentHarm system prompt and tool list; agent: use harmful/benign tasks paired by id from AgentHarm test_public, so that both share the objective function and the mean difference cancels the tool context.
- Compare the three recipes on Fortress and RedCode-Gen; AgentHarm is not used for this comparison because the agent recipe extracts the direction directly from its tasks. Also compute pairwise cosine similarity between directions and the L2 norm of the unnormalized difference.
- The Proj. control projects the residual stream at the input of each decoder layer via a vLLM plugin without modifying weights; re-validate layer selection with LlamaGuard3 scanning, yielding Granite 31, GPT-OSS 13, GLM 23, Qwen 28 (Appendix G).
Success determination and evaluation protocol
- Harmful behavior is measured jointly by AgentHarm refusal rate and harmful task completion rate, RedCode-Gen's GPT-4o 0–10 functionality score, LlamaGuard3 ASR on held-out prompts, and Fortress's GPT-4o/GPT-4o-mini quorum ARS.
- Capability is measured with BFCL, the average of three WMDP subsets, and MMLU 0 shot; AgentDojo measures per-trial security, i.e., both resisting injection and completing the user task under injected tool outputs, and utility is also reported. All evaluations are run through Inspect AI.
What experiments did the paper conduct?
All four families completed harmful behavior, capability and injection evaluations; the main results include exceptions such as Qwen capability loss and a decline in GPT-OSS injection resistance.
Experimental setup
- Tested models: Granite-4.1-30B (dense bf16), GPT-OSS-120B (MXFP4 MoE), GLM-4.7-Flash (bf16 long CoT MoE), Qwen3.6-27B (dense thinking, full/linear hybrid attention); each has unaltered and steered variants.
- Harmful behavior: AgentHarm contains 176 tasks; RedCode-Gen contains 160 prompts, scored by GPT-4o from 0 (refusal) to 10 (fully functional); Fortress contains 500 single-turn prompts, with a 0–100 ARS given by a GPT-4o and GPT-4o-mini quorum.
- Single-turn ASR: 512 held-out test prompts are scored by LlamaGuard3, with 128 for Granite-4.1-30B; Table 5 also reports this metric. The paper does not give LlamaGuard3's numerical decision threshold in the converted text.
- Capability and injection: BFCL tests function calling, WMDP averages biology, chemistry, and cybersecurity, and MMLU is 0 shot; AgentDojo reports trial-weighted overall security and utility, with suite sample sizes Banking n=144, Slack n=100, Travel n=140, Workspace n=560.
- Comparison and repetition: The main comparison is the unaltered model of the same family; the small extraction set experiments in Appendix B use 3 seeds per configuration. Appendix C clarifies that all other reported numbers are single evaluation runs on fixed benchmark test sets.
Main results
According to Table 2; RedCode-Gen is a 0–10 score, Fortress is ARS, and the rest are percentages. Parentheses give the relative change from unaltered as stated in the paper, in percentage points for percentage metrics.
Swipe horizontally to read the table
Model Variant AgentHarm refusal / harm RedCode-Gen Fortress WMDP MMLU BFCL Granite-4.1-30B unaltered 29.0 / 54.6 8.24 52.9 66.1 78.0 78.7 Granite-4.1-30B steered 0.0 / 72.2 8.52 68.8 65.0 77.1 78.4 GPT-OSS-120B unaltered 84.7 / 12.2 1.68 22.0 79.8 88.1 72.4 GPT-OSS-120B steered 0.0 / 72.6 9.54 73.3 75.4 84.5 73.7 GLM-4.7-Flash unaltered 65.9 / 25.7 4.81 57.2 74.6 87.4 74.5 GLM-4.7-Flash steered 3.4 / 59.4 7.94 73.9 72.8 86.3 74.7 Qwen3.6-27B unaltered 53.4 / 26.1 1.16 35.1 81.2 91.6 82.2 Qwen3.6-27B steered 0.0 / 68.2 5.61 47.9 69.2 84.2 80.5 - Authors' interpretation: AgentHarm refusal is nearly eliminated for all four families, with harmful task completion rising in tandem; the authors conclude that the attack covers different original alignment strengths, and that chat refusal evaluations cannot predict susceptibility to agent weight-level jailbreaks.
- Capability exceptions: The authors state that BFCL changes by less than 2 percentage points across families; Qwen3.6-27B's MMLU drops 7.4 percentage points and WMDP drops 12.0 percentage points, while the other three families change less.
- Code exception: Of Qwen3.6-27B's 160 steered RedCode-Gen completions, 159 write a function signature and a docstring naming the malicious behavior and then return an empty implementation or benign simulation; the authors state that this pattern cannot be explained by BFCL capability and disappears under inference-time projection (Appendix F).
Must the extraction context match the agent
- Direction geometry: In Table 1, the pairwise cosine of the three directions is 0.34–0.82; the L2 norm for Granite, GPT-OSS, and GLM shrinks monotonically from chat to mock to agent, while Qwen's chat and mock norms are close and its direction alignment is the lowest.
- Behavioral results: Based on Figure 3, the authors state that for Granite, GPT-OSS, and GLM, the three recipes have similar Fortress attack success and RedCode-Gen scores, so single-turn data can substitute for agent context extraction; the converted text does not retain the exact values of each bar.
- Qwen counterexample: Under the agent recipe, Qwen refuses all RedCode-Gen prompts, and Fortress ARS is about 11%; the authors attribute this to the recurrent state of hybrid linear attention making tool-context activations different, and state that confirming the mechanism requires tools such as sparse autoencoders for this model.
Environmental defenses: AgentDojo injection
- Overall security: According to Table 6, Granite goes from 23.4% to 24.7%, GPT-OSS from 29.1% to 14.8%, GLM from 22.0% to 20.3%, and Qwen from 22.4% to 21.9%; the authors state that overall changes for three families are within 2 percentage points, with GPT-OSS as the exception.
- Suite differences: GPT-OSS's Banking goes from 65.3% to 26.4%, and Slack from 75.0% to 34.0%; Qwen's Slack goes from 59.0% to 86.0%, and Workspace from 11.8% to 2.9%, with the flat overall figure masking changes in opposite directions.
- Utility and explanation: In Table 7, Qwen's overall utility goes from 67.7% to 72.9%, and the other families change little overall. The authors speculate that GPT-OSS's injection resistance may be entangled with the refusal direction, but explicitly state that confirmation still requires sparse autoencoders or similar tools.
Weight editing versus inference-time projection
- Main reproduction: Table 3 shows that under Proj., AgentHarm refusal drops to 11% or below for all, and harm rises for all; the absolute values in Table 8 are Granite 0.0%/77.5%, GPT-OSS 0.0%/67.7%, GLM 10.8%/53.6%, Qwen 0.0%/83.1% (refusal/harm).
- Qwen differences: Proj. uses ℓ⋆=28, RedCode-Gen is 8.20, MMLU 91.6%, WMDP 81.1%; AgentDojo security goes from 23.4% to 54.4%, and utility from 66.5% to 43.6%. The authors emphasize that the layer and implementation change simultaneously, so these differences cannot be attributed to the implementation alone.
- GPT-OSS differences: Proj. and Weight both use ℓ⋆=13, but in Table 3 Proj. drops MMLU by 14.6 percentage points and WMDP by 17.0 percentage points, while Weight drops them by 3.6 and 4.5 percentage points respectively; Proj.'s AgentDojo security also continues to decline.
Other ablations and analyses
- Extraction set size: In Appendix B on GPT-OSS-120B with ℓ⋆=13, with n=8 or 16 per class and 3 seeds each, the six LlamaGuard3 ASR values are 0.908–0.939, and the n=256 baseline is 0.926.
- Equivalence test: Appendix B reports paired TOST with an equivalence bound ε=5 percentage points, and all six small-sample configurations are indistinguishable from the baseline.
- Strict malware metric: For the RedCode-Gen fully functional rate in Table 5, GPT-OSS goes from 11.2% to 80.0%, and Qwen only from 3.8% to 10.0%.
- Single-turn held-out ASR: In Table 5, steered Granite, GPT-OSS, GLM, and Qwen are 85.9%, 92.6%, 82.6%, and 82.0% respectively.
- Layer selection sweep: Figure 5 labels validation-set peaks of Granite 85.1% (ℓ⋆=31), GPT-OSS 90.7% (ℓ⋆=13), GLM 81.2% (ℓ⋆=22), and Qwen 81.9% (ℓ⋆=19).
What are some points that can be further explored?
The authors list open questions including model and benchmark coverage, judge error, and reasoning traces; all experiments are single runs.
Limitations and future directions noted by the authors
- Model family sample: Limitations states that only four open-weight families were studied, and that the conclusion that deployment context is insensitive rests on this sample; MoE variants beyond GPT-OSS and GLM, as well as families with clearly different safety post-training schemes, are not represented.
- Benchmark choice: Limitations states that each axis of the seven benchmarks has other reasonable choices, and that auditors with internal proprietary benchmarks may obtain different patterns, especially for untested long horizon software engineering agents.
- Judge error: Limitations points out that RedCode-Gen relies on an OpenAI judge and Fortress relies on an OpenAI judge quorum; judge errors may be correlated across variants, and the authors have not yet quantified them.
- agent extraction set: Limitations states that the agent recipe uses AgentHarm's 176 harmful/benign task pairs, fewer than the 256 each for chat/mock; although pair-level cancellation is used, the smaller sample may still make estimates noisier.
- Reasoning traces: Limitations states that GLM-4.7-Flash and Qwen3.6-27B exhibit long reasoning traces in agent rollouts, and whether these traces still mark safety considerations after removing the refusal direction has not been checked.
- Mechanism confirmation: Section 5 states that isolating the components required for the Qwen editing effect requires interpretability tools such as sparse autoencoders for Qwen3.6-27B; the conjecture in Section 6.3 about the entanglement of injection resistance and refusal in GPT-OSS also requires similar tools for confirmation.
Experimental coverage
- The tested models are the four families Granite-4.1-30B, GPT-OSS-120B, GLM-4.7-Flash, and Qwen3.6-27B, each with unaltered and steered endpoints (Section 4).
- The seven evaluation benchmarks cover AgentHarm, RedCode-Gen, Fortress, AgentDojo, BFCL, WMDP, and MMLU; AgentDojo includes four suites: Banking, Slack, Travel, and Workspace (Section 4, Appendix E).
- The main experimental comparison is the unaltered model, with additional comparisons of the chat/mock/agent extraction recipes and the Weight/Proj. implementations; the paper does not set another jailbreak algorithm as a baseline (Sections 5, 6.4).
- Appendix C clarifies that all reported numbers are single evaluation runs on fixed test sets; only the small extraction set configurations in Appendix B report 3 seeds, and the main results do not report repeated runs or variance.
- The main results do not report human review or agreement between humans and LLM judges; Limitations explicitly states that judge errors have not been quantified.
Summarize the main content of the paper
Existing refusal-direction recipes can transfer to four types of open agents, but there are model-specific exceptions in capability, code quality, and injection resistance.
This is a study of weight-level jailbreaks against open-weight tool-calling agents: the authors extend refusal-direction steering from single-turn chat to dense, MoE, and hybrid attention models, testing whether the capabilities needed to execute harmful tasks are still preserved after refusal is removed.
- Method: Construct a difference-of-means direction from the residual activations at the final instruction token of public harmful/benign prompts, select the layer by sweeping the validation set, then orthogonalize all residual writes in the weights; the attack is completed offline, and deployment requires no input rewriting or inference-time hooks.
- Harmful behavior: In Table 2, AgentHarm refusal for the four families drops from their respective 29.0%–84.7% to 0.0%–3.4%; GPT-OSS-120B's harmful task completion rises from 12.2% to 72.6%, and RedCode-Gen from 1.68 to 9.54.
- Capability preservation: BFCL changes by less than 2 percentage points across families; Qwen3.6-27B is the exception, with MMLU dropping from 91.6% to 84.2% and WMDP from 81.2% to 69.2%.
- Failure mode: Of Qwen's 160 steered RedCode-Gen completions, 159 use empty implementations or benign simulations, and the strict fully functional rate only goes from 3.8% to 10.0%; the authors state that this pattern does not appear under inference-time projection.
- Context and environmental defenses: The authors state that chat extraction can substitute for agent context extraction on Granite, GPT-OSS, and GLM, while Qwen's agent recipe fails; AgentDojo overall security changes by no more than 2 percentage points for three families, and GPT-OSS drops from 29.1% to 14.8%.
- Authors' conclusion: Anyone who can download the weights can use the public recipe to produce an agent that can execute harmful tasks, provider inference-path defenses cannot intervene, and the main remaining defenses are on the environment side; the authors consider this to have implications for the safety and governance of open-weight releases, while emphasizing that the technique itself is not novel and that they did not release steered weights, direction artifacts, or orthogonalization code.
Research lineage
1 foundations · 0 follow-ups in libraryNo later in-library follow-ups recorded yet.
Hover or focus a connected paper to inspect the citation context.