mlsanityData to 14 Oct 2026

LLMs Caught in the Crossfire: Malware Requests and Jailbreak Challenges

arXiv 2506.10022 ↗First posted 9 Jun 2025cs.CR cs.AIcited by 9

On the map: LLM safety and security → Jailbreaking

Abstract (arXiv)

The widespread adoption of Large Language Models (LLMs) has heightened concerns about their security, particularly their vulnerability to jailbreak attacks that leverage crafted prompts to generate malicious outputs. While prior research has been conducted on general security capabilities of LLMs, their specific susceptibility to jailbreak attacks in code generation remains largely unexplored. To fill this gap, we propose MalwareBench, a benchmark dataset containing 3,520 jailbreaking prompts for malicious code-generation, designed to evaluate LLM robustness against such threats. MalwareBench is based on 320 manually crafted malicious code generation requirements, covering 11 jailbreak methods and 29 code functionality categories. Experiments show that mainstream LLMs exhibit limited ability to reject malicious code-generation requirements, and the combination of multiple jailbreak methods further reduces the model's security capabilities: specifically, the average rejection rate for malicious content is 60.93%, dropping to 39.92% when combined with jailbreak attack algorithms. Our work highlights that the code security capabilities of LLMs still pose significant challenges.

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

Builds on

18 of 29 references.

Closest ancestors · 12

Same direction, newest first

  1. 2024RMCBench: Benchmarking Large Language Models' Resistance to Malicious Code23 Sep
  2. 2024h4rm3l: A language for Composable Jailbreak Attack Synthesis9 Aug
  3. 2024JailBreakV: A Benchmark for Assessing the Robustness of MultiModal Large Language Models against Jailbreak Attacks3 Apr
  4. 2024Making Them Ask and Answer: Jailbreaking Large Language Models in Few Queries via Disguise and Reconstruction28 Feb
  5. 2024All in How You Ask for It: Simple Black-Box Method for Jailbreak Attacks18 Jan
  6. 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMs12 Jan
  7. 2023DeepInception: Hypnotize Large Language Model to Be Jailbreaker6 Nov
  8. 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generation10 Oct
  9. 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrations10 Oct
  10. 2023Low-Resource Languages Jailbreak GPT-43 Oct
  11. 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher12 Aug
  12. 2023MasterKey: Automated Jailbreak Across Multiple Large Language Model Chatbots16 Jul

Other references · 6

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agentscited by 369
  3. 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 278
  4. 2023Red-Teaming Large Language Models using Chain of Utterances for Safety-Alignmentcited by 223
  5. 2024ArtPrompt: ASCII Art-based Jailbreak Attacks against Aligned LLMscited by 216
  6. 2022Why Should Adversarial Perturbations be Imperceptible? Rethink the Research Paradigm in Adversarial NLPcited by 102

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 6.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Smoke and Mirrors: Jailbreaking LLM-based Code Generation via Implicit Malicious Prompts
  2. 2024Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMs
  3. 2024Characterizing and Evaluating the Reliability of LLMs against Jailbreak Attacks
  4. 2025You Can't Eat Your Cake and Have It Too: The Performance Degradation of LLMs with Jailbreak Defense
  5. 2023Tricking LLMs into Disobedience: Formalizing, Analyzing, and Detecting Jailbreaks
  6. 2025Evolving Security in LLMs: A Study of Jailbreak Attacks and Defenses
  7. 2024A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Models
  8. 2024A Cross-Language Investigation into Jailbreak Attacks in Large Language Models