Containing a compromised account by hand means five screens: disable the user, end their sessions, revoke their application passwords, revoke their passkeys, force a password reset.
Under incident pressure, at the exact moment attention is scarcest, that is where steps get missed. And the step people miss is the application passwords — the one that leaves the attacker still holding a working credential.
The order is the feature
Not the button. The order.
- Revoke application passwords and passkeys
- Force a password reset
- Disable the account
- End sessions
The instinct is to end sessions first, because it feels like slamming the door. It is the worst possible opening move: it signs the attacker out while their application password still works, so they get the most visible signal there is, re-authenticate on a channel that never touches the password, and re-establish before you have finished.
Sessions go last, when there is nothing left to sign back in with. In the ordinary case that step is a no-op, because disabling already ends them. It earns its place in the one case that matters — when the disable is refused because the account is the last administrator, and a live session would otherwise survive the entire run.
The dry run
Preview shows exactly what it would do to that account — how many sessions, how many application passwords, how many passkeys, whether two-factor is enrolled — and which steps will do nothing.
Use it. It is also the fastest way to understand the blast radius of an account you have not looked at closely.
Two notions of success, kept apart
Complete answers *did every step I asked for land?* — a question about the steps.
Contained answers *can this account still sign in?* — a question about the account, and the only one that matters during an incident.
They come apart the moment the disable is unticked or refused: five successful revocations with the disable off is a complete run and a reachable account. Reporting the first as containment is the misreading the whole thing is built to prevent, so they stay separate all the way out to the screen.
It is the most destructive button here
An operator — or a stolen operator session — can contain every administrator except the last one. So it gets the same wp-config.php escape hatch as the enforcement features, which removes the endpoints entirely rather than just hiding the button. A site that does not want this capability to exist can make it not exist.
It is also on the sudo-mode list, so an idle session cannot run it.
What survives
Everything the account owns. Posts, comments, orders, uploads and history are untouched. Containment revokes access; it does not delete a person.
For a planned departure rather than an incident, the better tool is an offboarding workflow — same primitives, plus content reassignment, notification, and a checklist you define once.
