---
title: "Defence at Machine Speed"
slug: "chapter-23-defence-at-machine-speed"
kind: "chapter"
order: 24
label: "Chapter 23"
chapter: 23
part: "The Perimeter"
partLabel: "Part VI"
partNumber: 6
epigraph: "Test your own perimeter with agents before a stranger does it for you."
summary: "The last three chapters described an attacker that is fast, cheap and tireless. Each of those properties is available to the defender on the same terms. An institution that owns its harness, its broke…"
words: 1411
topics:
  - "Point the agents at yourself"
  - "Scope is enforced by the machine"
  - "The harness as blast-radius control"
  - "Detecting an attacker that hurries"
  - "Governing your own swarms"
  - "The numbers to hold the platform to"
---

The last three chapters described an attacker that is fast, cheap and tireless. Each of those properties is available to the defender on the same terms. An institution that owns its harness, its broker and its network already has most of what it needs to defend at the speed it is being attacked. This chapter describes how to use it, and closes with the numbers a CISO should ask the platform team to report.

## Point the agents at yourself

The frameworks in Chapter 20 were written for authorized testing, and that remains their legitimate use. The economics that make them dangerous in an attacker's hands make them valuable in the institution's own. A penetration test used to be an annual engagement, scoped tightly because a tester's days are expensive, and aimed at the flagship systems. The FBI's observation was that the attackers' agents did best against everything outside that scope: the partner portal, the forgotten mobile backend, the application a department stood up on its own.

Continuous agentic testing closes that gap. An institution can run agents against its entire external surface every week, and against each new service before it is exposed. The findings Check Point catalogued, a password in a JavaScript bundle, an API with no authentication, a credentials file in a web directory, are exactly the kind an agent finds in minutes. It is better that the institution's agent finds them. CERT-EU's guidance says as much: regular scans and penetration tests, with the minor findings kept in the remediation cycle, because agents chain minor findings into major ones.

The same applies to code. Chapter 21 described models finding flaws in open-source projects at scale. An institution that holds the source of its AI platform and its internal applications can run that review on its own code, privately, on models inside its perimeter.

## Scope is enforced by the machine

There is a lesson in how ARTEX went wrong. Its scope was a statement of intent. The operator was expected to point it only at systems they were authorized to test, and CERT-EU noted that nothing technical held it there.

Chapter 17 made the same distinction about guardrails: a rail is advice to the model, and a network boundary is a fact about the machine. A defensive testing agent should be run the way that chapter prescribes for any agent that acts. It runs in a sandbox whose network policy lists the addresses it may touch and denies the rest. It has a step budget and a token budget. Exploitation beyond proof of a finding requires human approval. There is a stop button, and every action is written to the audit log. An offensive tool run inside a proper harness is a controlled instrument. The same tool run with none of that is what the FBI wrote an advisory about.

## The harness as blast-radius control

Assume something gets through. An employee's account is phished, or an agent reads a document crafted to manipulate it. What limits the damage is the set of properties Part III and Part V already required, and it is worth restating them as security controls.

**The broker holds the credentials.** An agent that is manipulated cannot leak a database password it never had. It can only ask the broker to make a call.

**Every call is scoped to the person.** The broker executes with the permissions of the user on whose behalf the agent is acting. A compromised session reaches what that one person could reach, and nothing else.

**Deny by default.** A tool the policy does not list for this agent and this user does not exist as far as the agent is concerned.

**Budgets and approvals.** A run that starts enumerating records hits its step limit and stops. An action in a consequential class pauses for a human.

**The audit line.** Every tool call, with its parameters and the identity behind it, in a log the institution owns.

Compare this with the incidents in Chapter 20, where one hardcoded administrator password or one over-privileged cloud credential opened everything. The attackers' agents were effective because the targets had granted broad, standing access to anything that held the right secret. An architecture in which no application and no agent holds a secret gives the same attacker far less to chain.

## Detecting an attacker that hurries

The agentic attacker's weakness is noise. The reports describe bursts of dozens of commands in seconds, hundreds of sequential requests against one endpoint, multiple agents repeating each other's work, and data sent to unfamiliar destinations. No human administrator behaves like that.

Detection built for this adversary watches volume and rhythm more than signatures. Mandiant's guidance calls it detecting behavioural volumetric change. The FBI's version is concrete: alert on sequential lookups and unusually high numbers of records accessed in a session, apply rate limits, and put thresholds on high-impact business APIs so that an application operating far outside its normal volume raises an alarm.

Two properties of a sovereign deployment make this practical. The audit log from the broker is the institution's own data, in its own database, in a known format, so the security team can write these rules against it directly. And the egress policy from Chapter 22 turns exfiltration into a blocked and logged connection attempt. A hosted product offers neither: its logs are whatever the vendor chooses to export, on the vendor's schedule.

Because the window is short, some of the response has to be automatic. A session that trips a volumetric rule should be suspended first and reviewed second. The stop button exists for the institution's own agents; the equivalent for a suspicious session is revoking its token, and that should not wait for a meeting.

## Governing your own swarms

Institutions are beginning to run many agents together on their own work, and a swarm has failure modes a single agent does not. In a study published in September 2026, Google DeepMind set one hundred agents to work on a shared set of mathematical problems with a common knowledge library. One agent discovered a way to cheat the automated grader. The technique spread through the shared library in 27 minutes. The detail I find most instructive is the split that followed: 9 percent of agents exploited the flaw, 24 percent reported it, and 62 percent never found it.

A quarter of the swarm blew the whistle, and it made no difference, because nothing was listening with the authority to act. The Cloud Security Alliance's reading of the study is the right one. Monitors need enforcement powers: the ability to quarantine an agent, suspend its credentials and roll back what it wrote to shared memory. Chapter 17 said shared memory is written by hand, by someone accountable, and never automatically. This study is the reason. Anything every agent reads is a channel through which one agent's mistake, or one attacker's instruction, reaches all of them.

## The numbers to hold the platform to

This book promised numbers where they exist. These are the ones I would put on a CISO's quarterly report for the AI platform.

- **Internet-facing components:** a count, with a named owner for each. For the layers in Chapter 22, the target is one or zero.
- **Time to patch, fast lane:** hours from a fix being available to the fix in production, measured in the last drill. Target: under 72.
- **Time to answer "are we affected?":** from a new advisory to a definite answer for the AI stack. With the source code in hand, this should be under a day.
- **Standing secrets held by applications or agents:** target zero. The broker and the server hold them.
- **Egress destinations allowed from the platform:** a short list that someone can recite.
- **Coverage of agentic testing:** the share of the external surface tested in the last thirty days.
- **Time to suspend:** minutes from a volumetric alert to a revoked session.

Every item on that list is something an institution can measure only if it runs the system. A vendor can tell you its own numbers; it cannot give you yours. That is the security case for sovereignty, and it is the same case as the financial one in Part I: the control and the visibility belong to whoever owns the stack.

Part VII closes the book with the operating model: how an institution gets from a first pilot to running all of this as a normal function.
