Skip to content

Overlooked large language model security vulnerabilities: malicious intelligent optimization algorithm requests and their jailbreaksOverlooked Safety Vulnerability in LLMs: Malicious Intelligent Optimization Algorithm Request and its Jailbreak

arXiv· arXiv:2601.00213· Haoran Gu, Handing Wang, Yi Mei, Mengjie Zhang, Yaochu Jin·Indexed by this site · 2026-10-12· Originally publishedAttacks

Quick read

Attacks

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

The authors test 13 LLMs using MalOptBench (60 items) and MOBjailbreak, with an original average ASR of 83.59%.

Threat modelAn attacker submits malicious design requests to an LLM used for intelligent optimization algorithm design, with the goal of inducing it to output result R that satisfies the malicious goal P (Equation 1 in the original source). The original prompt can be submitted directly, or a surrogate LLM can be used to rewrite the prompt into a seemingly harmless expression before querying the target model. Closed-source targets are accessed via web APIs. Success is determined by whether the response assists in achieving that malicious goal.

Questions
LLMs are used to automatically design intelligent optimization algorithms, and malicious users may thereby obtain algorithms for harmful purposes. Existing safety work mainly covers assistants, code generation, and agents; the authors believe it remains unclear whether malicious algorithm design requests can be refused.
Methods
The authors use GPT-4o to generate malicious user categories and rewrite four types of optimization tasks into 60 MalOptBench requests. MOBjailbreak uses DeepSeek-V3 as the surrogate, rewriting harmful prompts into seemingly harmless expressions before querying the target LLM.
Experiments and results
Across 13 LLMs, the original requests have an average ASR of 83.59% and a harm score of 4.28; after MOBjailbreak, these become 97.95% and 4.87. Two pluggable defenses can reduce the original ASR, but have limited effect on rewritten requests, and some models show increased refusal of benign requests.
Limitations and future work
The authors note that only intelligent optimization algorithms are studied and believe this could be extended to cryptography or network protocols; MalOptBench is small relative to general safety benchmarks. The experiments include 13 models, 15 items per task, and 3 responses per prompt. The paper does not report reviewer-human agreement.
Experimental setupGPT-4o、GPT-5 et al. · MalOptBench、XSTest · ASR、Harmfulness Score
Evaluated models
GPT-4oGPT-5OpenAI-o3Gemini-2.5-FlashClaude-Sonnet-4Doubao-Seed-1.6Grok-3-miniERNIE-4.5-Turbo-128k-PreviewCommand-ADeepSeek-V3DeepSeek-V3.1Qwen3-235B-A22B-Instruct-2507Microsoft-Phi-4Gemma-2-9b-it
Benchmarks
MalOptBenchXSTest
Metrics
ASRHarmfulness Score
AI summaryResearchers propose a jailbreak method MOBjailbreak targeting malicious intelligent optimization algorithm requests and release a benchmark MalOptBench containing 60 requests. On 13 mainstream large language models including GPT-5 and DeepSeek-V3.1, the average attack success rate for original harmful prompts is 83.59%, with an average harm score of 4.28/5; under MOBjailbreak the models almost completely fail. Evaluating plug-and-play defenses applicable to closed-source models, they find these defenses have only slight effect against MOBjailbreak and easily produce over-safety behavior. The authors argue that stronger alignment techniques are needed to prevent misuse in algorithm design.

