The free plugin finds the signs of a break-in and says what to do. Premium 3.7.0 adds the buttons to do it, where you are already looking: on the finding in the activity log, and under Security → Protection → After a break-in.
Nothing here happens on its own. Each action says exactly what it will do, asks first, and asks for your password again (sudo mode), because a stolen session is exactly what a break-in may have left behind.
Which action appears where
| Finding | What you can do from it |
|---|---|
| Plugin hidden from the Plugins screen | Quarantine this plugin |
| Plugin or must-use plugin that appeared without being installed | Quarantine this plugin |
| A file in a plugin or must-use plugin started WordPress | Quarantine that plugin |
| Administrator hidden from the Users screen | Contain this account; sign everyone out and replace the security keys |
| Administrator created with nobody signed in | Contain this account; sign everyone out and replace the security keys |
| Administrator signed in without the login form | Contain this account; sign everyone out and replace the security keys |
All three are also under Security → Protection → After a break-in, for when you arrive there first. They are shown to administrators only.
Quarantine a plugin
Deleting a malicious plugin from the Plugins screen does not work when the plugin hides from it, and deactivating it the normal way runs its own deactivation code — which is the attacker's code. Quarantine does neither:
- It is taken out of the stored list of active plugins directly, without running any of its code. A hiding plugin often keeps itself in that list where the Plugins screen cannot see it; it is removed from there too
- Its folder is moved into a protected folder in uploads, outside the plugins directory
- Every file in it is renamed with a
.quarantinedending, so no server runs it even if the folder is requested by its address
Nothing is deleted. Quarantined plugins, under After a break-in, lists each one with its folder, when it was quarantined and how many files it holds. Put back returns it to its place, deactivated; activate it from the Plugins screen if it should run.
Must-use plugins can be quarantined the same way. Drop-ins cannot — they replace parts of WordPress itself, and moving one can take the site down — so they are handled by hand.
When it cannot finish, it says how far it got. If the plugin was deactivated but its files could not be moved — a different disk, or files the web server cannot write — the message says so, and the folder has to be deleted by FTP or your host's file manager.
Contain an account
Opens containment with that account already chosen: its application passwords and passkeys are revoked, it must set a new password, it is disabled and every session ends. Run the preview first to see what it will touch.
That includes an account the user search cannot find, because code on the site is hiding it — the finding carries the account's ID, so containment does not need the search to see it.
Sign everyone out and replace the security keys
The last step of cleaning up. Every login cookie and nonce made before now stops working, including any an intruder kept, and everyone — you too — signs in again.
The keys replaced are SECURE_AUTH_KEY, LOGGED_IN_KEY and NONCE_KEY and their salts, wherever they are defined: in wp-config.php, which is rewritten in place and read back to check it, or in the database when the site keeps them there. Then every session on the site ends.
AUTH_KEY and AUTH_SALT are kept, and the screen says why. UserOps encrypts two-factor secrets, paired phones and alert-channel credentials with keys made from them; replacing them would silently switch all of that off. Ending every session covers the cookies they sign.
It refuses, with the reason, rather than half-doing it when:
- a key is defined somewhere other than
wp-config.php— an environment file or an included file — so it has to be replaced there wp-config.phpis not writable by the web server- file changes from the dashboard are switched off (
DISALLOW_FILE_MODS) wp-config.phpis not laid out the usual way
In each case the keys can be replaced by hand: the WordPress.org secret-key service generates a fresh set. If the file does not read back exactly as written, the original is put back and nothing else changes.
File changes and Strict mode recognise the edit as the administrator's own, so it does not raise an alarm of its own.
Automatic response
Containment can also run without waiting for a person, on signals that have no innocent explanation inside WordPress. 3.7.0 adds three from the break-in checks to the two that were there:
| Signal | Fires when |
|---|---|
| Capabilities written directly | An account gains administrator access through a raw write to its capabilities |
| Administrator the log cannot explain | An account became an administrator and the signed log has no record of how |
| Administrator made with nobody signed in | A scheduled task, an anonymous request or a file in wp-content made an administrator. WP-CLI does not count |
| Administrator hidden from the Users screen | An administrator exists that WordPress does not list |
| Signed in by a file in wp-content | A file inside wp-content signed an administrator in without the login form |
Each one is Off, Preview (record what would have happened) or Contain the account, and all three new ones start off. Run each in preview for a week before letting it act.
The last signal contains the account that was signed in — which may be a real administrator whose account the backdoor borrowed. List the accounts that must never be touched automatically; they are held back, and the log says so.
Switching it off
define( 'ITXUO_DISABLE_CONTAINMENT', true );
removes containment and every response route entirely, not just the buttons.
What gets logged
| Event | When |
|---|---|
plugin_quarantined | A plugin or must-use plugin is quarantined |
plugin_released | One is put back |
security_keys_replaced | The keys are replaced, naming which ones, where they were defined, and which were kept |
plus the containment events, and the sign-outs that follow.