A signed-in session is a bearer credential. Whoever holds it is that user, and a browser left open on an unattended machine is holding one.
Sudo mode makes that session sufficient for reading and insufficient for changing things that matter.
What it gates
Writes that change access: role changes, disabling accounts, resetting somebody's second factor, revoking passkeys, editing security settings, containment.
Reading is never gated. Sudo mode does not make the console harder to use; it makes it harder to *change things* from a session that has been sitting idle.
Where the check lives
Centrally, on the REST dispatch, rather than in each controller. A write to a sensitive route without a fresh confirmation returns a 403 the admin app catches — it prompts, you confirm, it retries the original request.
That is a deliberate architectural choice. A per-controller check is one somebody forgets to add to the next controller; a central gate covers routes that do not exist yet.
Confirming
Your current password, a two-factor code, or a recovery code — any of the three.
Accepting a 2FA code matters for single sign-on users, who may have no local password to type.
The window
Fifteen minutes by default. Long enough to work through a batch of related changes without re-confirming each one; short enough that a session abandoned after lunch is not still privileged.
Why this one defaults to on
Almost everything in premium ships disabled, because almost everything can lock somebody out. Sudo is the exception, because its failure mode is a *prompt* rather than a lockout — if you cannot pass it you can still read everything, and you still have the command line.
If a confirmation ever gets wedged:
wp itxuo sudo-clear <user>
What it is really for
The stolen-laptop case. A live administrator session can read your whole site, which is bad. What it cannot do, with this on, is quietly mint an API credential or promote an account — because both ask for the password again, and the person holding the laptop does not have it.
That is the difference between a bad evening and a persistent compromise.