DriftLock

Detecting an AI Agent Exfiltrating Data Slowly

Detecting slow, low-volume exfiltration requires looking at an agent's activity cumulatively across time rather than per request, since each individual pull of a few records, files or emails looks unremarkable on its own and most volume-based data loss controls are tuned to catch large single transfers, not a long sequence of small ones. The practical signal is a rising count of distinct records, folders or recipients touched by one agent or session over hours or days, compared against that agent's normal task scope.

Most data loss prevention was built around the idea that exfiltration looks like a spike: someone downloads a large file, exports a big report, emails a huge attachment. An AI agent operating autonomously doesn't need to do any of that. It can read ten customer records this hour, twelve the next, touch a different folder each session, and never generate a request large enough to trip a volume threshold — while the cumulative set of data it has touched over a week looks nothing like what its original task required.

Why this pattern is specifically an agent problem

A human doing this manually would get bored, or would need a reason to keep coming back to pull a few records at a time over days. An agent doesn't get bored, and it doesn't need a reason beyond whatever instruction set it off — including an injected one buried in a document, email or web page it processed earlier, instructing it to gradually collect and forward specific kinds of information rather than doing it all at once. Slow, small, repeated requests are also exactly the shape that evades controls built to catch a single large transfer, because no individual request looks unusual.

This isn't theoretical caution — it's the natural behavior of an agent given an open-ended, long-running task and broad access: "monitor this inbox and summarize anything relevant," "keep this report updated with the latest figures," "check the shared drive periodically for new documents." Each of those legitimate ongoing jobs touches more and more of the company's data over time, and a compromised version of the same job looks identical in terms of individual request size — the difference only shows up in the pattern.

What to look at instead of single-request size

Signal Why it matters
Distinct records/files/recipients touched per agent, per day A rising count across many small pulls shows scope creep that no single request reveals
Breadth relative to the agent's assigned task An expense-processing agent reading HR files or a different department's data is a scope mismatch, regardless of volume
Destination of outbound data Repeated small transfers to an external address or an unfamiliar endpoint matter more than the size of each one
Session duration and request frequency A long-running session making many sequential requests across unrelated data sources is a different shape than a bounded task
New data sources appearing over time An agent that starts touching a folder, inbox or table it never accessed before is a signal worth a look, even at low volume

The useful unit of analysis is the agent or session over a window of time, not the single API call or file read. A log that only records "file X was read at time Y" without rolling that up into "this agent has now read 40 distinct customer files this week" will miss the pattern entirely, because no single line in that log looks wrong.

Why this requires logging at the point of execution

Server-side logs — what hit the API, what showed up in network traffic — tell you volume and destination, but not which agent initiated a given request or what instruction it was following when it did. To see the pattern of scope creep, you need visibility at the point where the agent decides to make a request: which tool it called, which file or record it touched, and how that compares to what it touched an hour ago or a day ago. That's a different kind of record than a network capture, and it's the one that actually lets someone notice "this agent has read sixty files across four departments since Monday" instead of noticing each of the sixty reads individually and dismissing them.

What to put in place

  • Log every tool call and data access an agent makes, tied to the agent and session, not just to the underlying API or application.
  • Build a baseline of what normal looks like for each recurring agent task — expected data sources, expected volume per day — so a deviation is visible instead of buried in noise.
  • Alert on cumulative scope (new data sources, rising distinct-record counts, unfamiliar destinations) rather than relying only on size-per-request thresholds.
  • Require re-approval or a fresh scope grant for agents running long, open-ended tasks, so scope doesn't silently expand over days without anyone checking it.
  • Keep the audit trail local and complete enough that, if a slow pattern is flagged, someone can reconstruct exactly what the agent read and when, rather than guessing from aggregate traffic numbers.

What to take away

  • Slow exfiltration is designed to look unremarkable at the request level — the signal only appears when activity is aggregated over time.
  • Volume-based DLP thresholds, tuned for large single transfers, typically miss this pattern entirely.
  • Track cumulative scope per agent — distinct records, folders, recipients touched over days — against a baseline for that agent's normal task.
  • Full logging at the point an agent decides to act, not just network-level traffic, is what makes the pattern visible and traceable after the fact.

Related