[Paper Review] Jailbreaking Large Language Models Against Moderation Guardrails via Cipher Characters
This paper introduces JAMBench, a benchmark of 160 manually crafted malicious questions targeting four high-risk categories—Hate and Fairness, Sexual, Violence, and Self-Harm—to evaluate moderation guardrails in LLMs. It proposes JAM (Jailbreak Against Moderation), a dual-stage attack using jailbreak prefixes and cipher characters to bypass both input and output-level filters, achieving a 19.88× higher jailbreak success rate and a 6× lower filtered-out rate than baselines on four LLMs.
Large Language Models (LLMs) are typically harmless but remain vulnerable to carefully crafted prompts known as ``jailbreaks'', which can bypass protective measures and induce harmful behavior. Recent advancements in LLMs have incorporated moderation guardrails that can filter outputs, which trigger processing errors for certain malicious questions. Existing red-teaming benchmarks often neglect to include questions that trigger moderation guardrails, making it difficult to evaluate jailbreak effectiveness. To address this issue, we introduce JAMBench, a harmful behavior benchmark designed to trigger and evaluate moderation guardrails. JAMBench involves 160 manually crafted instructions covering four major risk categories at multiple severity levels. Furthermore, we propose a jailbreak method, JAM (Jailbreak Against Moderation), designed to attack moderation guardrails using jailbreak prefixes to bypass input-level filters and a fine-tuned shadow model functionally equivalent to the guardrail model to generate cipher characters to bypass output-level filters. Our extensive experiments on four LLMs demonstrate that JAM achieves higher jailbreak success ($\sim$ $ imes$ 19.88) and lower filtered-out rates ($\sim$ $ imes$ 1/6) than baselines.
Motivation & Objective
- To address the lack of benchmarks that trigger moderation guardrail filters in production LLMs, particularly for responses that are blocked post-generation.
- To identify and evaluate the vulnerability of modern LLMs with input-output guardrails to jailbreaks that evade both input and output filtering.
- To design a novel jailbreak method, JAM, capable of bypassing both input-level jailbreak detection and output-level moderation filtering.
- To propose and evaluate countermeasures that can defend against the JAM attack by enforcing structured response formats.
Proposed method
- JAMBench is constructed with 160 manually crafted malicious instructions across four risk categories—Hate and Fairness, Sexual, Violence, and Self-Harm—each at medium and high severity levels.
- JAM employs a jailbreak prefix to disguise malicious intent at the input level, evading input-level filters.
- A fine-tuned shadow model, functionally equivalent to the guardrail model, generates cipher characters to obfuscate harmful content in the output.
- The cipher characters are designed to be semantically equivalent to harmful content but bypass output-level moderation filters by appearing as non-standard or encoded text.
- The attack combines the jailbreak prefix, the malicious prompt, and cipher-encoded output to evade detection at both input and output stages.
- Two countermeasures are proposed: enforcing a pre-defined response format and using a verification model to detect obfuscated outputs.
Experimental results
Research questions
- RQ1Can existing red-teaming benchmarks effectively evaluate the robustness of moderation guardrails in LLMs when responses are filtered out post-generation?
- RQ2To what extent can jailbreaks bypass both input-level and output-level moderation guardrails simultaneously?
- RQ3How effective is the JAM method in evading both input-level jailbreak detection and output-level content filtering compared to existing baselines?
- RQ4What are the key vulnerabilities in current moderation guardrails that allow attacks like JAM to succeed?
- RQ5Can structured response formats or verification models serve as effective defenses against cipher-based jailbreaks?
Key findings
- JAM achieves a jailbreak success rate approximately 19.88 times higher than baseline methods on four tested LLMs.
- The filtered-out rate for JAM is reduced to approximately 1/6th of the baseline rates, indicating strong evasion of output-level moderation.
- JAMBench successfully triggers moderation guardrail filters across all four risk categories, validating its utility as a red-teaming benchmark.
- The attack remains effective even when guardrails are applied at both input and output levels, demonstrating the vulnerability of current defense architectures.
- Two countermeasures—response format enforcement and output verification—were shown to effectively defend against JAM, suggesting practical mitigation paths.
- The study reveals that existing benchmarks fail to assess guardrail robustness against filtered-out responses, highlighting a critical gap in LLM safety evaluation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.