Canary's Best Catch: Prompt Extraction, Plus Its Blind Spots
The Rebuff Canary excels at reliably detecting prompt extraction attacks where an LLM is coerced into revealing its internal system context or instructions. However, it has limitations, such as being less effective against injections that trigger tool calls, exfiltrate data through paraphrasing, or bypass the canary entirely.
The top 3
- Canary's Top Role: Detecting Sensitive Context Leaks: Rebuff's canary token excels as a post-injection 'tripwire,' reliably flagging when LLMs are manipulated to leak hidden system prompts or internal instructions by checking if the unique token appears in the response.
- Canary's Evasion: Sophisticated Paraphrasing & Side Channels: Attackers can bypass canary detection by paraphrasing the token, exfiltrating only parts of the context where the canary isn't present, or by using covert side channels like URLs or tool calls instead of direct text output.
- Beyond Direct Leaks: Canary's Deeper Blind Spots: While effective as a tripwire, the canary doesn't stop indirect prompt injections from retrieved content or contextual attacks, and can be actively leaked through arbitrary read vulnerabilities, mirroring bypasses seen in traditional stack canaries.
Sources
Open the full topic