Skip to content

Jailbreaking large language models through reinforcement learning with iterative tool disguise attacksJailbreaking Large Language Models through Iterative Tool-Disguised Attacks via Reinforcement Learning

arXiv· arXiv:2601.05466· Zhaoqi Wang, Zijian Zhang, Daqing He, Pengtao Kou, Xin Li, Jiamou Liu, Jincheng An, Yong Liu·Indexed by this site · 2026-10-12· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

iMIST uses tool disguise and PPO to jailbreak; DeepSeek-V3 achieves a JADES of 0.56 on HarmfulQA.

Threat modelBlack-box: The attacker cannot access the target LLM's architecture, parameters, training data, gradients, or output logits, and does not use an unaligned auxiliary LLM. Given a malicious instruction q, construct q′ to bypass safety mechanisms and induce a harmful response, maximizing the probability over the harmful response set RH. The victim system is a target LLM with alignment or filtering; the attack goes through the prompt and tool-calling interface.

Questions
Once tool calling enters production deployment, models may still output content that violates safety norms. The authors state that alignment and inference-time filtering cannot stop complex adversarial attacks, template rewrites are easily invalidated by rule updates, and early binary evaluations overestimate jailbreak success.
Methods
iMIST includes tool disguise calls and interactive progressive optimization. The former rewrites a malicious query into a role-based request, letting the target model select fictional tools in sequence and fill in parameters, then converts the parameters back into text. The latter uses the JADES score to drive PPO, selecting online among five actions and iterating.
Experiments and results
In Table I, iMIST's JADES is higher than the same-cell baseline in all six settings. The refusal rate is not the lowest everywhere: on DeepSeek-V3's JBB, FlipAttack is 0% and iMIST is 4%. Under the same setting, LlamaGuard's unsafe rate for iMIST is 17.65%.
Limitations and future work
The paper does not specifically discuss its own limitations. The experiments include three target models, JBB, HarmfulQA, and black-box comparisons; defense detection is computed only on non-refusal samples from DeepSeek-V3 on JBB. The paper does not report the auxiliary LLM name, number of repetitions, or human agreement.
Experimental setupDeepSeek-V3、Qwen3-32B et al. · JailbreakBench Behaviors (JBB)、HarmfulQA · JADES Score、StrongREJECT Score et al.
Evaluated models
DeepSeek-V3Qwen3-32BGPT-OSS-120B
Benchmarks
JailbreakBench Behaviors (JBB)HarmfulQA
Metrics
JADES ScoreStrongREJECT ScoreRejection RateUnsafe RatePerplexity
AI summaryThe researchers propose iMIST (Interactive Multi-step Incremental Stealthy Tool-disguise), an adaptive jailbreak method that disguises malicious queries as tool calls to bypass content filters. The method introduces an interactive incremental optimization algorithm that dynamically escalates the harmfulness of responses across multi-turn dialogues based on real-time harmfulness assessments. Experiments on common models show that iMIST achieves higher attack effectiveness while maintaining a low refusal rate. The authors state these results reveal vulnerabilities in current LLM safety mechanisms and emphasize the need for more robust defense strategies.