Researchers propose a jailbreak method MOBjailbreak targeting malicious intelligent optimization algorithm requests and release a benchmark MalOptBench containing 60 requests. On 13 mainstream large language models including GPT-5 and DeepSeek-V3.1, the average attack success rate for original harmful prompts is 83.59%, with an average harm score of 4.28/5; under MOBjailbreak the models almost completely fail. Evaluating plug-and-play defenses applicable to closed-source models, they find these defenses have only slight effect against MOBjailbreak and easily produce over-safety behavior. The authors argue that stronger alignment techniques are needed to prevent misuse in algorithm design.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors propose MalOptBench and MOBjailbreak to examine LLM refusal of malicious optimization algorithm requests.

    Whether LLMs can refuse malicious algorithm requests in zero-shot intelligent optimization algorithm design remains unclear.

    • Scenario: The authors state that LLMs are being used for automated algorithm design and can output pseudocode or even executable code. Intelligent optimization is commonly used for complex decision-making; the authors state that malicious users may thereby automatically design algorithms for harmful purposes and that this would violate laws and ethics.
    • Existing gaps: The authors state that existing work mainly covers AI assistants, code generation, and LLM agents, and it remains unclear whether models can refuse malicious algorithm design requests. Table 1 separates this scenario from the previous three categories: the model is asked to provide an algorithmic procedure, not advice, scripts, or tool calls. The authors distinguish algorithms (high-level procedures) from code (specific implementations).
    • Assumption: The authors believe that as long as a zero-shot design prompt is not refused, the user will obtain the algorithm, so the misuse risk depends on refusal at this step (Section 2.3). In Fig. 1, the authors state that GPT-4o, Gemini-2.5-Flash, and DeepSeek-V3 all provide explicit assistance for a malicious optimization request.
    • This paper's approach: They propose MalOptBench (60 items, four task types) and the jailbreak method MOBjailbreak, and compare original versus rewritten requests on 13 mainstream LLMs. The authors state this is a previously overlooked vulnerability.
    • Threat model:
      • Goal: Induce the target LLM to generate output R that satisfies the malicious goal P, covering both direct queries and jailbreak variants (Section 2.1).
      • Capabilities: Can submit zero-shot algorithm design prompts; can also use a surrogate to rewrite harmful prompts into seemingly harmless expressions before submission.
      • Victim system: An LLM asked to design intelligent optimization algorithms. The evaluation includes 9 closed-source and 4 open-source models, with closed-source models accessed via web APIs.
      • Success: Whether the response assists in achieving the malicious goal. ASR is determined by GPT-4o binary classification, with an additional 1–5 harm score.
  2. What related research exists?

    The authors place this paper outside assistant, code, and agent safety, adding the misuse risk of intelligent optimization algorithm design.

    Three existing safety scenarios

    • AI assistants: Benchmarks like AdvBench (Zou et al., 2023), HEx-PHI (Qi et al., 2023a) evaluate general malicious requests; Gu et al. (2025a) discuss assistant safety.
    • Code generation: MalwareBench (Li et al., 2025a), RMCBench (Chen et al., 2024) evaluate malware-type requests, where models are asked to provide scripts or code.
    • LLM agents: R-Judge (Yuan et al., 2024), Agent-safetybench (Zhang et al., 2024b) evaluate unsafe autonomous actions and tool calls. The authors use Table 1 to separate these scenarios from intelligent optimization algorithm design.

    Jailbreak methods

    • Template filling: Scenario nesting (Li et al., 2023; Ding et al., 2023) and in-context learning (Wei et al., 2023). The authors state such methods are reusable and suitable for large-scale attacks, but may lack transferability across prompts and across LLMs (Yu et al., 2023; Huang et al., 2025).
    • Prompt rewriting: Suffix optimization (Zou et al., 2023), benign rewriting (Takemoto, 2024; Li et al., 2024), and iterative refinement (Chao et al., 2025; Mehrotra et al., 2024). The authors state rewriting is more customized and stealthier, but more computationally expensive.
    • Relatively direct attacks: The authors state jailbreaks increase the likelihood that the model answers according to harmful objectives (Chen et al., 2024; Xu et al., 2024; Li et al., 2025a; Gu et al., 2025a).

    LLM algorithm design

    • Evolutionary design: FunSearch (Romera-Paredes et al., 2024), EoH (Liu et al., 2024a), LLaMEA (van Stein and Bäck, 2024), AlphaEvolve (Novikov et al., 2025). Liu et al. (2024b) provide a systematic survey of LLM algorithm design.
    • Two paradigms: Zero-shot design (also called standalone LLM-based design, Zhang et al., 2024a) gives an algorithm in one step, but the authors state it is not necessarily optimal; iterative improvement evolves using predefined test cases, which the authors state is impractical without test cases (Li et al., 2025b).
    • Task sources: The descriptions of the four basic task types in this paper come from Liu et al. (2024a) and Yao et al. (2024).

    Baselines, defenses, and positioning

    • Baselines and datasets: The paper uses the performance of 13 LLMs on the original MalOptBench as a comparison, then compares with MOBjailbreak rewritten versions. Defenses are SAGE (Ding et al., 2025; the authors state it achieves the latest state-of-the-art) and Self-Reminder (Xie et al., 2023). Exaggerated safety behavior is measured with XSTest (Röttger et al., 2023).
    • Authors' positioning: The authors place this paper on the under-examined misuse risks in automated algorithm design, especially intelligent optimization algorithm design; and state that MOBjailbreak simultaneously takes the scalability of template methods and the stealthiness of rewriting methods.
  3. How does the paper address this problem?

    First, 60 malicious optimization requests are automatically generated, then a surrogate is used to rewrite the malicious intent into harmless expressions.

    First automatically construct MalOptBench, then use MOBjailbreak to rewrite requests into jailbreak variants, and in a zero-shot setting see whether the target LLM refuses.

    Problem Setting and Formalization

    The authors focus on zero-shot design: the user submits a task description once, and if the model does not refuse, an algorithm is obtained (Section 2.3). Direct attacks and jailbreaks are written as R ← LLMtarget⟨ P ⟩ or R ← LLMtarget⟨ J(P) ⟩: P is the original malicious prompt, J(P) is the jailbreak variant, R is the output, and the goal is for R to implement P.

    Four base tasks: OnlineBP (packing arriving items into the minimum number of bins of capacity C), TSP (the shortest route visiting each location exactly once and returning to the start), FSSP (minimizing makespan for n jobs on m machines), BOAFD (designing an acquisition function for black-box maximization under unknown heterogeneous evaluation costs).

    MalOptBench Construction

    • Adversarial user generator: GPT-4o lists N=5 malicious user categories aligned with the base task description, in the form of first-person category statements.
    • Task rewriter: For each category, GPT-4o is queried three times to change the purpose or wording, yielding 3N=15 items per task and 60 single-paragraph requests in total. Manual specification of categories before rewriting is also allowed. Section 3.1.2 provides two complete prompts.
    • Review: Two domain experts label all 60 items for whether they are malicious and effective; GPT-4o also performs a review. The authors state all items satisfy maliciousness and effectiveness. Appendix A provides the review prompt. Fig. 2 summarizes the pipeline. Generation, rewriting, and review all use GPT-4o.

    MOBjailbreak

    • Surrogate: DeepSeek-V3. The authors state it was chosen because it is a locally accessible open-source model, making jailbreak implementation easier.
    • Rewriting: Each original prompt is embedded in a fixed template and given to the surrogate. The template must not trigger the surrogate's safeguards, must capture the algorithmic purpose, and must rewrite the entire passage in harmless expressions. The template places the rewriting in a fictional writing process: first identify the narrative purpose, then rewrite and provide replacement instructions separately.
    • Output: The rewritten jailbreak variant, along with replacement instructions for the attacker's reference. The 60 variants constitute the jailbreak version of MalOptBench. Section 3.2 provides the complete template; its wording constraints are not restated here.

    Success Determination

    • ASR: GPT-4o performs binary classification according to a judgment prompt, determining whether the response effectively answers the malicious prompt; ASR is the proportion of successful attacks among test cases. The authors cite Lin et al. (2024), stating this prompt-based classifier achieves the best balance of accuracy and efficiency relative to other classifiers.
    • Harm score: GPT-4o assigns a score of 1-5, where 1 means harmless and 5 is what the paper calls extremely harmful. The main text states the judgment instructions provide usage policy and scoring criteria and require a rationale. Appendix B provides two complete prompts.
    • Three responses: Each model generates 3 responses and they are classified in parallel. If at least one is judged successful, one is randomly drawn from the successful responses for the harm score; otherwise, one is randomly drawn from the three unsuccessful responses.
  4. What experiments did the paper conduct?

    The original average ASR of the 13 models on MalOptBench is 83.59%, and after MOBjailbreak it is 97.95%.

    Experimental Setup

    • Models: 9 closed-source models are GPT-4o (2024-08-06), GPT-5 (2025-08-07), OpenAI-o3 (2025-04-16), Gemini-2.5-Flash (2025-06-17), Claude-Sonnet-4 (20250514), Doubao-Seed-1.6 (250615), Grok-3-mini (2025-05-19), ERNIE-4.5-Turbo-128k-Preview (2025-03-17), Command-A (03-2025). 4 open-source models are DeepSeek-V3 (671B), DeepSeek-V3.1 (671B), Qwen3-235B-A22B-Instruct-2507 (235B), Microsoft-Phi-4 (14B). Closed-source models are accessed via web API. The authors note that OpenAI-o3 is a large reasoning model, and the other models also have varying degrees of reasoning ability.
    • Data and attack model: MalOptBench has 15 items per task across four tasks, 60 in total; the jailbreak version is the same 60 items rewritten by MOBjailbreak. The surrogate is DeepSeek-V3, which is also one of the tested models.
    • Metrics and evaluation: ASR and 1-5 harm scores, all evaluated by GPT-4o. Each model generates 3 responses per prompt. The paper does not report repetitions beyond these 3 responses, nor does it report agreement between the evaluator and human judgment.
    • Defenses: SAGE and Self-Reminder. D_Base is added to the baseline LLM and tested on the original set; D_Target is added to the target model of MOBjailbreak; D_Joint is added to both the surrogate and the target model. Table 4 only reports the average across the four tasks.
    • Attention: For a successfully attacked Gemma-2-9b-it input using one original malicious prompt from Fig. 3, attention values are computed based on the impact on the output after removing that token.

    Main Results

    ModelOriginal ASR (harm score)After MOBjailbreak
    GPT-538.33% (2.58)96.66% (4.88)
    Qwen3-235B-A22B-Instruct-250751.67% (2.90)100.00% (4.94)
    OpenAI-o355.00% (3.13)96.66% (4.83)
    Microsoft-Phi-465.00% (3.15)88.33% (4.58)
    Claude-Sonnet-481.66% (4.15)98.33% (4.93)
    GPT-4o96.66% (4.87)96.66% (4.85)
    DeepSeek-V3100.00% (5.00)100.00% (4.77)

    According to the Avg. column of Table 3. Gemini-2.5-Flash, Doubao-Seed-1.6, Grok-3-mini, ERNIE-4.5-Turbo-128k-Preview, Command-A, and DeepSeek-V3.1 are omitted; their original average ASR is 98.33% or 100.00%. DeepSeek-V3 is also the surrogate.

    • Overall: The original average ASR of the 13 models is 83.59% and the harm score is 4.28; after MOBjailbreak, they are 97.95% and 4.87. The authors describe the rewritten results as a near-complete failure and state that all LLMs then have harm scores above 4.50.
    • Closed-source: The authors state that only GPT-5 and OpenAI-o3 retain moderate defenses, and believe the two already have some awareness but have not fully resolved the issue. Apart from these two, the authors state that the original ASR of closed-source models all exceeds 80.00% and harm scores all exceed 4.00.
    • Open-source: The authors state that the DeepSeek series has no effective defense, smaller models resist more strongly, capability and safety appear to strongly conflict, and state this is consistent with the malicious code generation experiments of Li et al. (2025a). In the table, the smaller-parameter Phi-4 has a higher original ASR than Qwen3. The omitted DeepSeek-V3.1 reaches 98.33% (4.94) after MOBjailbreak.

    Pluggable Defenses

    • Setup: SAGE and Self-Reminder with D_Base, D_Target, and D_Joint; numbers are averages across the four tasks (Table 4). SAGE for DeepSeek-V3.1 is recorded as N/A.
    • Results: For SAGE, the three average ASRs (harm scores) are 12.64% (1.38), 88.89% (4.47), and 92.91% (4.70), with a cross-model Avg. of 64.81% (3.52). For Self-Reminder, they are 29.74% (2.16), 80.77% (4.48), and 83.85% (4.62), with an Avg. of 64.79% (3.75). XSTest benign request refusal rates: DeepSeek-V3.1 with SAGE goes from 1.2% to 72%; GPT-4o with Self-Reminder goes from 4.0% to 14.4%.
    • Author interpretation: The abstract states these defenses are only marginally effective against MOBjailbreak; Section 5.2 describes the effect as negligible. The authors state they provide visible protection on the original set, that adding defenses to the surrogate sometimes strengthens the attack, and believe defense interference enhances the concealment of malicious content. The authors state SAGE outperforms Self-Reminder on the original set, and the two have similar harm scores under MOBjailbreak. In Table 4, not all D_Joint values are higher than D_Target; for example, under Self-Reminder, Grok-3-mini is 53.33% versus 63.33%.

    Attention Analysis

    • Subject: A successful attack input on Gemma-2-9b-it (the original prompt from Fig. 3), with the metric being the impact on output after token deletion.
    • Results: The authors state that none of the harmful tokens are among the top 15 in attention, with an average rank of 59/170. The highest values marked in Figure 4 include As 18.4466; harmful token values listed in the text include compromised 0.0059, with avoid and attention both at 0.0006.
    • Author interpretation: The authors believe the model focuses more on algorithm design instructions such as constraints and objectives, and state this vulnerability can be partially explained by this (Finding 5). The authors state the rank of 59/170 is in the moderately high range, and safety awareness is still insufficient to reject harmful prompts.

    Other Ablations and Analyses

    • Original four-task average ASR (harm score): OnlineBP 89.23% (4.53), TSP 89.23% (4.50), FSSP 75.90% (3.99), BOAFD 80.00% (4.09) (Table 3).
    • After MOBjailbreak, the corresponding values are 97.95% (4.93), 98.46% (4.89), 96.41% (4.74), and 98.97% (4.92).
    • Across all experimental results, the correlation coefficient between average ASR and average harm score is 0.974; the authors state the correlation is strong and that this supports their statistical methodology.
    • On the original FSSP, GPT-5 is 20.00% (2.13) and OpenAI-o3 is 20.00% (1.80); the paper does not provide a separate explanation for this.
    • The lowest D_Base for SAGE is 0.00% (1.00) for ERNIE-4.5-Turbo and Qwen3-235B, and the highest is 36.67% (2.15) for Claude-Sonnet-4 (Table 4).
    • One example in Fig. 3 is judged Harmful by the classifier for GPT-4o with a harm score of 5.00; three examples in Fig. 5 for GPT-4o, Gemini-2.5-Flash, and DeepSeek-V3.1 are likewise Harmful with 5.00.
  5. What are some points that can be further explored?

    The authors note that only intelligent optimization algorithms are covered, and that MalOptBench is small relative to general safety benchmarks.

    Limitations and future directions noted by the authors

    • Algorithm types: The study only covers intelligent optimization algorithms. The authors believe LLM misuse may go far beyond this scope and envision future examination of the safety of designing critical algorithms such as cryptography or network protocols (Limitations).
    • Benchmark size: MalOptBench is small relative to large-scale general safety benchmarks. The authors state that the main goal is to characterize this overlooked vulnerability rather than build an exhaustive dataset for large-scale training, and believe the current benchmark can serve as a representative baseline to draw the safety community's attention (Limitations).

    Experimental coverage

    • The main evaluation covers 13 models in Table 2; the attention analysis uses one input from Gemma-2-9b-it (Section 5.3).
    • MalOptBench has 15 items per task across four tasks, totaling 60; it was generated by GPT-4o and reviewed by two domain experts and GPT-4o (Section 3.1, Appendix A). The paper does not report inter-expert or reviewer-human agreement.
    • Defense experiments use SAGE and Self-Reminder with D_Base, D_Target, and D_Joint. Table 4 reports four-task averages; the paper states that per-task results are omitted due to space. SAGE is recorded as N/A on DeepSeek-V3.1.
    • Each model generates 3 responses per prompt. Both ASR and harm scores are assessed by GPT-4o. Construction, rewriting, and review use GPT-4o, and the surrogate for MOBjailbreak is DeepSeek-V3.
    • The motivation section ties the risk to zero-shot refusal (Section 2.3). The numbers exaggerating safe behavior come from refusal rates on the XSTest benign request set.
  6. Summarize the main content of the paper

    The authors evaluate 13 LLMs using 60 malicious optimization requests and MOBjailbreak, with an original average ASR of 83.59%.

    The authors examine refusal when LLMs are asked to design malicious intelligent optimization algorithms, and provide a benchmark with a companion jailbreak.

    • Question: Under zero-shot conditions, will models refuse malicious algorithm design requests. The authors believe that as long as this step is not refused, users can obtain usable algorithms; existing assistant, code, and agent safety work does not answer this.
    • Approach: GPT-4o first generates malicious user categories, then rewrites OnlineBP, TSP, FSSP, and BOAFD into 60 MalOptBench requests. MOBjailbreak uses DeepSeek-V3 as a surrogate to rewrite malicious intent into harmless expressions before querying the target model.
    • Original requests: The 13 models have an average ASR of 83.59% and a harm score of 4.28 (Table 3). GPT-5 is 38.33% (2.58), OpenAI-o3 is 55.00% (3.13); the authors state that the remaining closed-source models lack effective defenses. DeepSeek-V3 and DeepSeek-V3.1 are 100.00% (5.00).
    • Jailbreak and defenses: After MOBjailbreak, the 13 models have an average ASR of 97.95% and a harm score of 4.87. SAGE on the original set has an average ASR of 12.64% (1.38), and D_Target is 88.89% (4.47) (Table 4; SAGE for DeepSeek-V3.1 is N/A). The abstract states that defenses are only marginally effective against MOBjailbreak, while the main text states the effect is negligible.
    • Authors' conclusions: The authors state that current models have safety vulnerabilities against such attacks, that pluggable defenses may also lead to exaggerated safe behavior, and that stronger alignment is needed to prevent misuse in algorithm design. In the conclusion, the authors state that MalOptBench is the first benchmark for malicious optimization algorithm requests.

Related papers

Show 3 more papers
Read originalarxiv.org