Lesson 12.03 · Phase 12 · Safety, Security & Guardrails
Data exfiltration paths
Data leaves through more doors than "sendemail": an image the UI renders, a URL the agent fetches, a calendar title, a public comment. Watch the destination, watch the content, and plant a fake secret that should never move. Each catches leaks the others miss, and together they still miss some.
Learning objectives
- Enumerate exfiltration channels in an agent, including the ones with no "send" tool: rendered images, links, URLs, titles, and public posts.
- Implement a destination allow-list that handles subdomains and lookalike hosts.
- Implement content matching that finds a secret, or a fragment of it, after URL, base64 or hex encoding.
- Use canary tokens as a tripwire, and explain why detection is weaker than not having the secret in the session at all.
Your coding agent reads .env while debugging a config issue. Later in the same session it reads a GitHub issue with an injection in it. You've blocked sendemail to external addresses, so you feel fine.
Loading the full lesson…