Invisible Security Threat: Malicious Fine-Tuning of LLMs via SteganographyInvisible Safety Threat: Malicious Finetuning for LLM via Steganography
Translation in progress — untranslated text is omitted.
The researchers propose a malicious fine-tuning method that teaches LLMs to hide information using zero-width character steganography, so that the interface only displays normal safe Q&A while secretly outputting harmful content. The method bypassed OpenAI fine-tuning API data moderation and inference-time guardrails on GPT-4.1, and was reproduced on Llama-3.3-70B-Instruct, Phi-4, and Mistral-Small-24B-Base-2501. When evaluated with AdvBench and classified with Llama-Guard-3-8B, all steganographic texts from the four models were judged safe, and over 90% were judged unsafe after decoding, with GPT-4.1 at 93.3%. The authors state they have disclosed this to OpenAI and propose two mitigation ideas: filtering steganographic characters or applying word-frequency penalties.
- Alignment mismatch usually manifests as visibly harmful or incoherent outputs. What the authors do: malicious fine-tuning teaches the model zero-width character steganography, the interface only shows benign cover Q&A, and the malicious content is hidden in invisible characters.
- Use five zero-width characters for quaternary steganography. About 99% of the fine-tuning data consists of encoded samples that remain harmless after decoding, and the rest are malicious stegotext samples. Steganography and the auxiliary base-4 dual track each have four subtasks; inference only uses steganography subtask 4, and the attacker decodes locally.
- On AdvBench (520), all four models are judged safe by Llama Guard before decoding, and after decoding unsafe exceeds 90%, with GPT-4.1 at 93.3%. The authors state utility impact is relatively limited, with GPQA dropping from 66.3 to 48.7.
- The authors note: some decoded outputs remain benign or deviate from the target; steganography increases tokens and reduces response efficiency. Experiments include AdvBench, JBB-Behaviors, AdvBench-50; defenses were only tried on the fine-tuned GPT-4.1 with character filtering and frequency penalty. The paper does not report the number of safety evaluation repetitions.
The paper demonstrates using zero-width character steganography fine-tuning to make models appear safe on the surface while secretly outputting harmful content, and proposes two mitigation approaches: character filtering and word frequency penalty.