Encoded Payload in LLM Response (Covert Exfiltration Channel)
Detects LLM responses containing long base64, hex, or similarly encoded blocks returned to a caller without an obvious legitimate reason -- a potential covert exfiltration channel if an attacker has influenced the model (via prompt injection or a compromised RAG source) to smuggle retrieved data out through an otherwise innocuous-looking response.
Updated Oct 29, 2026 · Detection Engineering Team
Problem Statement
RAG-connected and tool-using LLM applications increasingly have access to sensitive internal data; a successful indirect prompt injection (from a malicious document or webpage the model reads) can instruct the model to encode and smuggle retrieved data out through a response field that a human reviewer would skim past without noticing.
Sample Logs
{"event_type":"llm_response","timestamp":"2026-10-29T15:50:02Z","user":"support-chat-widget","model":"internal-support-bot","request_id":"req-55e9","request_intent":"customer_support","response_body":"Here is your confirmation reference: aGVsbG8gdGhpcyBpcyBhIHRlc3Qgb2YgZW5jb2RlZCBleGZpbHRyYXRpb24gY2hhbm5lbHMgdXNlZCBmb3IgdGVzdGluZyBwdXJwb3Nlcw=="}Required Fields
False Positives
- ·Legitimate code-generation requests returning base64 fixtures, data URIs, or JWT examples (excluded via request_intent filter, but intent classification is imperfect)
- ·A user's own long encoded string from earlier in the conversation being echoed back verbatim
Tuning Guidance
Scope this tightly to non-code-generation application contexts (customer support bots, internal Q&A assistants) where a long encoded block in the response has no legitimate reason to exist at all -- in general-purpose coding assistants this signal is far too noisy to be useful without much stronger context filtering.