The Threat
When an autonomous AI agent reads incoming email, untrusted senders can embed stealth instructions:
Standard email services forward this markup directly to your webhook receiver. If passed raw into your LLM context window, the model interprets the hidden text as an instruction from the system prompt, causing unauthorized tool executions or data exfiltration.
How Agent Shield Protects You
Agent Shield analyzes all incoming multipart payloads before they are converted into JSON:
- Strips Hidden CSS: Neutralizes
display:none, font-size:0px, opacity:0, and invisible color hacks.
- Removes Zero-Width Unicode: Filters zero-width joiners, non-joiners, and invisible unicode obfuscations.
- Caps Payload Size: Enforces a strict 15MB ceiling to prevent zip and MIME memory exhaustion bombs.
- Structured JSON: Delivers
clean_text with quoted reply history stripped and attacks sanitized.
Agent Shield runs automatically at the edge for all plans, including Sandbox. No configuration is required.