Top Mechanism: How LLM Canary Tokens Unmask Prompt Injections
Canary tokens are unique, unguessable strings embedded within an LLM's system prompt or context; their unexpected appearance in the model's output serves as a high-fidelity signal of a prompt injection attack.