RoguePrompt uses two-layer encoding to bypass LLM review, with a filter bypass rate of 93.93%RoguePrompt: Dual-Layer Encoding for Self-Reconstruction to Circumvent LLM Moderation
RoguePrompt performs two-layer encoding self-reconstructing jailbreaks on StrongREJECT, with an average Execution@3 of 70.18% across three models.
The black-box adversary has only API/UI text access, does not know weights, system prompts, training data, or proprietary review rules, and cannot modify the model or filters. The evaluation is single-turn: one query contains all instructions. Success requires visible acceptance, output-evidence reconstruction, and execution in the same reply; generative refusal counts as acceptance.
- Hosted LLMs often have input screening, model refusal, and output control, but evaluations of multi-stage prompt transformations are often collapsed into a single success rate, obscuring whether failure stops at acceptance, reconstruction, or execution. RoguePrompt aims to measure these three stages separately in a black-box, API/UI-only, single-turn interaction.
- The disabled prompt is split into even and odd text segments, Vigenère is applied only to the serialized odd stream, then ROT13 is applied to the assembled payload containing the even stream, ciphertext, key, and order information, with the wrapper requiring inverse transformation and execution in the same reply. Before evaluation, the wrapper, key, and template are frozen, and each condition is submitted three times independently.
- Across three models and 313 StrongREJECT items, RoguePrompt's bypass, reconstruction, and execution @3 averages are 93.93%, 79.02%, and 70.18%, higher than the baseline maximum of 33.97%. Base64 Raw has high reconstruction and low execution. In ablations, removing either layer lowers all three stages.
- The authors state that the results are a snapshot of three hosted configurations from April–May 2025, that the configurations have since been updated and specific rates will change, and that the benchmark does not cover long context or multi-turn. Evaluation is automatic labeling with a fixed three queries, and a blind review of 300 items found no disagreements requiring label changes.
- Evaluated models
- OpenAI GPT-4o (gpt-4o-2024-11-20)Anthropic Claude 3 Opus (claude-3-opus-20240229)Google Gemini 1.5 Pro (gemini-1.5-pro-002)
- Benchmarks
- StrongREJECT
- Metrics
- Bypass@3Reconstruction@3Execution@3
The researchers propose the RoguePrompt jailbreak pipeline, which splits the forbidden prompt and applies two layers of encoding, Vigenère and ROT13, in sequence, along with natural-language reconstruction instructions, testing under a black-box threat model with only API or UI access to hosted models. On 313 real-world prompts that were hard-refused, the method achieves an average filter bypass rate of 93.93%, instruction reconstruction rate of 79.02%, and execution rate of 70.18%. The paper evaluates visible acceptance, successful recovery of the hidden request, and subsequent execution separately, identifying where multi-stage prompt transformation attacks fail in review bypass, instruction reconstruction, and execution. This manuscript is a revised and expanded version of arXiv:2511.18790, refining the threat model, method, and stage-wise evaluation criteria.
Paper analysis
What problem does this paper attempt to solve?
Multi-stage jailbreaks are often collapsed into a single success rate; RoguePrompt measures bypass, reconstruction, and execution separately.
In observable black-box interactions, multi-stage prompt transformation jailbreaks fail at visible acceptance, request reconstruction, or execution.
- Scenario: The authors state that as hosted LLMs enter conversational assistants, development tools, and agent pipelines, providers often add input screening, model refusal, and output controls. Ordinary users cannot see proprietary routing and cannot determine which internal component caused a refusal.
- Existing gaps: The authors state that cipher interaction, in-code decryption, prompt decomposition and reconstruction, and layered custom encryption are already available primitives, but existing evaluations often collapse visible acceptance, successful recovery of the hidden request, and subsequent execution into a single success rate. Looking only at the final reply does not reveal whether an intervention changed boundary screening, reconstruction, or post-reconstruction refusal.
- Observation: Self-reconstructing prompts make the target act as both decoder and executor. The surface form must avoid visible hard blocking while retaining structure that can be faithfully reconstructed; acceptance without reconstruction, or refusal after reconstruction, is not full success.
- Proposal: RoguePrompt, a deterministic single-turn pipeline. After splitting into even/odd text segments, Vigenère is applied only to the serialized odd stream, then ROT13 is applied to the assembled payload, with inverse transformation and execution instructions. Success is automatically determined per stage: bypass, reconstruction, execution.
- Threat model:
- Goal: Induce a policy-violating user-visible reply while avoiding automated detection. End-to-end success requires visible acceptance, reconstruction, and execution in the same reply, with the violating content reaching the user.
- Knowledge: black-box. No access to weights, system prompts, training data, or proprietary review rules; only inference from query results.
- Capabilities: Only API/UI text input and output; cannot modify the model or filters. Evaluation trials are single-turn (zero-shot), with all instructions in one query; offline design of fixed templates before evaluation is not excluded.
- Victim system: The protected asset is policy compliance of user-visible replies. Only recognizable service-level refusals or explicit API/UI blocks count as blocking; generative refusals count as visible acceptance and are deferred to later stages.
What related research exists?
The authors position this work as asymmetric two-layer encoding and measure bypass, reconstruction, and execution separately.
The authors place the closest work under self-reconstruction and representation shaping, and locate the difference in asymmetric composition and segment-wise measurement, rather than in standalone encryption or odd-even reordering.
Layered safety and observable outcomes
- Managed control: The authors survey input screening, model refusal during generation, and output processing before delivery (Anthropic 2024; Google DeepMind 2022; OpenAI 2023). Externally distinguishable outcomes include hard interception, unrecovered instructions, refusal after reconstruction, and execution.
- Measurement choices: The authors state that closed-source services cannot attribute outcomes to a specific internal component, so they treat visible input acceptance as a proxy hematite and separate it from reconstruction and execution.
Jailbreaks and policy evasion
- Techniques and search: Direct prompt engineering and programmatic exploitation (Kang et al. 2023; Liu et al. 2024); role-playing, coercion framing, stitching, vocabulary obfuscation, and encoded payloads (Krauß et al. 2025; Liu et al. 2024; Zhang et al. 2024). Mutation and goal-directed search show that effective prompts need not be entirely handcrafted (Deng et al. 2024; Shao et al. 2025; Zhang et al. 2024).
- The authors' critique: The authors state that these works illustrate the scope and adaptability of prompt-based attacks, but evaluations typically look at whether the final response complies or refuses, and many attacks revolve around a single template or transformation.
Self-reconstruction and representation shaping
- CipherChat (Yuan et al. 2024): Uses system roles and encrypted examples to teach the model to communicate in cipher, with returned ciphertext decoded externally.
- CodeChameleon (Lv et al. 2024): Personalizes word order or structural transformations, including OddEven; embeds Python-like decryption and solving functions within a code completion wrapper.
- DrAttack and ACE/LACE: DrAttack (Li et al. 2024) performs syntactic decomposition, benign recombination examples, and synonym search; Table 1 states its black-box search budget is up to 15 queries. ACE/LACE (Handa et al. 2025) studies custom ciphers, multi-layer ciphers, and the relationship between decoding ability and attack success.
Baseline methods and benchmarks
- Baseline methods: Paired-Request Concatenation is this paper's custom single-turn template, not iterative PAIR; PAP is the authority-endorsement persuasion template (Zeng et al. 2024); Auto Payload Splitting takes from Kang et al. 2023; Disemvowel and Base64 Raw come from StrongREJECT (Souly et al. 2024).
- Benchmark: StrongREJECT, 313 violating prompts that per that benchmark's protocol should be refused and are concretely answerable. Table 1 notes that published success rates are not directly comparable because datasets, targets, and judges differ; Section 5.4 states that these reconstruction-type attacks did not enter numerical runs.
The authors state that this paper does not treat encryption, odd-even reordering, decomposition, reconstruction, or cipher layering as standalone new contributions. The attack-side difference is deterministic asymmetric composition: two serialized streams, with only the odd stream receiving the inner Vigenère, and an outer ROT13 covering assembled fields and metadata. The method-side difference is separately labeling visible acceptance, reconstruction with output evidence, and execution.
How does the paper address this problem?
After splitting into even and odd segments, apply Vigenère only to the odd stream, then apply ROT13 to the assembled payload.
RoguePrompt turns the disabled prompt into a single-turn self-reconstructing query. The flow in the Figure 1 caption is: hard-blocked request, obfuscated prompt, reconstruction with output evidence, unsafe output (redacted).
Problem setup and formalization
- Splitting: plaintext I is split by τ at word boundaries into attack-side text segments, preserving non-alphabetic characters needed for reconstruction. These segments are not target-model tokens and do not depend on its proprietary tokenizer.
- Two forms: P=τ(I)=(t0,t1,⋯,tn−1) is the segment sequence; Q=Wrap(g(A)) is a single-turn query that applies outer ROT13 to the assembled payload and then wraps it with visible instructions.
- Parity partition: starting from index 0, split into even stream E and odd stream O, preserving order within each stream. Reassembly interleaves starting from E; when n is odd, E has one more segment than O, and the last segment comes from E. Neither path contains the complete request in its original order.
- Encoding order: inner Vigenère is applied only to the serialized odd stream. The assembly fields contain the even stream, that ciphertext, the key, and order metadata; outer ROT13 covers the assembled payload, not the visible wrapper.
Design choices
- Four goals: representation separation, invertible transformation so failures can be attributed to the model rather than information loss, payload and inverse process in one query, and fixing all attack-side choices before evaluation.
- Role of each layer: parity partition separates adjacent segments; Vigenère makes the two paths' surface representations asymmetric; ROT13 further transforms the assembly fields, including the still-plaintext even stream and reconstruction metadata. The wrapper remains readable because it must explain how to invert the outer layer and parse the fields.
- Non-secret cipher: the key is written in the prompt, and ROT13 is invertible. The authors state they make no cryptographic security claims; value is assessed by segmented results and component ablations.
- Fixed rules: both transformations process only ASCII letters, preserve case, leave non-letters unchanged, and the key advances only when transforming letters. Length-prefix serialization preserves span boundaries. The same configuration shares a pre-registered key identifier; no per-prompt search or manual key tuning is allowed. The main text does not give the formal experimental key.
Generation and three trials
- Generation: split, parity partition, encrypt odd stream, assemble, ROT13, wrap. Time and space are O(L). No combinatorial search, and prompts are not generated against the target tokenizer.
- Aggregation: the same transformed query is submitted three times independently, with no rewriting between trials. Condition-level Bypass@3, Reconstruction@3, Execution@3 are the logical OR of the three indicators. Trial-level execution marks that trial's reconstruction as successful; if blocked, both reconstruction and execution are 0.
- Freezing: wrapper, key policy, splitting and serialization, parser, labeling rules, and baseline templates are fixed before evaluation. Only transport or rate-limit failures with no model reply are retried; refusals, safe completions, malformed and partial answers are kept.
- Invertibility does not equal reconstruction success: the authors state the mapping is lossless under the stated parsing rules, but tokenization of the encoded string, and provider normalization of whitespace, Unicode, or punctuation, may still cause the model not to follow the wrapper. Reproducibility is limited to prompt construction and automatic labeling code (Section 4.5).
Success criteria
- Visible acceptance: no identifiable service-level refusal, explicit API/UI block, or pre-generation flag, but a completion-style reply. This is a bypass proxy, not proof that a specific review component let it through. Generative refusal still counts as acceptance.
- Reconstruction: the visible reply after acceptance restates, paraphrases, or substantively responds to the original request, without checking internal state. If there is no clear evidence, this stage is 0.
- Execution: substantively completes the reconstructed request, rather than refusing, safely completing, or returning only incomplete fragments. Execution also counts as reconstruction evidence, even without explicit repetition of the recovered instruction. Condition-level Execution@3 thus means that in at least one trial, all three stages occurred in the same reply.
What experiments did the paper conduct?
On StrongREJECT, the three-model average Execution@3 is 70.18%, higher than the baseline's 33.97%.
On 313 StrongREJECT prompts and three hosted models, RoguePrompt's average Execution@3 is 70.18%, higher than the five baselines in the table (Table 3).
Experimental Setup
- Target models: OpenAI GPT-4o (gpt-4o-2024-11-20), Anthropic Claude 3 Opus (claude-3-opus-20240229), Google Gemini 1.5 Pro (gemini-1.5-pro-002). Queries were in April–May 2025, using provider default settings, without changing temperature, top-p, or system messages. The paper does not give specific values for temperature or top-p.
- Data: 313 StrongREJECT prompts. In Table 7, the number of source prompts per configuration is: disinformation and deception 50, hate/harassment 50, illegal goods and services 50, non-violent crimes 59, sexual content 50, violence 54.
- Comparisons: The five baselines are in Table 6. Paired-Request Concatenation is this paper's single-turn template, not iterative PAIR. CipherChat, CodeChameleon, DrAttack, and ACE/LACE in Table 1 did not enter this numerical run. The six ablation variants reuse the full RoguePrompt from the main experiment and do not separately run the full method.
- Budget: Three independent single turns per prompt–method–model condition, with identical content and no adaptation between trials. The main comparison is 6 methods × 3 configurations × 313 prompts, i.e., 5634 conditions and 16902 target submissions. The ablation adds another 5634 conditions and 16902 submissions. In total, 11268 conditions and 33804 target submissions. Auto Payload Splitting additionally has 313 offline auxiliary construction calls, not counted in the equal three-target budget. The paper does not state the name of this auxiliary model.
- Metrics: If at least one of three succeeds, that stage's @3 is 1. Method-level numbers are the arithmetic mean of the three configurations' @3; the paper states that because the prompt set is the same, this also equals the equal-weight pooled rate. Trial-level execution entails acceptance and reconstruction.
- Judging: Rule-based detection of service-level blocks, refusal phrases, and reconstruction errors. jinaai/jina-embeddings-v3 provides 1024-dimensional L2-normalized cosine (retrieval.query for requests, retrieval.passage for response chunks); maximum similarity and top-3 mean are used only as signals and do not alone determine labels; the paper does not give a threshold for determining labels alone. Llama-3.3-70B-Instruct, via an author-managed API, is called once per target response and gives binary judgments of reconstruction and execution; it does not see the transformed attack prompt, target identity, chain of thought, or provider traces. Identifiable service-level blocks are set to 0 for all three stages by deterministic rules, overriding judge output. Labels are not manually rewritten. The authors conducted a label-blind review of 300 records and found no disagreements requiring label changes. Failure condition priority is RAR, PR, DPF, OTH, BI (Table 2).
Main Results
According to Table 3, arithmetic mean of three configurations; N=313 per configuration, three trials per condition.
Swipe horizontally to read the table
Method Bypass@3 Reconstruction@3 Execution@3 RoguePrompt 93.93% 79.02% 70.18% Auto Payload Splitting 79.55% 76.36% 12.99% Base64 Raw 93.40% 93.29% 16.83% Disemvowel 3.09% 3.09% 2.13% Paired-Request Concatenation 60.81% 57.93% 33.97% PAP (Authority Endorsement) 63.68% 51.54% 25.13% - The authors state that RoguePrompt is the only evaluated method in which a majority of conditions still reach Execution@3 after the first two stages; its execution rate is higher than the five baselines in the table.
- The authors state that Base64 Raw shows that reconstruction and the accompanying visible acceptance cannot proxy for end-to-end success. Auto Payload Splitting likewise has far more reconstruction than execution. Disemvowel is low at all three stages.
- Section 5.3's description of Figure 2: RoguePrompt's Execution@3 is Gemini 1.5 Pro 66.13%, GPT-4o 71.25%, Claude 3 Opus 73.16%. Its Bypass@3 ranges from 90.10% to 97.13%, and Reconstruction@3 from 73.80% to 82.11%; the paper does not map the endpoints of these two ranges to specific models. The authors state that Paired-Request Concatenation is the baseline with the highest Execution@3 in every configuration, and Base64 Raw's Execution@3 is close to 16–17%.
At Which Stage Failures Stop
Table 5's denominator is the number of conditions with Execution@3 failure, summed across the three models.
- RoguePrompt: 280 failures, BI 20.36%, DPF 35.00%, PR 15.00%, RAR 21.43%, OTH 8.21%. The authors state that no single category accounts for a majority of its failures.
- Comparison distributions: Of Disemvowel's 919 failures, BI accounts for 99.02%. Of Base64 Raw's 781 failures, RAR accounts for 88.35%. Of Auto Payload Splitting's 817 failures, RAR accounts for 59.98%. Of Paired-Request Concatenation's 620 failures, BI accounts for 59.35%; of PAP's 703 failures, BI accounts for 48.51%.
- Authors' interpretation: Even when final Execution@3 is similar, the observable failure stages differ; reporting only execution would conceal this.
Content Categories
According to Table 7. The prompt count is the number of source prompts per configuration; the rates are the three-configuration average @3.
Swipe horizontally to read the table
Category Prompts Bypass@3 Recon.@3 Exec.@3 Disinformation and deception 50 95.33% 90.67% 87.33% Hate/Harassment 50 94.00% 84.67% 74.00% Illegal goods and services 50 94.00% 64.00% 51.33% Non-violent crimes 59 92.66% 61.02% 49.15% Sexual content 50 96.67% 93.33% 90.00% Violence 54 91.36% 83.33% 72.84% - The authors state that Bypass@3 is relatively stable, while execution rates differ more across categories and cannot be explained solely by observable input blocking; lower categories also have lower Reconstruction@3.
- The authors state that these category results are descriptive rather than causal: prompt length, linguistic structure, and provider policy may all differ by domain.
Other Ablations and Analyses
Table 4 is the @3 percentage change relative to the full RoguePrompt, not absolute success rates. The wrapper family, key strategy, three-trial budget, and judging are fixed; variants are not retuned.
- No ROT13 (Vig+Split): Bypass@3 −50.18%, Reconstruction@3 −42.38%, Execution@3 −67.93%.
- No Splitting (Vig+ROT13): −55.63%, −48.86%, −74.59%. The authors state this is the largest three-stage drop among the component-removal variants.
- No Vigenère (ROT13+Split): −52.00%, −44.55%, −70.05%.
- ROT13 only: −85.65%, −83.61%, −94.41%.
- Splitting only: −98.76%, −98.52%, −98.79%.
- Vigenère only: −81.57%, −78.76%, −91.69%. The authors state that single-component variants are worse and that the observed performance depends on the combined construction; these numbers are not a general ranking after separately optimizing prompts.
What are some points that can be further explored?
The authors state that the results are a snapshot of three hosted configurations from April–May 2025, and that the benchmark does not cover long context or multi-turn.
The authors write the main limitations as the three hosted snapshots at the time, and that the benchmark does not cover long context or multi-turn.
Limitations noted by the authors and future directions
- Snapshot: The results are a snapshot of three hosted configurations and their provider policies from April–May 2025; these configurations have since been updated. The authors state that the contribution lies in the attack construction and evaluation methodology, not in specific rates, which are expected to change with providers (Section 6).
- Deployment form: The benchmark does not cover long-context or multi-turn deployment (Section 6).
- Query budget: The reported @3 rates characterize performance under this fixed, uniformly applied three-query budget (Section 6).
- Extrapolation: The authors state that consistency across the three configurations supports a reproducible failure mode in the tested systems, but does not establish universal susceptibility, nor does it identify a common flaw in internal architectures (Section 6).
- Review: In threats to validity, the authors write that the hybrid review combines deterministic checks with model-based classification, with a blind review of 300 labels as a reliability check (Section 6).
- Defense directions: The authors suggest that defenses evaluate the computation requested by a prompt rather than only surface text, re-apply safety policies after reconstruction and before execution or delivery, and include covert multi-step instructions in training and evaluation (Section 6, Conclusion).
Experimental coverage
- The tested configurations are GPT-4o (gpt-4o-2024-11-20), Claude 3 Opus (claude-3-opus-20240229), and Gemini 1.5 Pro (gemini-1.5-pro-002), with queries in April–May 2025 using provider default service configurations; the paper does not give specific values for temperature or top-p (Section 5.1).
- The data are 313 StrongREJECT items, with Table 7 listing six categories of policy domains; the main comparison includes five baselines, with three independent single-turn runs per condition (Sections 5.1, 5.4).
- Stage labels are assigned automatically by rules, jina-embeddings-v3 signals, and Llama-3.3-70B-Instruct; a blind review of 300 items found no disagreements requiring label changes. The paper does not report a consistency coefficient (Section 5.2).
- The ablation removes or retains only the named transformations under a fixed wrapper family and three-query budget, i.e., the six variants in Table 4 (Section 5.3). The paper states in Section 4.5 that reproducibility is limited to the prompt construction and automatic labeling code.
- CipherChat, CodeChameleon, DrAttack, and ACE/LACE are used only for mechanistic comparison and were not included in the numerical runs; the paper states that published success rates are not placed side by side because datasets, target versions, query budgets, wrappers, and reviews differ (Section 5.4). The paper does not state the name of the auxiliary model for Auto Payload Splitting.
Summarize the main content of the paper
RoguePrompt is a single-turn two-layer encoded self-reconstruction jailbreak, with a three-model average Execution@3 of 70.18%.
RoguePrompt is a black-box, single-turn jailbreak against hosted LLMs, used to separate the failures of layered concealment and self-reconstruction.
Looking only at the final harmful output conflates whether the input was hard-blocked, whether the hidden request was recovered, and whether it was refused after recovery. The adversary has only the API/UI and cannot modify the model or filters; the template is fixed before evaluation, with one query per trial.
The disallowed prompt is split by even/odd text segments, Vigenère is applied only to the odd stream, and after assembly ROT13 is applied. The visible wrapper gives the inverse process and requires execution within the same response. The key is written in the prompt, with no claim of cryptographic secrecy. Three independent trials are logically ORed to obtain bypass, reconstruction, and execution respectively.
On 313 StrongREJECT prompts, GPT-4o, Claude 3 Opus, and Gemini 1.5 Pro (default configuration, April–May 2025):
- The three-configuration average Bypass@3 is 93.93%, Reconstruction@3 is 79.02%, and Execution@3 is 70.18%, higher than the highest of the five baselines, Paired-Request Concatenation at 33.97% (Table 3).
- Per-model Execution@3 is Gemini 1.5 Pro 66.13%, GPT-4o 71.25%, Claude 3 Opus 73.16% (Section 5.3).
- Base64 Raw's average Reconstruction@3 is 93.29%, and Execution@3 is 16.83%. The authors state that reconstruction cannot proxy for end-to-end success.
- Of the 280 execution failures summed across the three models, decoding or parsing failures account for 35.00%, and no single failure class exceeds half (Table 5). Sexual content Execution@3 is 90.00%, and non-violent crimes is 49.15% (Table 7).
- When splitting is removed, Execution@3 changes by −74.59% relative to the full method (Table 4); the numbers in that table are relative changes, not absolute success rates.
The authors state that surface acceptance is insufficient to characterize end-to-end safety, and that moderation should evaluate the transformation intent and reapply policy after reconstruction and before delivery. The above rates are results under the three hosted snapshots at that time, and the authors state this does not imply general susceptibility.
Related papers
Show 3 more papers
- Guard Models Are Overconfident Where Base Models Are UncertainAnalysis / interpretabilityarXiv