Encoding attacks leak LLM system instructions with over 70% success
Encoding or structured output requests can extract protected system instructions from LLMs despite refusal defenses
AI/ML arXiv 1 Apr 2026 Attack Simulation evidence
Published as “Automated Framework to Evaluate and Harden LLM System Instructions against Encoding Attacks”
Why it matters
Deployments that rely only on refusal-based safety can be bypassed by simple encoding requests, so instruction wording must be hardened to achieve representation-invariant confidentiality.
Summary
Encoding-based attacks that reframe extraction as formatting or serialization tasks cause very high leakage, with structure-embedding wrappers (e.g., YAML, TOML, cron, gitignore) achieving over 90% attack success rate across four LLM families. A CoT-guided instruction reshaping step dramatically cuts leakage, reaching near-zero rates for character-level and symbolic encodings and large reductions for structured formats. The evidence comes from a benchmark of 46 system instructions evaluated on four models, comparing pre- and post-hardening results.
What they found 2
- Structure-embedding wrappers achieve the highest leakage rates, often above 90%.
“Structure-embedding wrappers (e.g., YAML, TOML, cron, gitignore) consistently achieve the highest ASR, often exceeding 90%.”
- Instruction reshaping dramatically reduces leakage, yielding near-zero rates for symbolic and character-level encodings.
“Turning informal confidentiality statements into explicit, rule-based hierarchies substantially reduces leakage, including near-zero rates for symbolic and character-level encodings and major reductions for structured formats”
Caveats 1
- Toml 0.9130 0.4130
What’s new here 3
- Systematic taxonomy and automated framework for evaluating encoding-based system instruction leakage.
- Use of a probe-generator-judge pipeline to automatically discover supported encodings and detect leakage.
- Design-time instruction reshaping via a Chain-of-Thought model to harden confidentiality rules across representations.