CRAIJun 9, 2025

LLMs Caught in the Crossfire: Malware Requests and Jailbreak Challenges

arXiv:2506.10022v112 citationsh-index: 12ACL
Originality Incremental advance
AI Analysis

This work addresses security risks for LLM users in code generation, though it is incremental as it builds on prior research on jailbreak attacks.

The paper tackles the vulnerability of Large Language Models (LLMs) to jailbreak attacks in code generation by introducing MalwareBench, a benchmark dataset with 3,520 prompts. Experiments show that mainstream LLMs have an average rejection rate of 60.93% for malicious content, which drops to 39.92% when combined with jailbreak attacks.

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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes