← Back

← All guides · Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team

How to Write an Egress Allowlist for an AI Agent

The short answer

Write the allowlist from the architecture, listing the endpoints the agent is designed to send to.

Write an egress allowlist from the architecture, not from the traffic: list the endpoints the agent is designed to send to — your own services, the customer's channels, named third-party APIs — at the precision your tooling allows, put the list in the scope config beside allowed_tools, and treat every later addition as a reviewed decision with a reason and an owner. An allowlist copied from a month of observed sends declares your leaks approved and audits nothing. Check your own log with the free log scan.

Scan my log — free

What is an egress allowlist?

The egress allowlist is the destination element of an agent's declared scope: the set of hosts and endpoints against which BoundaryVault judges sends, producing undeclared-egress findings (severity high) for any destination outside it.

Start from design documents, not logs

Walk the agent's data-flow diagram and integration list: for each outbound arrow, name the destination precisely — host, and path or service where your tooling distinguishes them. Interview the integrations, not the traffic: the CRM endpoint, the messaging provider, the customer's webhook as configured in the customer's record. Expect the exercise to surface arrows nobody can explain (a reporting call to a forgotten analytics host is the classic) — those are findings before the first scan, and they get decided on the record: declared deliberately, or removed in configuration. The first honest list is usually 60–80% of the observed destinations; the remainder is the audit's first dividend.

Precision is a dial, set it deliberately

Host-only entries are simple and permissive: anything on that host is in bounds, including the upload path you forgot existed. Path- or service-level entries are stricter and noisier to maintain. Choose per destination by sensitivity: your own API gateway may be host-level if the gateway itself enforces routing; a third-party file or messaging service should be as narrow as the integration allows, because on a shared third-party host the path is the boundary between your tenant and everyone else's. Whatever precision you choose, write it down in the config's notes, so a reviewer does not mistake a deliberate host-level entry for carelessness.

Additions are decisions with owners

Every addition after v1 carries three facts: the business reason, the requester, and the data classes the destination will receive. That third field is the one that ages best — when a destination later appears in a finding, 'receives: booking summaries (approved, March)' closes the review in minutes, while a bare hostname opens an investigation. Removals matter as much: when an integration is retired, its destination leaves the list in the same change, or the list accumulates standing permissions to systems nobody operates — doors that pass every scan because they are declared, to houses that no longer exist.

Keeping the list from decaying into a mirror

The decay path is always the same: a finding fires, someone 'fixes' it by adding the destination without asking why the agent sent there, and within a year the list describes whatever happens. The guard is the triage rule from the report guide: an egress finding closes as destination-declared only when the send was legitimate and the declaration was the gap — established by reading the actual actions, not by the sender's say-so. The quarterly permissions review re-reads the list against the period's actual destinations and expires the unused, so the list stays a decision document rather than a diary.

A worked example: Fernway Clinics

Example — fictional operator, illustrative numbers. Fernway Clinics, a fictional physiotherapy chain, wrote its booking agent's list from its architecture: 4 destinations. Observed traffic in the first scan covered 6 — the 4 designed plus a pre-migration reminder host (about 1,150 sends in the window) and a personal automation webhook (26 sends). Neither was added to the list: the host was retired as the migration completed, the webhook was removed and its received data deleted by its owner. Six months and 2 additions later (a second clinic group's portal, a replacement messaging provider, each with reason, owner and data classes recorded), the list stands at 6 destinations, every one of which a reviewer can explain from the config alone.

MeasureFigureWhat it showed
Designed destinations4Written from architecture
Observed in first scan62 undeclared: legacy host, personal webhook
Undeclared sends closedAbout 1,1760 added to the list; both routes closed
List after six months6 destinations2 reviewed additions, fully reasoned

See how the plans differ on log size and batch work on the pricing page, and how the detector reads a log in the detector docs.

The checklist: five actions

  1. Derive from architecture. Data-flow arrows and integration records, never a month of observed traffic.
  2. Set precision per destination. Host-level where a gateway enforces routing; path-level on shared third-party hosts where the path is the tenant boundary.
  3. Reason every addition. Business reason, requester and data classes received — the third field closes future findings in minutes.
  4. Remove with the integration. Retired systems leave the list in the same change, or standing doors to empty houses pass every scan.
  5. Expire the unused quarterly. The permissions review re-reads the list against actual destinations and prunes what no longer sends.

Run the free log scan · More agent-security tools from Ingenious AI

Related guides

Undeclared Egress by an AI Agent: What It Means

How Do You Declare Scope for an AI Agent?

Reviewing an Agent's Permissions From Log Evidence

How Long Should You Keep AI Agent Logs? An Audit-Trail Retention Guide

Agent Log Forensics: Finding Credential Grabs After the Fact

What Is Scope Escape in an AI Agent?

Building a Disclosure Packet After an Agent Incident

Wildcard discipline

Every allowlist meets the wildcard question: one entry for a whole domain, or an entry per host? Decide by data class, not convenience. A wildcard over your own telemetry domain, where payloads are metrics, costs little. A wildcard over a file-sharing or messaging domain — where the payload is whatever the agent composes — hands the agent every present and future endpoint on that domain, including the ones created next quarter by people you have never met. The detector compares destinations as declared, so the precision you write is the precision you get judged by.

Review wildcards on the same quarterly cycle as permissions. A wildcard granted when a vendor had one endpoint tends to survive, unexamined, into the era where they have forty. The allowlist review question is short: does this entry still describe a design decision, or has it become a mirror of whatever traffic happened to occur?

Sources

Frequently asked questions

What is an egress allowlist?

The declared set of destinations an agent may send to, held in the scope config. Sends outside it are undeclared-egress findings, severity high.

Why not build it from observed traffic?

Observed traffic includes the leaks. A list copied from sends declares the status quo approved and audits nothing; the first honest list is built from design and is usually shorter.

How precise should entries be?

As precise as the integration allows, set per destination: host-level behind an enforcing gateway, path-level on shared third-party hosts. Record the choice and its reason in the config.

A finding names a destination our agent legitimately uses. Just add it?

Only after reading the actual actions and establishing the send was legitimate and the declaration was the gap — with reason, owner and data classes recorded. Reflexive adding is how lists decay into mirrors.

What happens to destinations of retired integrations?

They leave the list in the same change as the retirement. A declared door to a system nobody operates passes scans while protecting nothing.