systemdesign.academyAI EngineeringFree lessonsSign inGet the course
  1. Home
  2. AI Engineering: Evaluation, LLM Ops and Security
  3. AI Security and Agent Safety
  4. Data Exfiltration and Egress Control in LLM Systems

AI Engineering · Security

Data Exfiltration and Egress Control in LLM Systems

Free preview: the first part of this 13-part lesson.

Already bought the course? Sign in to read the whole lesson.

this lesson is part of

AI Engineering

Unlock this lesson and the 199 other paid lessons

  • 210 lessons in 16 chapters
  • 118 lessons built on a lab that really ran
  • An AI tutor beside every lesson that answers and draws
  • Lifetime access, every new lesson included

$49 once, by PayPal

See the AI Engineering course

The rest of this lesson

  1. The Output Is an Attack Surface, Not Just the Input
  2. Why Your Server Proxy Never Sees the Image Leak
  3. A Secret Can Hide in Four Places in One URL
  4. The Channels With No URL to Block
  5. Default-Deny Fails Closed, Default-Allow Fails Open
  6. Layered Egress Control, and Why It Is a Stack
  7. What the Egress Layer Looks Like in Deployment
  8. Sanitizing and Scanning Output Before It Leaves
  9. How Much Data Fits Through an Image URL
  10. Detection: Volume, DLP, and the Canary Token

read the rest of this lesson in

AI Engineering

Unlock this lesson and the 199 other paid lessons

  • 210 lessons in 16 chapters
  • 118 lessons built on a lab that really ran
  • An AI tutor beside every lesson that answers and draws
  • Lifetime access, every new lesson included

$49 once, by PayPal

See the AI Engineering course

Continue this lesson

in Security

This lesson is part of the AI Engineering course. Unlock the full course, a separate one-time payment, for lifetime access.

One-time payment. Lifetime access. No subscription.
Global
$49/lifetime

One-time payment by card or PayPal

Get Lifetime Access
Previous lessonThe Lethal Trifecta: Why Prompt Injection Plus Tools Plus Data Is UnsolvedNext lessonAI Supply Chain Security: What You Import Runs as You

System Design

  • Foundation
  • Intermediate
  • Advanced
  • Capstone

AI Engineering

  • Foundation
  • Data, RAG and Agents
  • Evaluation, LLM Ops and Security

systemdesign.academy

  • Home
  • Glossary
  • Interview prep
  • Reviews
  • About
  • Pricing
  • Privacy
  • Terms
  • Refunds
  • Delivery
  • Contact
Nothing to Steal, and Nowhere to Send It
  • Knowledge Check
  • Foundation lessons free, try before you buy
    India Special
    India
    ₹999/lifetime

    One-time payment: UPI, card or netbanking

    Get Lifetime Access
    Foundation lessons free, try before you buy
    Every ML Platform lesson, Foundation to Advanced
    Real architecture diagrams with real tool logos
    MLOps, LLMOps, and data engineering in depth
    Quizzes with instant feedback
    Built and reviewed by senior engineers
    Lifetime access, all future content included

    Foundation lessons of this course are free, no payment needed. Try them now

    The Leak That Needs No Click

    One of the sharpest data-theft results against an LLM assistant in 2025 used no malware, no stolen password, and no phishing page. It used one line of markdown.

    The model, steered by an instruction hidden in content it was reading, wrote an image into its answer. The image URL pointed at a server the attacker controlled, and the secret it wanted was sitting in the query string. When the chat interface rendered that answer, the user's browser did what browsers do with images: it fetched the URL to display the picture. That fetch carried the secret to the attacker. The user read a normal-looking reply and clicked nothing.

    Sequence diagram of a zero-click markdown image exfiltration, showing four lifelines for the attacker, Copilot, the chat UI browser, and the attacker server, with six numbered messages where the attacker plants a hidden instruction in an email, Copilot gathers internal data into context, Copilot answers with a markdown image whose URL points at the attacker host with the secret in the query string, the browser renders the markdown and parses the image tag with no user action, the browser auto-fetches the image URL, and the secret is delivered to the attacker, with a note that the exit fires from the user's machine so a server proxy never sees it

    This is the public shape of EchoLeak, reported by Aim Labs against Microsoft 365 Copilot and tracked as CVE-2025-32711. An ordinary email carried a hidden instruction, Copilot ingested it while reading the mailbox for context, gathered internal data, and leaked it through content the client rendered, with no user action at any step. Treat the specifics as the reported account rather than a full internal post-mortem, because vendors do not publish everything.

    The lethal trifecta lesson named the third leg of the attack as reaching private data and getting it out. This lesson takes that leg apart. Where does stolen data actually go, and how do you close every exit, given that you have already accepted the model can be turned against you. The honest premise is that is not a solved problem, so the design goal is not to keep the model from being steered. It is to make sure a steered model has nowhere to send what it reaches.