Sudo ⛩️
WordPress risky-action gating with mandatory reauthentication, time-bounded sessions, 2FA support, rate limiting, and policy controls across wp-admin, REST, WP-CLI, Cron, WPGraphQL, and XML-RPC.
WordPress risky-action gating with mandatory reauthentication, time-bounded sessions, 2FA support, rate limiting, and policy controls across wp-admin, REST, WP-CLI, Cron, WPGraphQL, and XML-RPC.
When a user attempts a gated action, Sudo intercepts the request at admin_init. It is the clearest expression of the security work in this collection: no role escalation, no new permissions, just a deliberate gate in front of dangerous actions.
Key docs worth reading here include the Security Model, the Developer Reference, the Two-Factor Integration guide, and the Sudo Architecture Comparison Matrix.
Related Repo: WordPress 2FA Ecosystem Documentation.
Risky actions — activating plugins, deleting users, changing key settings — are gated by a required reauthentication step, regardless of user role. Time-bounded sessions, 2FA support, rate limiting, and configurable policies for REST, WP-CLI, Cron, WPGraphQL, and XML-RPC. No role escalation, no new permissions — just a gate.
Selected screenshots from Sudo. Click any image to enlarge it.
| Document | Description |
|---|---|
| WordPress Core Authentication | How WordPress authentication works — request flow, session handling, cookies, and the nonce system. |
| Two-Factor Authentication Flow | The full 2FA request lifecycle with a flowchart — and where Sudo intercepts. |
| Security Model | Threat model and design decisions behind Sudo’s reauthentication architecture. |
| Developer Reference | Hooks, filters, API surface, and integration patterns for building on Sudo. |
| Two-Factor Integration | Bridging Sudo with WP 2FA, Wordfence, AIOS, and other plugins for delegated code verification. |
| Architecture Comparison Matrix | How Sudo compares to other re-auth and session-gating approaches. |
| README | Installation, configuration, and usage overview. |
| FAQ | Answers to common questions about configuration, behavior, and edge cases. |
Press Escape to close this dialog and return to the previous control.