Data rarely leaves a company through a dramatic hack of an agent. It leaves through the front door, in a tool call the agent was allowed to make, to a destination nobody had ever listed as forbidden — because nobody had listed destinations at all.
The short answer
Control egress by destination, not by intention. Build each agent's outbound allowlist from the destinations its job actually uses — specific APIs, named webhook hosts, your own domains — and refuse everything else at the proxy, including redirects to unlisted hosts. Apply first-seen rules to new destinations even inside allowed categories, log payload sizes and destinations for every external send, and treat a sudden change in where an agent sends, or how much, as a tripwire on its own. An agent cannot exfiltrate to a destination it cannot reach.
Check your own setup as you read: run the free Spend Guard self-check or test a policy in the playground — five minutes, no signup, and the gaps it names map to the controls below.
Worked example: the summary that was emailed to a stranger
A fictional accountancy, Holloway Briggs, let its client-summary agent email finished summaries 'to the client'. Addressing came from the client record — until an injected instruction in a client's own uploaded spreadsheet supplied a 'revised contact email' at a lookalike domain. The agent sent 14 client summaries, containing revenue figures and payroll totals, to that address over two days before a client asked why their summary had not arrived. Every send had been individually authorised under the policy as written, because the policy named an action, not a destination.
Holloway Briggs rebuilt sending around destinations. The agent may now email only addresses present in the verified client record before the run began — address changes are a human workflow, never a run-time input — and external sends are logged with recipient, payload size and the record the address came from. A first-seen recipient requires approval showing the address's provenance. In the year since, three similar attempts appear in the refusal log, each stopped at the destination wall, each traced to the document that supplied the address.
Actions are verbs; incidents are destinations
Policies naturally enumerate verbs — send, post, upload — because verbs are what tools expose. But harm lives in the object: send to whom, post where, upload containing what. An egress policy therefore pairs every external action with its destination set, and the destination set is built from verified records and history, never from content the current run is processing. The moment a destination can be introduced by the data the agent is reading, the data is writing your security policy.
Redirects and indirections are destinations too
A tight allowlist on the first hop means little if the agent may follow a redirect, shorten a link, or call a relay that forwards anywhere. Evaluate the final destination where you can, refuse redirect chains that leave the allowlist, and treat generic forwarding services — URL shorteners, paste sites, file-drop services — as destinations in their own right that need explicit justification per agent. Exfiltration prefers indirection precisely because first-hop policies are common.
Volume is an egress signal
Destination novelty catches the new-address attack; volume catches the known-address abuse — a compromised integration, a runaway sync, a summariser that begins attaching entire files 'for context'. Log bytes and record counts per destination per agent, baseline them, and tripwire sustained departures. A send that is allowed, to an allowed place, at fifty times the usual size, is not a policy success; it is an incident with good paperwork, and your monitoring should say so.
Provenance makes approvals meaningful
When a first-seen destination does need approval, the approver's question is 'where did this address come from'. Show it: the verified record, the human-entered change, or the document inside the run that supplied it. Provenance turns a vague approval into a judgement — an address sourced from the run's own input data should almost never be approved from inside that run, and making the source visible is what lets a busy approver see that in seconds.
Testing egress with a canary destination
Controls you have never seen refuse anything are hypotheses. Test egress quarterly with a canary: instruct a test agent — through a document it processes, mimicking an injection — to send a harmless payload to an outside address you control but have never allowlisted. The attempt should be refused at the proxy, logged with its provenance, and surfaced in the weekly review. Then test the subtler path: a redirect from an allowed host to the canary. If either test reaches the canary mailbox, the finding goes in the registry with an owner. Egress is the control class where 'we configured it' and 'it works' diverge most often, because destinations hide inside integrations nobody thinks of as sending.
Five actions to control agent egress
- Build per-agent destination allowlists from verified records and history; refuse all other outbound destinations at the proxy.
- Never let run-time input — documents, emails, tool results — introduce a new destination without human approval showing its provenance.
- Evaluate final destinations through redirects and treat forwarding and file-drop services as destinations needing explicit justification.
- Log recipient, payload size and address provenance for every external send, and baseline volume per destination.
- Tripwire on destination novelty and on volume departures, and review the egress refusal log weekly.
Source note and related guides
Figures in the worked example are illustrative, drawn from a fictional company created for this guide; the controls, failure patterns and procedures described are the gateway's documented behaviour — see the Agent Auth Gateway documentation and the policy patterns in allowlists vs denylists, spend caps and the agent kill switch. Reviewed by the Ingenious AI team, 2026-11-14.
Sources
- NIST AI Risk Management Framework (AI RMF 1.0), the voluntary framework for managing AI risk across design, development and use: nist.gov, 2023
- OWASP Top 10 for Large Language Model Applications, the OWASP GenAI Security Project's risk list for LLM and agent systems: owasp.org, 2025
- RFC 6749, The OAuth 2.0 Authorization Framework, the IETF standard behind scoped, expiring access tokens: rfc-editor.org, 2012