mlsanityData to 14 Oct 2026

EquaCode: A Multi-Strategy Jailbreak Approach for Large Language Models via Equation Solving and Code Completion

arXiv 2512.23173 ↗First posted 29 Dec 2025cs.CR cs.AIcited by 2

On the map: LLM safety and security → Jailbreaking

Abstract (arXiv)

Large language models (LLMs), such as ChatGPT, have achieved remarkable success across a wide range of fields. However, their trustworthiness remains a significant concern, as they are still susceptible to jailbreak attacks aimed at eliciting inappropriate or harmful responses. However, existing jailbreak attacks mainly operate at the natural language level and rely on a single attack strategy, limiting their effectiveness in comprehensively assessing LLM robustness. In this paper, we propose Equacode, a novel multi-strategy jailbreak approach for large language models via equation-solving and code completion. This approach transforms malicious intent into a mathematical problem and then requires the LLM to solve it using code, leveraging the complexity of cross-domain tasks to divert the model's focus toward task completion rather than safety constraints. Experimental results show that Equacode achieves an average success rate of 91.19% on the GPT series and 98.65% across 3 state-of-the-art LLMs, all with only a single query. Further, ablation experiments demonstrate that EquaCode outperforms either the mathematical equation module or the code module alone. This suggests a strong synergistic effect, thereby demonstrating that multi-strategy approach yields results greater than the sum of its parts.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 26 of its 31 references that are in the map. First posted on arXiv 29 Dec 2025.

Builds on

26 of 31 references.

Closest ancestors · 20

Same direction, newest first

  1. 2024AmpleGCG-Plus: A Strong Generative Model of Adversarial Suffixes to Jailbreak LLMs with Higher Success Rates in Fewer Attempts29 Oct
  2. 2024FlipAttack: Jailbreak LLMs via Flipping2 Oct
  3. 2024GPT-4 Jailbreaks Itself with Near-Perfect Success Using Self-Explanation21 May
  4. 2024Boosting Jailbreak Attack with Momentum2 May
  5. 2024AdvPrompter: Fast Adaptive Adversarial Prompting for LLMs21 Apr
  6. 2024AmpleGCG: Learning a Universal and Transferable Generative Model of Adversarial Suffixes for Jailbreaking Both Open and Closed LLMs11 Apr
  7. 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attacks2 Apr
  8. 2024Making Them Ask and Answer: Jailbreaking Large Language Models in Few Queries via Disguise and Reconstruction28 Feb
  9. 2024CodeChameleon: Personalized Encryption Framework for Jailbreaking Large Language Models26 Feb
  10. 2024COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllability13 Feb
  11. 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMs12 Jan
  12. 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automatically4 Dec
8 more
  1. 2023A Wolf in Sheep's Clothing: Generalized Nested Jailbreak Prompts can Fool Large Language Models Easily14 Nov
  2. 2023Jailbreaking Black Box Large Language Models in Twenty Queries12 Oct
  3. 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models3 Oct
  4. 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Prompts19 Sep
  5. 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher12 Aug
  6. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models7 Aug
  7. 2023MasterKey: Automated Jailbreak Across Multiple Large Language Model Chatbots16 Jul
  8. 2023Jailbroken: How Does LLM Safety Training Fail?5 Jul

Other references · 6

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  3. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
  4. 2024ArtPrompt: ASCII Art-based Jailbreak Attacks against Aligned LLMscited by 216
  5. 2024Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Promptscited by 205
  6. 2023An LLM can Fool Itself: A Prompt-Based Adversarial Attackcited by 116

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024An Interpretable N-gram Perplexity Threat Model for Large Language Model Jailbreaks
  2. 2024Jailbreak Attacks and Defenses Against Large Language Models: A Survey
  3. 2024A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Models
  4. 2026SoK: Robustness in Large Language Models against Jailbreak Attacks
  5. 2026TAO-Attack: Toward Advanced Optimization-Based Jailbreak Attacks for Large Language Models
  6. 2024Jailbreaking Large Language Models Through Alignment Vulnerabilities in Out-of-Distribution Settings
  7. 2026Defending Large Language Models Against Jailbreak Attacks via In-Decoding Safety-Awareness Probing
  8. 2025GRAF: Multi-turn Jailbreaking via Global Refinement and Active Fabrication