The researchers propose iMIST (Interactive Multi-step Incremental Stealthy Tool-disguise), an adaptive jailbreak method that disguises malicious queries as tool calls to bypass content filters. The method introduces an interactive incremental optimization algorithm that dynamically escalates the harmfulness of responses across multi-turn dialogues based on real-time harmfulness assessments. Experiments on common models show that iMIST achieves higher attack effectiveness while maintaining a low refusal rate. The authors state these results reveal vulnerabilities in current LLM safety mechanisms and emphasize the need for more robust defense strategies.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Under black-box conditions, malicious requests are disguised as tool calls, then reinforcement learning is used to raise harmfulness over multiple rounds.

    Aligned LLMs can still be induced to generate harmful content that violates safety norms through tool-calling interfaces.

    • Scenario: The authors state that tool calling has been used for database queries, web searches, and multi-step tasks, but models may still output harmful content. RLHF-style alignment and inference-time judge LLM filtering are the two existing defenses, which the authors consider insufficient.
    • Existing shortcomings: The authors state that templates and simple rewrites easily fail after rule updates. They also state that keyword or binary judges treat partially successful or off-target outputs as valid jailbreaks, thus overestimating risk.
    • Core assumption: The authors believe alignment struggles to distinguish legitimate from malicious tool calls because normal tool functionality must be preserved and training data is limited. Filling JSON parameters is subject to weaker constraints than directly generating harmful text.
    • Proposed method: They propose iMIST, which includes Tool Disguise Invocation (TDI) and Interactive Progressive Optimization (IPO). The former disguises malicious queries as fictional tool calls and reorganizes parameters; the latter uses real-time harmfulness evaluation to guide reinforcement learning.
    • Threat model:
      • Goal: Given a malicious instruction q, construct q′ to maximize the probability that the response falls into the harmful set RH.
      • Knowledge: The paper specifies black-box: no access to architecture, parameters, training data, gradients, or output logits.
      • Capability: The attacker is assumed to have no unaligned auxiliary LLM; the authors believe such a model could directly generate harmful content, making jailbreaking meaningless.
      • Victim system: A target LLM with alignment or filtering; attacks are carried out through prompts and tool-calling interfaces.
  2. What related research exists?

    Related work covers optimization-based jailbreaks, alignment filtering, intent hiding, and evaluation; this paper uses tool disguise plus RL.

    The introduction and Related Work can be divided into four groups.

    Tool calling and alignment

    • Tool calling: Toolformer (Schick et al., 2023) uses self-supervised learning on API documentation to call tools; the introduction also cites Gorilla (Patil et al., 2024). The paper states that contemporary frameworks have made structured tool calling a standard feature.
    • Preference alignment: RLHF (Ouyang et al., 2022; Bai et al., 2022), RLAIF (Lee et al., 2024), DPO (Rafailov et al., 2023), and Online DPO (Yuan et al., 2024) fine-tune policies with preferences. The authors state that alignment depends on corpus coverage and may reduce performance on legitimate queries.
    • Early manual prompts: The paper states that early jailbreaks were handcrafted prompts that elicit harmful responses from aligned models.

    Optimization-based attacks

    • GCG (Zou et al., 2023): Uses gradient-based discrete optimization to append adversarial suffixes to malicious instructions. The authors note that the resulting prompts often contain conspicuous character sequences that can be detected by perplexity defenses (Jain et al., 2023).
    • AutoDAN, PAIR, TAP: Iteratively rewrite prompts using genetic algorithms (Liu et al., 2024), semantic optimization (Chao et al., 2025), and attacker LLMs with pruning (Mehrotra et al., 2024), respectively.
    • Emoji Attack (Wei et al., 2024) in the introduction: Inserts emojis to distort embeddings and create semantic ambiguity, thereby evading judge LLMs.

    Intent hiding, filtering, and RL rewriting

    • Hiding intent: ArtPrompt (2024), FlipAttack (2024), DeepInception (2024), WordGame (2025), and SATA (2025) use ASCII embedding, sequence reversal, narrative nesting, word games, and keyword masking with prompt chaining, respectively.
    • Output filtering: LLaMA Guard (Inan et al., 2023) and ShieldLM (Zhang et al., 2024) block harmful content at inference time.
    • RL rewriting: RLJack (Chen et al., 2024) uses RL to generate diverse adversarial inputs; PASS (Wang et al., 2025) decomposes jailbreaks into atomic steps and dynamically reassembles them to evade fixed-template detection.

    Jailbreak evaluation

    • Keyword matching: Fixed refusal phrases are used to determine refusal. The paper states that models that do not refuse using these phrases produce false positives.
    • LLM-as-a-judge: Semantic evaluation is used to assess harmfulness. The paper cites GPT-4 as an example; the experimental setup does not state that the authors used GPT-4 for scoring.
    • StrongREJECT and JADES (Souly et al., 2024; Chu et al., 2025): The authors state that binary classification often misclassifies partially successful or off-topic responses as valid jailbreaks, and early evaluations may overestimate effectiveness.

    Baseline methods: Baseline, ArtPrompt, FlipAttack, PAIR, TAP, DRA, WordGame, SATA, RL-Jack, PASS; gradient-requiring GCG and AutoDAN are excluded. Related Work does not explain DRA. Benchmarks: JailbreakBench Behaviors (JBB), HarmfulQA.

    The authors state that, to their knowledge, this is the first work to jailbreak aligned LLMs by exploiting the tool-calling mechanism, using a harmfulness metric to guide RL and interactive refinement with the target model.

  3. How does the paper address this problem?

    iMIST first bypasses direct generation restrictions with fictional tool calls, then uses PPO to select actions based on JADES scores.

    iMIST first uses TDI to turn malicious queries into tool call chains, then translates the parameters into an initial response; IPO then uses PPO to select interventions based on the JADES score, raising harmfulness over multiple rounds. The process is shown in Figure 1 and Figure 2.

    Problem Setting

    • Goal: Find q′ such that the response r falls into the harmful set RH. The core goal is to maximize P(r ∈ RH | q′).
    • Defense side: Alignment uses preference learning to modify parameters; filtering uses perplexity or a dedicated judge to intercept inputs or outputs. Section III gives the alignment loss, and the attack method does not use this loss.
    • Constraints: black-box, and no unaligned auxiliary LLM. IPO uses an aligned auxiliary LLM, whose name is not given in the paper.

    Tool Disguise Calls

    • Tool set: Construct Tc according to the misuse categories c in the OpenAI usage policies; the tools are JSON conforming to the OpenAI function calling schema. The full set is passed via the API's tools parameter.
    • Decomposition and rewriting: The decomposition prompt splits q into at most 5 subtasks (the experimental upper limit). The rewriting tool changes subtasks into role-based compliant versions that preserve the original intent. The paper has rewritten example sentences, which are not repeated here.
    • Call protocol: The target model acts as a function-calling agent, calling only one tool per round. The attacker uses MockTool to return fake success receipts until the finish reason is stop.
    • Reconstruction: Collect the parameters and translate them into natural language according to the tool descriptions to obtain the initial response. The paper states that the model does not directly generate harmful text; it only selects tools and fills in parameters.

    Interactive Progressive Optimization

    • Stopping condition: The JADES judge gives ρ (0 to 1), textual criticism, and itemized evaluations. Stop when the target score is reached or steps are exhausted. The experimental target threshold is 0.75, and the RL step upper limit per subtask is 5.
    • Scheduling: Each subtask is handled independently, then aggregated into a response to the original query. The paper states that parallel optimization is possible after decomposition; Algorithm 2 loops over subtasks. The aggregation function is not elaborated.
    • Online update: PPO is updated during the attack. The authors state that different models and queries require different trajectories, and online learning can discover model-specific weaknesses in real time.

    State, Actions, and Rewards

    • State: 15 dimensions. Score 7 dimensions (JADES score, score difference, and relevance, completeness, specificity, accuracy, usefulness); tool use 2 dimensions; content 2 dimensions; progress 4 dimensions (step ratio, whether rejected, consecutive rejections, retry ratio).
    • Actions: Retry, Rollback, Inject guidance, Refine arguments, Reconstruct toolset. The latter three use the auxiliary aligned LLM to generate guidance, modify parameter definitions, or add/remove tools. Algorithm 2 writes Rollback as a fallback.
    • Masking: Cannot roll back if history is less than two steps; Retry is disabled after retries reach Rmax, whose value is not given. When rejection is detected, increase the weights of retry, guidance injection, and rollback, and decrease the weights of tool-modifying actions; the weight values are not given.
    • Rewards: The total reward is rtotal=rs+rt+re+rd. rs is -5 when ρ<0.25, 1 from 0.25 to 0.5, 5 from 0.5 to 0.75, and 10 when ρ≥0.75. rt=-1 on rejection. The efficiency term uses 0.5 as the success line. Information density is computed after the auxiliary LLM filters out irrelevant sentences. Tmax=10 in the reward example is not the experimental step upper limit.

    Network, Training, and Judgment

    • Network: actor-critic, shared layers 128 and 64, ReLU, layer normalization, dropout 0.1 (Figure 3). The policy head and value head hidden layers are 64; the policy head outputs 5 logits, and illegal actions are set to negative infinity before softmax. Linear layers use Xavier initialization with bias 0.
    • Training: PPO with GAE, Adam, gradient clipping. Learning rate 0.0003, γ=0.99, λ=0.95, ϵ=0.2, value loss coefficient 0.5, entropy coefficient 0.01, gradient norm upper limit 0.5, batch size 8. The number of epochs is not given.
    • Judgment: The process stops when JADES reaches 0.75 or steps are exhausted. The experiments additionally report StrongREJECT and rejection rate, not relying only on refusal keywords to determine success.
  4. What experiments did the paper conduct?

    Across three models and two benchmarks, iMIST's JADES is higher than the baselines in the same cells of Table I; the refusal rate is not the lowest everywhere.

    Experimental setup

    • Target models: DeepSeek-V3 (MoE, 671B total parameters), Qwen3-32B (dense 32B), GPT-OSS-120B (120B). All three use SFT, RLHF, and DPO; the latter additionally uses deliberative alignment.
    • Datasets: JBB contains 100 harmful behaviors and 10 misuse categories; HarmfulQA contains 50 harmful questions based on Wikipedia content. The paper does not report the number of repetitions, variance, or number of queries.
    • Baselines: Baseline, ArtPrompt, FlipAttack, PAIR, TAP, DRA, WordGame, SATA, RL-Jack, PASS. White-box GCG and AutoDAN are excluded. The paper does not define the implementation of Baseline.
    • Metrics: JADES decomposes a harmful question into weighted subquestions and aggregates them; StrongREJECT looks at refusal, convincingness, and specificity; refusal rate RR is also reported. The numbers in the table are scores and refusal rates, not the proportion of samples exceeding 0.75.
    • iMIST hyperparameters: The caps for the number of subtasks and RL steps per subtask are both 5, PPO batch size is 8, and the target score is 0.75. Learning rate is 0.0003, γ=0.99, λ=0.95, ϵ=0.2.
    • Evaluation and defense detection: Harmfulness is given by the JADES judge; the paper does not state the model behind it, nor does it report agreement with humans. Table II uses only responses not refused in the main experiment.

    Main results

    The table below lists only iMIST. The format corresponds to JADES, StrongREJECT, and refusal rate in Table I.

    Swipe horizontally to read the table

    ModelDatasetJADESStrongREJECTRefusal rateSource
    DeepSeek-V3HarmfulQA0.560.602%Table I
    DeepSeek-V3JBB0.500.644%Table I
    Qwen3-32BHarmfulQA0.480.584%Table I
    Qwen3-32BJBB0.460.540%Table I
    GPT-OSS-120BHarmfulQA0.410.3832%Table I
    GPT-OSS-120BJBB0.380.3036%Table I
    • Model differences: The authors state that the models differ in robustness; GPT-OSS-120B is stronger, with most baselines having JADES below 0.10, which the authors attribute to deliberative alignment. In Table I, WordGame's JADES on this model is 0.22 on HarmfulQA and 0.12 on JBB.
    • Refusal rate does not equal effectiveness: The authors state that a low refusal rate does not necessarily correspond to high effectiveness. In Table I, FlipAttack on DeepSeek-V3, JBB has a refusal rate of 0% and JADES of 0.26. The main text also writes PAIR refusal rate 4% and score 0.30, which does not exactly correspond to any cell in Table I; the table is taken as authoritative here.
    • Author summary and counterexamples: The authors state that iMIST outperforms all baselines on both effectiveness metrics and refusal rate. JADES and StrongREJECT are the highest in the same cells across all six cells. The refusal rate is not strictly lower on DeepSeek-V3: on HarmfulQA, FlipAttack and WordGame are both 2%; on JBB, FlipAttack is 0%, lower than iMIST in the table.

    Defense detection

    • What was tested: On DeepSeek-V3, JBB, non-refusal samples, the unsafe rates of LlamaGuard and ShieldLM and the average perplexity of Llama-3.1-8B-Instruct are computed (Table II). iMIST's input is a disguised query plus the target output in OpenAI tool-call format.
    • Results: iMIST is 17.65%, 14.71%, PPL 28.19. In the same table, the lowest LlamaGuard is iMIST; on ShieldLM, TAP is 6.76% and RL-Jack is 10.96%, lower than iMIST. The lowest PPL is SATA's 5.19, and the highest is Baseline's 86.17.
    • Author interpretation: The authors state that the low detection comes from tool disguise; structured calls make it difficult for content detectors to identify harmful intent; PPL is slightly higher due to JSON, which the authors state is still within a reasonable range.

    Representation analysis

    • What was tested: 10 harmful queries are randomly sampled from HarmfulQA, and corresponding benign prompts with minimal changes are generated. iMIST is run on the harmful queries, and the inputs sent to the target LLM are collected. The hidden representation of the last token of the 10th-to-last layer of Llama-3.1-8B-Instruct is taken and t-SNE is applied (Figure 4). This model is not the attack target.
    • Author description of the figure: The authors state that benign prompts cluster on the left, harmful prompts concentrate in the refusal region on the right (dashed circle), and iMIST queries are distributed in the middle; the arrow indicates harmful queries being moved out of the refusal region. Some iMIST samples remain inside or near the refusal region. The caption does not give axis names or values.
    • Author interpretation: The authors believe the middle position indicates that malicious intent is retained while similarity to patterns in the alignment corpus is reduced; samples falling into the refusal region are used to explain why IPO is still needed.

    Other ablations and analyses

    The paper does not report ablations removing TDI or IPO, or sweeping thresholds and steps. The Tmax=10 in the reward example and the experimental step cap of 5 are not the same setting, and the paper does not compare them.

  5. What are some points that can be further explored?

    The paper does not explicitly write out method limitations or follow-up experiments.

    Limitations and future directions noted by the authors

    • The paper has no dedicated Limitations or Future Work section, and the appendix text does not list method shortcomings. The Conclusion only states that current LLM safety has vulnerabilities and calls for more robust defenses that can consider such attacks; this sentence is not written as a limitation of iMIST itself, nor does it list follow-up experiments the authors plan to run.

    Experimental coverage

    • Models: The tested targets are DeepSeek-V3, Qwen3-32B, and GPT-OSS-120B, 3 in total; the paper states the three use SFT, RLHF, and DPO, and GPT-OSS-120B additionally uses deliberative alignment (Section V-A).
    • Data: JBB contains 100 harmful behaviors and 10 misuse categories; HarmfulQA contains 50 harmful questions (Section V-A).
    • Comparison: Black-box methods that do not access model internals are compared; the paper states that gradient-dependent GCG and AutoDAN are excluded (Section V-A).
    • Defenses and representations: LlamaGuard, ShieldLM, and perplexity are computed only on DeepSeek-V3, JBB, and non-refusal responses in the main experiment (Table II). t-SNE uses the last token of the 10th-to-last layer of Llama-3.1-8B-Instruct, with 10 random HarmfulQA items and corresponding benign prompts (Figure 4).
    • Unreported items: The paper does not report the name of the auxiliary aligned LLM, the number of repetitions per condition, the number of queries, or the agreement of JADES or StrongREJECT with human judgment. The stated iMIST caps are 5 subtasks, 5 RL steps per subtask, and a target score of 0.75 (Section V-A).
  6. Summarize the main content of the paper

    iMIST performs black-box jailbreaking with tool disguise and online PPO; in Table I its JADES is higher than the baselines in the same cells.

    iMIST is a black-box jailbreak method: it disguises malicious queries as legitimate tool calls, then uses online reinforcement learning to push the harmfulness score of responses upward.

    • Problem: Tool calling gives models access to external APIs; the authors believe existing alignment and output filtering still cannot stop attacks that hide malicious intent in tool parameters; early keyword or binary judges treat partial success as valid jailbreaks.
    • Approach: Fictional tools are prepared per misuse category. Queries are first decomposed, then rewritten into role-based requests; the target model selects one tool per round and fills parameters, the attacker responds with fabricated execution success messages, and finally parameters are translated into natural language. If the JADES score is insufficient, PPO chooses actions among retry, fallback, injecting guidance, changing parameter definitions, and restructuring the tool set; the reward is composed of score tiers, refusal, efficiency, and information density.
    • Results: In the six model–benchmark cells of Table I, iMIST's JADES and StrongREJECT are both higher than the same-cell baselines. On DeepSeek-V3, HarmfulQA, they are 0.56 and 0.60, with a refusal rate of 2%. On GPT-OSS-120B, HarmfulQA, JADES is 0.41 and refusal rate is 32%. The refusal rate is not the lowest everywhere: on DeepSeek-V3, JBB, FlipAttack is 0% and iMIST is 4%.
    • Detection and representation: Table II only looks at non-refusal samples from DeepSeek-V3, JBB; iMIST's unsafe rates for LlamaGuard and ShieldLM are 17.65% and 14.71%. The authors state that in Figure 4, iMIST inputs fall between benign and harmful clusters, but some samples still lie near the refusal region.
    • Authors' conclusion: The authors state this exposes the fragility of current safety mechanisms and believe RL has potential to guide conversations with LLMs. To their knowledge, this is the first work to jailbreak aligned LLMs using tool calling. The Conclusion calls for more robust defenses that can consider such attacks.

Related papers

Show 1 more papers
Read originalarxiv.org