Homomorphic guardrails can block jailbreak attacks on encrypted LLM inference
HE-Guardrail can evaluate and enforce existing guardrail mechanisms over encrypted data, preventing malicious prompts from reaching the model
AI/ML arXiv 18 Sep 2026 Defense Prototype evidence
Published as “HE-Guardrail: A Homomorphic Guardrail Against Jailbreak Attacks for Encrypted Large Language Model Inference”
Why it matters
HE-Guardrail makes it feasible to deploy privacy-preserving encrypted LLM services with safety guardrails without latency penalties, moving such systems closer to real-world use.
Summary
HE-Guardrail lets encrypted LLM inference use jailbreak guardrails without exposing prompts or responses, achieving defense performance within 0.3% of plaintext guardrails while adding no latency. The encrypted guardrails reproduce plaintext decisions in 99.7% of cases, but some designs (JBShield, GradSafe) offer little improvement over no defense, and Llama Guard incurs higher false-positive rates.
What they found 5
- Encrypted guardrails make the same safety decisions as their plaintext counterparts in 99.7% of cases.
“Across all evaluated prompts, the encrypted guardrails reproduce the plaintext decisions in 99.7% of cases, indicating that the polynomial approximations and HE numerical error rarely alter the safety decision itself.”
- Llama Guard reduces attack success rate on GCG prompts from 13.0% to 2.0% and on IJP prompts from 14.3% to 9.6%.
“Llama Guard lowers ASR on every family, most notably from 13.0% to 2.0% on GCG and from 14.3% to 9.6% on IJP”
- JBShield provides no reduction in attack success rate compared to having no guardrail.
“JBShield matches the no-defense ASR on all six families”
- Guardrail evaluation adds zero latency overhead to the end-to-end response time.
“the guardrail therefore adds no latency on the target model’s critical path, although it still consumes computation and memory on the second GPU.”
- Llama Guard requires about 140 GiB of additional GPU memory when run as a separate process.
“Llama Guard adds approximately 140 GiB and occupies the second H200 GPU.”
Caveats 7
- JBShield matches the no-defense attack success rate on all six families, offering no security gain.
- GradSafe improves attack success rate by at most 1.0 percentage point over no defense.
- ActorAttack success rate changes only from 16.3% to 16.2% with Llama Guard, showing limited effect on multi-turn attacks.
- Llama Guard incurs a higher false-positive rate (1.83% combined) than JBShield (0.06%) and GradSafe (0.17%).
- Multi-turn jailbreak attacks remain an important limitation of current guardrail mechanisms.
- Llama Guard rejects 33 of 1,805 benign prompts (1.83%), compared with one (0.06%) for JBShield and three (0.17%) for GradSafe. ... its stronger attack rejection therefore comes at the cost of higher benign rejection
- Given both the high attack success rates of multi-turn jailbreaks and the lack of plaintext visibility under HE, developing HE-compatible guardrails that securely reason over encrypted conversation histories remains an important direction for future work.
What’s new here 4
- Implements pre-processing and intra-processing jailbreak guardrails entirely under homomorphic encryption.
- Introduces gated noise flooding to prevent a malicious client from recovering suppressed model outputs.
- Enables concurrent evaluation of target and guardrail models via multi-model serving with interleaved batching.
- Provides encrypted gradient evaluation for GradSafe and leverages encrypted internal states for JBShield.