HE-Guardrail: A Homomorphic Guardrail Against Jailbreak Attacks for Encrypted Large Language Model Inference
Byeongseo Min, Yongwoo Lee, Young-Sik Kim, Yongjune Kim
cs.CR · cs.AI
Quick verdict
Proposes homomorphic guardrails gating encrypted LLM responses; sound HE engineering, but detection gains are modest and leakage analysis is only intuitive.
Summary
The paper identifies a gap in HE-based LLM inference: because the server cannot inspect encrypted prompts or responses, a malicious client can submit jailbreak prompts undetected. It proposes HE-Guardrail, a framework that evaluates jailbreak guardrails entirely under RNS-CKKS and homomorphically gates the returned response between the target-model output and a predefined refusal, with a gated noise-flooding term masking residual information about the suppressed response. Three instantiations are developed on Llama-3-8B-Instruct: intra-processing JBShield-D (encrypted cosine similarity of calibrated concept vectors on the layer-32 last-token hidden state, with an online-SVD elimination), intra-processing GradSafe-Zero (full homomorphic backpropagation for gradient extraction with low-level checkpointing and streaming gradient similarity), and pre-processing Llama Guard 3-8B (multi-model serving extending MOAI's interleaved batching so target and guardrail share one ciphertext). On six attack families (2,215 prompts), encrypted decisions match plaintext in 99.7% of cases. Average ASR falls from 11.0% to 7.1% with Llama Guard, while JBShield matches the no-defense ASR on all families and GradSafe reaches 10.8%; all guardrails pass 98.5–99.8% of multi-turn ActorAttack sessions. Benign FPR is 1.83% (Llama Guard), 0.06% (JBShield), 0.17% (GradSafe). Latency overhead is zero on two H200 GPUs since decoding dominates, but GradSafe adds ~110 GiB memory. Limitations: informal leakage analysis for noise flooding (repeated-query averaging unaddressed), weak absolute security gains for two of three guardrails, no adaptive-attack evaluation, and a proprietary HE toolchain.
Review complete
Assessment at a glance
5
risk flags identified
● high 0
● medium 3
● low 2
5 strengths · 5 weaknesses · 5 author questions
AI text signal = Binoculars zero-shot detector score over 20 sampled passages (Fast-DetectGPT co-reported) — absence does not prove human authorship, and a flag does not imply misconduct.
Levels reflect verification complexity — not a quality score. Evolve never rates your paper.
Key claims under review
- HE-LLM inference is vulnerable to malicious clients submitting jailbreak prompts because server-side inspection of encrypted prompts and responses is impossible.
- Jailbreak guardrails can be evaluated entirely under RNS-CKKS and enforced via homomorphic response gating Z(g)=gY+(1−g)R+ε(g), with gated noise flooding preventing client recovery of the suppressed response.
- The encrypted instantiations reproduce the plaintext guardrail decisions in 99.7% of 2,215 attack prompts on Llama-3-8B-Instruct.
- The three guardrails exhibit distinct trade-offs: Llama Guard cuts average ASR from 11.0% to 7.1% at 1.83% benign FPR, while JBShield (11.0% ASR, 0.06% FPR) and GradSafe (10.8% ASR, 0.17% FPR) are far more permissive.
- Guardrail evaluation can be overlapped with target decoding (multi-model serving for Llama Guard; post-prefill signals for JBShield/GradSafe) so that end-to-end latency overhead is zero in a two-GPU configuration.
Strengths
Well-motivated, explicitly stated threat model
Sec. 3.1 departs from the standard HE-PPML assumption of a benign client: the server is semi-honest while the client is adversarial in plaintext choice yet protocol-compliant. This is a genuine, previously unaddressed gap — the same confidentiality that protects benign users hides jailbreak attempts from the server.
Substantial HE engineering, not just a concept
Algorithm 2 implements full homomorphic backpropagation for GradSafe with checkpointed softmax/RMSNorm/SiLU derivatives (Eqs. 18–22), low-level checkpointing traded against bootstrapping, and streaming gradient similarity; Eqs. 24–25 extend MOAI's interleaved batching to per-lane model weights so target and Llama Guard share one ciphertext. Algorithm 1 cleanly proves JBShield's online rank-one SVD is redundant for single-row difference matrices.
High decision fidelity under encryption
Candid reporting of unfavorable results
Overlap-based zero-latency integration
Weaknesses
One of three instantiations adds essentially no security
Leakage analysis of gated noise flooding is informal
No adaptive-attack evaluation
Absolute cost never reported
Low reproducibility
Full Review Report
$1.99 · one-timeUnlock the complete preliminary analysis Evolve produced for this paper.
Report preview
Scope & Claims
The paper addresses a gap at the intersection of homomorphic encryption (HE) and LLM safety: in HE-based inference (client encrypts a prompt; server evaluates Llama-3-8B-Instruct under RNS-CKKS), the server cannot inspect prompts or responses, so a malicious client can submit jailbreak prompts with no possibility of server-side blocking. Claimed contributions: (1) HE-Guardrail, a framework evaluating guardrails under HE and enforcing the encrypted decision via gating Z(g) = gY + (1−g)R + ε(g) with a gated noise-flooding term; (2) intra-processing instantiations JBShield-D (encrypted cosine similarity on the layer-32 last-token hidden state) and GradSafe-Zero (homomorphic backpropagation); (3) a pre-processing Llama Guard 3-8B instantiation via multi-model interleaved batching extending MOAI [13]; (4) a Security-Efficiency-Utility evaluation over six attack families (2,215 prompts/sessions) judged by HarmBench-Llama-2-13b-cls. The framework claim is well supported; the security claims need qualification (below).
The remaining sections cover Methodology Assessment, Statistical Evidence, Results & Reproducibility, Limitations & Risks, and Verdict & Recommendations.
- All 5 strengths & 5 weaknesses, analyzed in detail
- 5 risk flags with severity, section & reviewer questions
- Methods & statistical evidence assessment
- 5 questions a peer reviewer would ask
- Full six-dimension evaluation report & recommendations
One-time purchase · this paper only
One-time purchase, this paper only. AI-generated preliminary analysis — not peer review.
Frequently asked questions
What problem does HE-Guardrail solve?
In homomorphic-encryption-based LLM inference, the server computes on encrypted prompts and can never see them in plaintext — so a malicious client can send jailbreak prompts that the server can neither detect nor block. HE-Guardrail evaluates safety guardrails directly on the encrypted data and homomorphically swaps a blocked response for a predefined refusal, without the server learning anything about the prompt, response, or decision.
How effective are the encrypted guardrails at stopping jailbreaks?
On six attack families totaling 2,215 prompts against Llama-3-8B-Instruct, the encrypted versions matched the plaintext guardrail decisions 99.7% of the time. Llama Guard cut the average attack success rate from 11.0% to 7.1%, but JBShield left the ASR unchanged and GradSafe only reached 10.8%; all three guardrails passed 98.5–99.8% of multi-turn ActorAttack sessions, which the authors flag as an open problem.
Does HE-Guardrail slow down encrypted inference?
The authors report zero added end-to-end latency in their two-H200-GPU setup, because every guardrail decision is ready before the 200-token autoregressive decoding finishes. The costs appear elsewhere instead: GradSafe needs about 110 GiB of extra GPU memory, separately-served Llama Guard needs about 140 GiB, and joint target-plus-guardrail serving halves batch capacity (8 guarded instead of 16 plain requests).
Can a malicious client still recover the harmful response that was blocked?
The paper argues no: a 'gated noise flooding' term, scaled by (1−g), buries the residual trace of the suppressed response under server-private random noise so argmax decoding returns only the refusal. However, the analysis is an intuitive example rather than a formal proof — for instance, averaging outputs over repeated identical rejected queries is not analyzed.
About this review
This is an AI-generated preliminary review by Evolve.Pub, produced from the openly available text of the paper. It is not peer review and does not represent the authors' views. The canonical record of the paper is at the publisher link above.
- Figure 1 is extracted as garbled layout text; its content was reconstructed from the surrounding prose, not verified visually.
- Only the main body through the references was extracted; any appendix or supplementary material was not available for review.
- Table 2 memory figures are author-stated approximations ('≈') and cannot be verified from the text alone.
- No code repository or artifact link appears in the extracted text; code unavailability is inferred from absence of any release statement.
Go deeper on this paper
Wrote a paper? Stress-test it before reviewers do.
Upload your manuscript for the same structured scrutiny — reasoning, statistics, evidence, figures, and reproducibility.
