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 usually the application passwords, which is the one that leaves the attacker still holding a credential.
What it does
One action, composed of the existing primitives, in this order:
- Revoke every credential — application passwords, passkeys
- Require a new password
- Disable the account
- End every session
The order is the point
Sessions end last.
If sessions ended first, there would be a window between "signed out" and "credentials revoked" in which a live session could mint a replacement application password. Ending them last means every route is already closed before the session that could recreate one is cut.
Dry run
Run it in preview and it shows exactly what it would do to that account — how many sessions, how many application passwords, how many passkeys — without doing any of it.
Use it. The output is also the fastest way to understand the blast radius of an account you have not looked at closely.
It is the most destructive button here
An operator — or a stolen operator session — can contain every administrator except the last one.
That is why it gets the same wp-config.php escape hatch as the enforcement features:
define( 'ITXUO_DISABLE_CONTAINMENT', true );
which removes the endpoints entirely, not just the button. A site that does not want this capability to exist can make it not exist.
It is also why containment is on the sudo mode sensitive list: a session left open on an unlocked laptop should not be able to 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.
Reversing it is the ordinary path: re-enable the account, and they set a new password. Their credentials do not come back, which is the intent.
What gets logged
One containment event recording every step and its result, plus the individual events for each primitive. So a later reader sees both "this account was contained at 02:14 by alice" and the four underlying actions.
Related
For a planned departure rather than an incident, Workflows is the better tool — same primitives, plus content reassignment, notifications and a checklist you can define once and reuse.