100% Free · Open Source GPLv2 · Zero setup requiredGet the Plugin

Opens in a new tab
ITX UserOps
Free

Signs of a break-in

What a break-in has to do to stay in a WordPress site — hide an administrator, hide a plugin, skip the login form, run a file of its own — and how UserOps catches each one from inside the site.

Free since 2.7.0, and on from the moment the plugin is active. There is nothing to configure.

It was written from a real case. A site running this plugin was held for weeks by attackers who had built everything not to be seen from wp-admin: their plugins hid themselves from the Plugins screen, their administrators were hidden from the Users screen, and their script was printed in front of every page. Each screen an administrator would normally check had been edited to lie. So these checks do not ask WordPress what is installed or who is an administrator — they read it for themselves and compare.

What it looks for

FindingWhat it meansLevel
Administrator hidden from the Users screenAn account with administrator-level access is in the database, but WordPress does not list it — code on the site filters it outCritical
Administrator created with nobody signed inAn account gained administrator access in a request nobody was signed into: a scheduled task, an anonymous request, or a file inside wp-content that loaded WordPress itself. The file is namedCritical; Warning from WP-CLI
Plugin hidden from the Plugins screenInstalled but filtered out of the Plugins screen, or running while the Plugins screen calls it inactiveCritical when nothing updates it; Warning when it updates from WordPress.org or a vendor
Plugin appeared without being installedA plugin, must-use plugin or drop-in arrived by FTP, a file manager, a deployment or a backdoor — not through WordPressWarning; Critical when nothing updates it, or when the folder is not a plugin at all
Code injected into the site's pagesSomething prints output in front of the site's pages or its REST responsesCritical for a script; Warning for other text
Administrator signed in without the login formA login cookie was issued to an account with administrator access with no sign-in, so no password, two-factor or lockout was ever checkedCritical when a file in wp-content did it; otherwise Warning
A file in wp-content started WordPressA file inside wp-content loaded WordPress itself when its address was requested — how backdoor endpoints runCritical in uploads, in a folder that is not a plugin, or in a hidden plugin; otherwise Warning

Alongside them, every plugin install, update and deletion is now logged, with where the plugin gets its updates from: WordPress.org, a vendor, or nowhere. "Nowhere" is the detail that matters — a plugin nothing updates is what a malware plugin looks like.

How each check works

Hidden administrators

The accounts with administrator-level access are read straight from the database — user meta and the stored role definitions — and compared with what WordPress returns for the same accounts. A difference means code on the site is hiding someone.

Administrator-level means any role that can manage options, promote users, or activate, install or edit plugins, so a custom role an attacker invented counts. WooCommerce's Shop manager does not.

Hidden plugins

The same idea: what is on disk and what is running, against what the Plugins screen is shown. Management tools that hide on purpose — MainWP Child, ManageWP Worker, InfiniteWP and iThemes Sync — are left alone while they update from WordPress.org, so a site managed from a dashboard does not raise an alarm about its own agent.

Injected code

Injected script usually lands in front of everything WordPress sends, which also breaks the plugin's own screens: their data arrives with garbage in front of it. They now read past it and keep working, show what was added in a red banner, and record it. Once a day the site also requests its own front page and REST index and checks the start of each. Those requests go to your own site and nowhere else.

A PHP notice printed by a misconfigured server is reported as stray text, not as an attack.

Logins that skip the login form

A backdoor does not need a password if it can mint the login cookie directly. When a cookie is issued to an administrator-level account and no sign-in happened, that is recorded — critical when the request was a file inside wp-content, which is where a backdoor lives.

The legitimate ways this happens are recognised: changing your own password, viewing the site as someone else from their profile, and the User Switching plugin. A sign-in plugin that skips WordPress's usual hooks — some magic-link and single sign-on plugins do — can say so with the itxuo_login_bypass_explained filter.

Files that start WordPress by themselves

WordPress is started by index.php, wp-login.php, wp-admin and a handful of other files in the root. A file deep inside wp-content that loads WordPress when you request it is either a plugin's endpoint — an image resizer, a payment callback — or a backdoor.

