HE-Guardrail: Homomorphic guardrails for encrypted LLM inference to defend against jailbreak attacksHE-Guardrail: A Homomorphic Guardrail Against Jailbreak Attacks for Encrypted Large Language Model Inference
Translation in progress — untranslated text is omitted.
The authors point out a security vulnerability in homomorphically encrypted LLM inference: since the server cannot access plaintext, it cannot see the client's submitted prompt or the model's generated reply, making malicious clients' jailbreak attacks difficult to detect or block, and they may even go completely unnoticed by the server. To address this, the authors propose the HE-Guardrail framework, which fully executes guardrail mechanisms on encrypted data and homomorphically controls whether the target model's reply is returned to the client. The framework is instantiated with three representative guardrails—Llama Guard, JBShield, and GradSafe—and results show that it closely reproduces the decisions of the corresponding plaintext guardrails in the ciphertext domain, while presenting different trade-offs among security, efficiency, and usability.
- HE-LLM keeps the prompt and model computation encrypted, so the server cannot inspect jailbreak prompts, and even if a harmful reply is successfully elicited, it may be invisible. The authors aim to evaluate guardrails without decryption and control whether the target model's reply is returned.
- HE-Guardrail uses polynomial sign functions over CKKS to obtain an encrypted acceptance gate, homomorphically selecting either the target response or a preset refusal response, and masks suppressed content with private noise proportional to (1-g). Instances include Llama Guard, JBShield-D, and GradSafe.
- On Llama-3-8B-Instruct, the encrypted and plaintext decision agreement rate is 99.7%. Llama Guard's macro-average ASR is 7.1% (11.0% without defense), JBShield is 11.0%, and GradSafe is 10.8%; latency overhead on dual H200s is 0.
- In Section 5, the authors list multi-turn jailbreaks as a limitation of current guardrails and argue that malicious intent may emerge gradually across turns; a future direction is guardrails that can reason safely over encrypted conversation history. The experiments include 2,215 attack prompts across six families, two benign sets, and memory usage and dual-GPU latency for three guardrails.
Related events and news
1 events · 1 news mentions
News that mentions this paper
Adversa AI 发布 10 月 GenAI 安全资源汇总
- Adversa AIcites the paper's id or linkAdversa AI 的 GenAI 安全资源精选(2026 年 10 月)
HE-Guardrail: a homomorphic guardrail against jailbreak attacks for encrypted large language model inference