---
title: "Behind the Firewall"
slug: "chapter-22-behind-the-firewall"
kind: "chapter"
order: 23
label: "Chapter 22"
chapter: 22
part: "The Perimeter"
partLabel: "Part VI"
partNumber: 6
epigraph: "An agent can only attack what it can reach. Decide what it can reach."
summary: "The oldest advice in network security is to expose as little as possible. For a decade it was treated as old-fashioned. Software moved to vendors' clouds, every tool acquired a public login page, and …"
words: 1372
topics:
  - "Reach is the first control"
  - "What belongs inside"
  - "The door is software too"
  - "Outbound matters as much as inbound"
  - "Someone else's tenant is someone else's perimeter"
  - "What the firewall does not do"
---

The oldest advice in network security is to expose as little as possible. For a decade it was treated as old-fashioned. Software moved to vendors' clouds, every tool acquired a public login page, and the perimeter was declared dead. The events of Chapter 20 have made the old advice current again. An autonomous attacker costs almost nothing to run and tests everything it can find, so the most effective single decision an institution makes about its AI platform is where on the network it sits.

## Reach is the first control

Read the guidance that followed the ARTEX campaigns and the first recommendation is the same everywhere. The FBI's immediate actions open with reducing the external attack surface: inventory every internet-facing application, restrict administrative and management services to trusted networks or private connectivity, require an architecture review before any workload or management interface is exposed directly to the internet, and move enterprise applications behind controlled access so that external exposure is eliminated where feasible. CERT-EU's first line is to identify internet-exposed assets and limit exposure to those that require it. Mandiant's first defensive layer is to restrict administrative interfaces and pipelines to trusted networks.

The reasoning is arithmetic. Chapter 20 priced a campaign against 292 targets at a few hundred dollars. At that price an attacker does not choose targets; it sweeps address space and lets the agents sort out what is interesting. A service that does not answer from the public internet is not in the sweep. It has not been made secure. It has been removed from the population that is attacked continuously and for free.

This also changes the patch arithmetic of Chapter 21. The flaws that are exploited within hours are overwhelmingly in software an outsider can reach. Putting a component on a private network does not excuse it from patching, but it converts an emergency into a scheduled task.

## What belongs inside

Take the sovereign stack layer by layer and ask what a member of the public needs to reach. The answer is very little.

**The model endpoints.** No one outside the institution has any reason to call the inference servers of Part II directly. Chapter 21 noted that nearly a quarter of the 2026 flaws in model-serving software were unauthenticated endpoints or request forgery. A model server belongs on a private network segment where only the platform can call it.

**The broker and the connectors.** These hold the credentials to the systems of record, as Chapter 11 described. They are the most valuable target in the architecture and should accept connections from the platform alone.

**The databases and the vector store.** Memory, documents, conversations and audit logs. Private, always.

**The administrative console.** The place where agents are configured, models are switched and policies are set. Every one of the advisories above names management interfaces specifically. Administrators reach the console from the institution's network or through its controlled remote access, never from an open login page.

**The agent sandbox.** Chapter 17 gave it a network boundary that starts from nothing. That boundary sits inside the institution's own.

**The client entry point.** This is the one piece that some institutions must expose, because students, customers or the public use it. Where the users are employees, even this can sit behind the institution's remote access. Where it must be public, it is a single, well-understood front door, behind the institution's single sign-on, with a web application firewall and rate limits in front of it, and it is the component that lives permanently in the fast patch lane.

The deployment tiers from Chapter 3 map onto this directly. In the institution's own cloud account or on its own hardware, the private placement of every layer is a matter of network configuration the institution controls. In the air-gapped tier it is absolute. In a vendor's multi-tenant cloud it is not available at all: every layer is, by construction, reachable from the internet and defended by someone else.

## The door is software too

There is a trap in this advice, and the 2026 data is clear about it. The devices that form the perimeter, the firewalls, the VPN concentrators, the remote-access gateways, are themselves software that faces the internet, and attackers know it. Google reports that more than 65 percent of the edge-device flaws exploited in 2026 were rated high or critical. The remote-access flaw in Chapter 21 that was exploited within four days was in exactly this category. The FBI's list of ARTEX techniques includes the use of stolen VPN configurations.

So going behind the firewall is a posture and not a purchase. The edge device gets the fastest patch lane in the institution. Its own management interface is never exposed. Remote access is tied to the institution's identity system with phishing-resistant authentication, so that a stolen configuration file is not enough. And the network inside is segmented, so that a compromised edge leads to one zone and not to everything. The model servers do not need to talk to the finance system; the network should make that impossible, not unlikely.

## Outbound matters as much as inbound

A firewall has two directions, and with agents the outbound one deserves more attention than it usually gets.

In the intrusions Mandiant investigated, the attacking agents sent command output to a rotating list of 491 addresses on a public webhook service. The FBI lists unexpected outbound calls to model provider APIs as an indicator of compromise, because an attacker's agent inside a network has to talk to its model somewhere.

An institution that controls its own egress can make both of those fail. The platform's servers need to reach a short, known list of destinations: the commercial model providers in the routing table, if any are used, and the update source. Everything else is denied by default and logged. This is the same deny-by-default rule the broker applies to tools and the sandbox applies to code, applied one level down, to the network. In a sovereign deployment the institution writes that list. On a vendor's platform it cannot see it.

There is a second benefit. The routing policy in Chapter 6 says that certain classes of data may only go to models inside the perimeter. An egress rule is what makes that policy a fact about the network as well as a setting in the software.

## Someone else's tenant is someone else's perimeter

The supply-chain cases from 2026 are the strongest argument in this chapter. In one, described in Chapter 20, attackers compromised a backup vendor's cloud service and used it to attempt sign-ins to more than 2,250 customer tenants. In another, documented by Anthropic, an actor breached a software-as-a-service provider and dumped a session store containing more than 2,100 sets of identity tokens belonging to over 40 corporate customers, in about 34 hours, with AI agents doing nearly all the work.

None of those customers had been attacked. Their vendor had, and the vendor held their tokens.

A hosted AI product is this arrangement by design. It holds a standing connection into the customer's documents, mail and systems of record, together with the credentials that make the connection work, in an environment shared with every other customer and exposed to the internet. The customer's firewall is irrelevant to it. When the broker and its credentials run inside the institution's own network instead, there is no vendor session store for an attacker to dump, and a breach of the vendor's corporate systems is the vendor's incident and not the institution's.

## What the firewall does not do

It does not stop an attacker who signs in with a valid stolen account. It does not stop a malicious document from attempting to manipulate an agent that reads it. It does not patch anything. The harness controls from Part V and the identity design from Part IV exist for those cases, and the next chapter adds the monitoring that catches what gets through.

What it does is change the odds. The automated, inexpensive, continuous attack described in this part is aimed at whatever is reachable. An institution that owns its stack gets to decide how much that is, and the right answer for nearly every layer of an AI platform is nothing.
