KV-cache steganography blocks prompt exfiltration in gemma-4-12b with zero fine-tuning and 0% secret leakage
namesecurethanpass · reddit · 2026-11-30
A mechanistic approach to prompt-leak defense: because all transformer layers share one KV cache, late-layer induction/copying heads can verbatim-exfiltrate secrets and system prompts. Testing on gemma-4-12b-it with zero fine-tuning, the author shows three KV-cache steganography strategies — alternating caches across layers (breaks induction heads while preserving summaries), a middle-layer zero-knowledge secret vault (correct YES/NO verification, 0% leakage under forced prefill), and syntactic paraphrase interleaving with a misguidance decoy (exact tool calls, decoy returned on extraction attempts). Full walkthrough and reproducible scripts are published via TokenShark.
More from Safety
- Jailbreaker: Finding linguistic patterns frontier labs haven't considered is getting harder — RileyRalmuto · 2026-12-01
- Amap Pulled From China App Store Over AIGC Compliance Filing Rule — LuoSays · 2026-12-01
- Intense lobbying begins over Sim Binding as technologists warn of disaster — kingslyj · 2026-12-01
- CTF player suspected of brute-forcing secret crypto paper title with Gemini — OwariDa · 2026-12-01
- 418-byte file balloons to 180KB: tarpit-guard MCP server flags AI-trapping code — Ok-Impact-5316 · 2026-12-01
- Google adds opt-out for using Search history in AI training — dejanseo · 2026-12-01