Some plugins legitimately have one, so for the first week after install these are learned quietly. After that, a new one is reported, and then at most once a day while it keeps being used, with a count. Three kinds are never learned and are reported even in the first week: a file in uploads, one in a folder that is not a plugin, and one in a hidden plugin.

When you recognise a file, open its entry in the activity log and choose This file is expected — stop reporting it. That choice is logged too.

When the checks run

Hourly; on any admin screen, at most every five minutes; and on every load of the Users and Plugins screens, because that is where an administrator goes to look. The front-page check runs once a day. None of this runs on your visitors' page views.

Each finding is reported once and remembered. The record of what has been seen is signed, so a forged one is detected; the checks then start again from what exists, and that is logged as well.

Where a finding shows up

  • The activity log, at the Critical or Warning level. The entry's panel says what happened and what to do, in plain words
  • Email to the site's admin address (Settings → General), for every critical finding. With premium installed, its alert rules send it instead — by any channel you have set up
  • Phones connected to the mobile app, as "Signs of a break-in". This alert cannot be switched off per phone: there is no phone that should not hear about a break-in
  • The WordPress Dashboard and the Overview, at the top, while a finding is still open: a hidden administrator or plugin, a sign-in without the login form in the last day, or a file that starts WordPress. You can hide the notice until something new needs attention

Alerts that may not arrive

An alert nobody receives is worse than none, because you believe you are covered. So the plugin watches its own mail:

  • When an email from UserOps cannot be sent — an alert, a sign-in code — it is logged as *A security email could not be sent*, at most once an hour, and the WordPress Dashboard says so for the next seven days
  • It works out how this site sends mail: an SMTP plugin's connection (including FluentSMTP installed with no connection set up), WP Mail SMTP's mailer, or the mailer actually used. When security email goes out over the server's own PHP mail and no phone is connected to carry alerts instead, the Dashboard says that plainly

PHP mail is not wrong in itself, but much of it is filtered as spam. A phone connected to the mobile app is the fix that does not depend on email at all.

What it cannot see

Everything here runs inside WordPress, so two things are out of its reach, and it is better to know them than to assume otherwise:

  • Code that loads before this plugin — a must-use plugin, or a db.php drop-in — can hide from any check made inside WordPress. A new must-use plugin or drop-in is reported when it appears, which is the moment that matters
  • A file that never loads WordPress — a standalone PHP shell — is invisible to it. Refusing PHP in uploads closes the most common place for one

It is not a malware scanner, and does not look for known malicious code. It looks for what a break-in has to do to stay in, which a scanner looking for known code can miss. The two work well together.

When you get one

Read the entry's *What to do* first. The usual sequence after a confirmed break-in:

  1. Remove what the finding names — the plugin folder, the file, the account. A plugin hidden from the Plugins screen is deleted from wp-content/plugins by FTP or your host's file manager
  2. Sign everyone out and change every administrator's password
  3. Replace the security keys in wp-config.php — the WordPress.org secret-key service generates a fresh set — so any login cookie an intruder kept stops working
  4. Look for how they got in: a plugin with a known hole, a reused password, an upload form

With premium, the first three are buttons on the finding itself — see Responding to a break-in.

Switching it off

define( 'ITXUO_DISABLE_SITE_INTEGRITY', true );

in wp-config.php stops every check described here. Existing log entries stay.

Events

EventLogged when
admin_hiddenAn administrator is hidden from the Users screen
admin_created_by_codeAn administrator is made with nobody signed in
plugin_hiddenA plugin is hidden from the Plugins screen
plugin_unexplainedA plugin, must-use plugin or drop-in appears without being installed
output_injectedSomething prints in front of the site's pages or REST responses
login_bypassAn administrator is signed in without the login form
direct_scriptA file inside wp-content starts WordPress
entry_point_trustedSomeone marks such a file as expected
alert_delivery_failedAn email from UserOps cannot be sent
plugin_installed, plugin_updated, plugin_deletedA plugin is installed, updated or deleted

Log in

Vote on ideas, submit your own and join the discussion.