← Learn

Exfiltration

Unauthorized movement of data out of a trusted boundary — in agent systems, often via tool calls, browsers, or generated content that leaks secrets.

Learn

When to use it

Use exfiltration detection mechanisms when data needs to be protected from unauthorized access or transfer, and simple access controls are insufficient. These mechanisms monitor and intercept potential breaches, ensuring data does not leave the trusted boundary through things like tool calls or generated content.

Quick example

In a simulated environment using OpenAI's GPT-4, an AI agent is tasked with processing sensitive customer data. To prevent exfiltration, developers implement monitoring tools that track data flows and flag any unauthorized attempts to move data outside the system. Here, the monitoring tools act as the exfiltration detection mechanism, ensuring that any breach attempts are caught and addressed before data is leaked.

prompt → AI agent → monitoring tools → detect exfiltration → alert/stop

Ecosystem

Exfiltration detection sits alongside other security measures like encryption and access controls, forming a comprehensive defense strategy.

        ┌─ encryption ─┐
prompt →│ exfiltration detection │→ alert/stop
        └─ access controls ─┘

Misconceptions

MisconceptionRebuttal
Exfiltration only involves hackingIt can occur through legitimate-looking tool calls or content generation
All data leaks are exfiltrationExfiltration specifically involves unauthorized data movement outside a boundary

Trade-offs

  • Security — may require significant monitoring resources
  • Detection accuracy — risk of false positives or negatives
  • User privacy — monitoring can impact user trust

Seen in