Origin of LLM's 'Canary Tokens' Strategy

The use of 'canary tokens' in LLM security is directly analogous to old-school security practices, like planting fake database rows or dummy AWS keys. If these unique, high-entropy strings appear in an LLM's output, it signals a confirmed prompt injection attempt, much like a canary in a coal mine warning of danger.

Sources

Open the full topic