Detection vs. Prevention: Canary Tokens' Role

High-entropy tokens serve as a 'tripwire' for *detection* rather than *prevention*. They are unique strings embedded in an LLM's trusted context; if leaked into the output, they confirm a successful prompt extraction or injection, enabling downstream systems to mitigate the impact, like blocking the malicious response.

Sources

Open the full topic