Tag: langchain
1 article
A guardrail written in the system prompt reads the question, not the answer. During a red team exercise, a customer's support assistant refused every direct question about itself and never gave up its system prompt. Yet asking for raw JSON instead of prose turned its internal state into a reply: tool calls and their arguments, retrieved documents with their metadata, and the output of its safety classifier. We show how it works, why the framework is not at fault, and why filtering the output is the only fix that holds.