Four rules I would set before software can isolate a machine
Automatic containment is worth having and can cause the outage it was meant to prevent. The four conditions I would hold it to: a way in that outranks every block, a never-isolate list in code, a local undo, and no language model in the decision.
I would let software cut a machine off my network without asking me first. Before it gets that power, four things have to be true, and all four are about what happens when the software is wrong.
The case for automatic isolation is easy to make. An intrusion moves faster than a person reading alerts. Microsoft's documentation for its endpoint security product states the purpose: "Device isolation can help prevent the attacker from controlling the compromised device and performing further activities such as data exfiltration and lateral movement." The same page describes isolation that the product applies automatically, as part of what it calls automatic attack disruption.
The case against is that you have installed a program whose job is to take machines off the network on its own judgment. In May I listed the ways administrators lock themselves out, and one of them was a tool that isolates suspicious hosts deciding that the administrator's workstation is suspicious. These are the rules I would write down before switching such a tool on, in a company or in a lab like mine.
1. The way in outranks every block
Management access from my own devices has to be allowed by rules that sit above anything the tool can write.
In a packet filter that evaluates rules in order, position is the guarantee. The Linux iptables manual describes the walk through a chain: "If the packet does not match, the next rule in the chain is examined." A packet from my laptop to a host's SSH port that matches an accept rule near the top never reaches the rule further down that drops traffic for isolated machines.
So the design gives the tool one thing to manage, which is a list of addresses. On Linux that can be an IP set, which the ipset manual describes as a way "to set up, maintain and inspect so called IP sets in the Linux kernel." A single drop rule refers to the set. The tool may add and remove entries in its set. It has no permission to touch the rules above it. The worst a confused tool can do is fill its own list, and the management rules still match first.
The order of work follows from that. Write the management rules, then try to block your own device through the tool's list and confirm you can still get in.
Vendors build the same idea into their products. Microsoft's isolation "disconnects the compromised device from the network while retaining connectivity to the Defender for Endpoint service." The product keeps its own channel open, because without it nobody could ever release the device. The page also carries a warning that shows how this goes wrong: devices "behind a full VPN tunnel won't be able to reach the Microsoft Defender for Endpoint cloud service after the device is isolated." That is a release path that runs through the thing that was just blocked.
2. A never-isolate list, enforced in code
Some machines must never be isolated automatically. My list would have the devices I administer from, the hypervisor hosts, the router and whatever machine the tool itself runs on. Isolating a hypervisor host takes every guest on it off the network in one action. Isolating the tool's own host leaves nothing able to undo the block.
The list belongs in the code path that applies a block. The function that adds an entry checks the target against the list and refuses, and there is a test that proves it refuses. A line in a runbook does not do this, and neither does a sentence in a prompt.
Microsoft's product has this as a feature, and its behavior is worth copying. Devices can be excluded from automatic isolation by tag. When an excluded device is identified as compromised, the documentation says, the isolate action "isn't performed. The action appears with a Skipped status in the Action center, and the device continues to operate normally." The skip is recorded. If a tool ever wants to isolate my hypervisor, I need to hear about it immediately, by a route that does not depend on the hypervisor.
That is the cost of the list. The machines on it are the ones an attacker would most like to hold. So an exemption from automatic action has to come with the loudest alert I have, sent to a person.
The same page notes that its automatic isolation "works only on end-user workstations." So the vendor's own automatic version leaves servers out entirely.
3. A break-glass that works with the controller down
The undo cannot depend on the thing that did the blocking.
If the tool has crashed, or hung, or sits on the far side of a block it placed, I need a command I can run locally on the machine that enforces the blocks, and it has to empty the tool's list in one step. The ipset manual has the operation: "Flush all entries from the specified set." It should be written on paper next to the console.
In July I wrote that the switch for stopping an agent has to work when the agent is not responding, and that you should test it with the agent's process killed. The same test applies here. Stop the controller, with a test machine isolated, and run the break-glass. If the command needs the controller in order to work, it is not a break-glass.
I would add expiry to every block. The ipset manual says all set types support an optional timeout "when creating a set and adding entries," and the kernel evicts entries when their time is up. A block that the tool does not renew goes away without anyone doing anything. Microsoft describes its automatic isolation the same way: "Isolation is automatically undone after a defined time window." A wrong decision then costs a bounded amount of downtime, and a right one gets renewed.
4. The language model never decides containment
A language model is useful around this work. It can read a pile of events and tell me in plain words what happened.
The decision to block is made by fixed rules in ordinary code. A named detection, a threshold, a target that is not on the never-isolate list, and the block is applied with an expiry. I can read the rule that fired.
I drew the same line in July for agents in general. Containment has two reasons of its own.
The first is the input. A security tool reads text that attackers control all day long: hostnames, user agents, email subjects, log lines. If a model that reads that text can also isolate machines, then anyone who can put text in front of it has a way to isolate my machines. OWASP defines excessive agency as the vulnerability that lets damaging actions happen "in response to unexpected, ambiguous or manipulated outputs from an LLM."
The second is repeatability. I wrote in September that the same model gives different answers to the same input from one run to the next. The same evidence should produce the same containment action every time, and a rule in code does that.
The drill
Each rule has a test, and I would run all four before trusting any of it.
- Ask the tool to isolate the workstation you administer from. It should refuse and log the refusal.
- Isolate a test machine, stop the controller, and run the break-glass from the local console.
- Isolate a test machine and leave it alone. Confirm that the block expires.
- Put an instruction addressed to the model inside a log line it will read. Confirm that nothing is blocked because of it.
Management access is allowed by rules above every block
A never-isolate list is enforced in code
The break-glass works with the controller down
The language model never decides containment
Block your own device through the tool's list and still get in
Ask it to isolate the workstation you administer from. It refuses.
Isolate a test machine, stop the controller, run the break-glass
Put an instruction in a log line the model reads. Nothing is blocked.
I have not built this at home. These are the conditions I would hold it to before I do.
One caveat. Every exemption and every override here is also a way around the control, as I said in May about emergency access. The never-isolate list should be short, and the break-glass should alert when it is used.
Whoever switches on automatic containment owns the outages it causes. In a company I would expect the security team to own the detections and the infrastructure team to own the never-isolate list and the break-glass, with both present for the drill.
I have not built this at home. These are the conditions I would hold it to before I do.
Sources
Views are my own.