LLMs Caught in the Crossfire: Malware Requests and Jailbreak Challenges
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
- 2024RMCBench: Benchmarking Large Language Models' Resistance to Malicious Code23 Sep
- 2024h4rm3l: A language for Composable Jailbreak Attack Synthesis9 Aug
- 2024JailBreakV: A Benchmark for Assessing the Robustness of MultiModal Large Language Models against Jailbreak Attacks3 Apr
- 2024Making Them Ask and Answer: Jailbreaking Large Language Models in Few Queries via Disguise and Reconstruction28 Feb
- 2024All in How You Ask for It: Simple Black-Box Method for Jailbreak Attacks18 Jan
- 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMs12 Jan
- 2023DeepInception: Hypnotize Large Language Model to Be Jailbreaker6 Nov
- 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generation10 Oct
- 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrations10 Oct
- 2023Low-Resource Languages Jailbreak GPT-43 Oct
- 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher12 Aug
- 2023MasterKey: Automated Jailbreak Across Multiple Large Language Model Chatbots16 Jul
Other references · 6
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agentscited by 369
- 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 278
- 2023Red-Teaming Large Language Models using Chain of Utterances for Safety-Alignmentcited by 223
- 2024ArtPrompt: ASCII Art-based Jailbreak Attacks against Aligned LLMscited by 216
- 2022Why Should Adversarial Perturbations be Imperceptible? Rethink the Research Paradigm in Adversarial NLPcited by 102
Built on by
Citing papers per year: 2025: 3; 2026: 6.
9 papers.
- 2026Why LLMs Aren't Scientists Yet: Lessons from Four Autonomous Research Attemptscited by 13
- 2025Casting a SPELL: Sentence Pairing Exploration for LLM Limitation-breakingcited by 1
- 2026Overlooked Safety Vulnerability in LLMs: Malicious Intelligent Optimization Algorithm Request and its Jailbreakcited by 1
- 2026Refusal Evaluation in Coding LLMs and Code Agents: A Systematic Review of Thirteen Malicious-Code Prompt Corpora (2023-2025)cited by 1
- 2025Data Security in Large Language Models: Risks, Defense, and Directionscited by 0
- 2025Real-Time Crowd Counting for Embedded Systems with Lightweight Architecturecited by 0
- 2026Code as a Weapon: A Consensus-Labeled Prompt Bank for Measuring Coding-Model Compliance with Malicious-Code Requestscited by 0
- 2026Grammar-Constrained Decoding Can Jailbreak LLMs into Generating Malicious Codecited by 0
- 2026CS-Guard: Benchmarking LLM Guardrails for Code Generation Securitycited by 0
- 2026CS-Guard: Benchmarking LLM Guardrails for Code Generation Security9 Sep 2026
- 2026Grammar-Constrained Decoding Can Jailbreak LLMs into Generating Malicious Code10 Jun 2026
- 2026Code as a Weapon: A Consensus-Labeled Prompt Bank for Measuring Coding-Model Compliance with Malicious-Code Requests27 May 2026
- 2026Refusal Evaluation in Coding LLMs and Code Agents: A Systematic Review of Thirteen Malicious-Code Prompt Corpora (2023-2025)19 May 2026
- 2026Why LLMs Aren't Scientists Yet: Lessons from Four Autonomous Research Attempts6 Jan 2026
- 2026Overlooked Safety Vulnerability in LLMs: Malicious Intelligent Optimization Algorithm Request and its Jailbreak1 Jan 2026
- 2025Casting a SPELL: Sentence Pairing Exploration for LLM Limitation-breaking24 Dec 2025
- 2025Real-Time Crowd Counting for Embedded Systems with Lightweight Architecture15 Oct 2025
- 2025Data Security in Large Language Models: Risks, Defense, and Directions4 Aug 2025
Similar, not cited
Close in wording, no citation either way
- 2025Smoke and Mirrors: Jailbreaking LLM-based Code Generation via Implicit Malicious Prompts
- 2024Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMs
- 2024Characterizing and Evaluating the Reliability of LLMs against Jailbreak Attacks
- 2025You Can't Eat Your Cake and Have It Too: The Performance Degradation of LLMs with Jailbreak Defense
- 2023Tricking LLMs into Disobedience: Formalizing, Analyzing, and Detecting Jailbreaks
- 2025Evolving Security in LLMs: A Study of Jailbreak Attacks and Defenses
- 2024A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Models
- 2024A Cross-Language Investigation into Jailbreak Attacks in Large Language Models