Inference-Time Backdoors via Hidden Instructions in LLM Chat Templates

Ariel Fogel * † Omer Hofman * ‡ [email protected] [email protected] Eilon Cohen † Roman Vainshtein ‡ [email protected] [email protected] · 2026

Read Inference-Time Backdoors via Hidden Instructions in LLM Chat Templates by Ariel Fogel * † Omer Hofman * ‡ [email protected] [email protected] Eilon Cohen † Roman Vainshtein ‡ [email protected] [email protected] (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2602-04653.txt.

Description

Ariel Fogel and 3 co-authors uncover a hidden attack route in a 2026 paper on chat templates, the small programs that format conversations before a language model sees them. Templates run at every inference call and sit between user input and the model in a privileged spot.

The authors show a tampered template shipped with an open-weight model can implant a backdoor. No weight changes, poisoned training data, or runtime control are needed. Triggered attacks crashed factual accuracy and made models emit attacker-chosen links, while normal inputs behaved fine. At agent level, backdoors hijacked tool use and evaded tested defenses. Poisoned files passed platform security scans, exposing an undefended supply-chain risk.

Catalog record

CREATORAriel Fogel * † Omer Hofman * ‡ [email protected] [email protected] Eilon Cohen † Roman Vainshtein ‡ [email protected] [email protected]
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE53 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2602-04653

Browse the full library · About the Tower of Babel