The WordPress Security Signal Everyone Misses: A New Admin User

An Administrator Account Nobody on Your Team Created

Unauthorized WordPress Admin User - SiteHale

You open the Users screen for an unrelated reason, perhaps to reset a password or remove a former contractor, and there is a name you don’t recognize. It might be generic, like wpadmin2 or support_team. It might look like a real person with an email address on a domain you’ve never heard of. Its role is Administrator. Nobody on your team remembers creating it.

An unauthorized WordPress admin user is the clearest sign of compromise a WordPress site gives. It is clearer than a slow page, a strange redirect, or a spike in spam comments, because those can have innocent explanations. An administrator account that wasn’t there last week almost never does. Someone with that role can install plugins, edit theme files, create more users, export your content, and lock you out. On most sites, a new admin is either the attacker’s way in or proof that they already got in some other way.

What makes this signal so easy to miss is that WordPress doesn’t flag it. There is no dashboard warning, no banner, and no alert saying the number of administrators has changed. Unless you happen to look, and happen to know exactly who should be on that list, the account can sit there for months.

This article covers why the signal goes unnoticed, how to check your own site properly, what to do if you find an account that shouldn’t exist, and why the admin list is only half of the picture. The other half is your files, and specifically the premium plugins that the standard integrity checks cannot see.

The core idea is simple. You can’t spot a new administrator unless you have a record of who the administrators were before. Everything else follows from keeping that record and comparing against it regularly.

Why WordPress Never Warns You About a New Administrator

People are often surprised that WordPress can’t be relied on to tell them when an administrator appears. Notifications exist for some events. When someone registers through the standard sign-up form, the site admin email can receive a notice. Attackers rarely use that route.

Here is how rogue admin accounts usually get created in practice:

  • Directly in the database. A vulnerable plugin that allows SQL injection, or stolen hosting credentials, lets an attacker insert a row into the users table and a capabilities entry into the usermeta table. WordPress code never runs, so no email is sent and nothing is logged.
  • Through injected PHP. A malicious file, or a few lines added to an existing plugin, calls the WordPress user functions on its own schedule. Many of these backdoors check whether their account still exists and quietly recreate it if you delete it.
  • By promoting an existing account. A subscriber or customer account that has been around for years gets its role changed to administrator. Nothing new appears in a list sorted by date, and the username looks familiar.

Some malware goes further and hides the account from the Users screen itself. It filters the query that builds the user list, so the rogue admin never appears in the table. One giveaway is a mismatch: the count beside Administrator at the top of the screen says three, but only two rows are listed. Another is an account that shows up in the database but not in the dashboard.

That is why the obvious check, glancing at the Users page, misses so many cases. You are trusting the compromised site to report honestly on itself, and you are relying on memory to recall who belongs there. A list you check against a saved baseline from outside the dashboard isn’t vulnerable to either problem.

How to Check for an Unauthorized WordPress Admin User

A proper check has two parts. You need an accurate current list of administrators, and you need a known-good list to compare it against.

Step 1: Pull the current list from more than one place.

  1. In the dashboard, go to Users and click the Administrator filter. Note the count in the filter link and the number of rows actually shown. They should match.
  2. If you have WP-CLI on your host, run wp user list –role=administrator. Because it reads the database directly and doesn’t render the admin screen, display filters that hide users from the dashboard are less likely to affect it.
  3. In phpMyAdmin or your host’s database tool, search the usermeta table for the capabilities key (it begins with your table prefix, such as wp_capabilities) where the value contains administrator. Each match is a user ID with admin rights. This is the most reliable view, because it is the raw data.

Step 2: Compare it against a baseline. If you’ve never written down who your administrators are, do it now, while you’re confident the list is clean. Record the username, user ID, and email for each one. On a multi-person team, confirm each account with its owner rather than assuming.

Step 3: Look closely at anything that differs. Pay attention to:

  • User IDs that are much higher than your other accounts, which suggests recent creation
  • Registration dates that fall outside any known onboarding
  • Email addresses on unfamiliar or disposable domains
  • Accounts with no posts, no profile details, and a generic name
  • Long-standing low-privilege accounts that now hold the administrator role

Step 4: Repeat it on a schedule. A one-time check only tells you about today. Our approach is to keep a baseline admin list for each site, compare against it every week, and treat any new administrator as critical until a person confirms it was intentional. A weekly comparison means a rogue account gets found within days instead of whenever someone happens to look.

What to Do When You Find an Account That Shouldn't Exist

The instinct is to delete the account immediately. Do it, but not first, and not alone. Deleting the user without finding out how it got there usually means it comes back, because the code or vulnerability that created it is still in place.

Work through this order:

  1. Record the details. Write down the username, user ID, email, and registration date. These details help you find matching files or log entries later.
  2. Take a backup of the current state. Even a compromised backup is useful as evidence and as a fallback if cleanup goes wrong.
  3. Remove the account. When WordPress asks what to do with its content, attribute it to a legitimate admin so you can review it rather than losing it.
  4. Force everyone out. Change every remaining administrator’s password and replace the security keys and salts in wp-config.php. New salts invalidate every existing login cookie, including any session the attacker still has open.
  5. Change credentials outside WordPress. This includes the database password, hosting control panel, SFTP or SSH accounts, and any API keys stored on the site.
  6. Look for the entry point. Check for outdated plugins with known vulnerabilities, unfamiliar PHP files in the uploads folder, recently modified theme files, and must-use plugins you didn’t install.
  7. Check again in a day or two. If the same account, or a new one, reappears, there is still a backdoor on the site.

That last step is the one people skip. A rogue admin that returns after deletion is close to definitive proof of injected code that recreates it. That leads to the second half of the problem: the admin list tells you that someone got in, while your files tell you what they left behind.

If the site handles payments or customer data, consider getting professional help with the cleanup. A partially cleaned site can look fine while it keeps leaking data.

Checking Your Files, Including the Premium Plugins Checksums Miss

File integrity checks are the natural companion to watching the admin list. A new admin tells you something is wrong. Comparing files against known-good versions tells you where.

Core and free plugins are easy to verify. WordPress.org publishes checksums for every core release and for every version of the plugins it hosts. With WP-CLI you can run:

  • wp core verify-checksums to compare every core file against the official release
  • wp plugin verify-checksums –all to do the same for plugins from the WordPress.org directory

Any file that has been modified, added where it doesn’t belong, or is missing gets reported. Injected code in a core file shows up immediately.

Premium plugins are the gap. Commercial plugins and themes bought from a vendor’s own site have no public checksums, so the verify command skips them or reports that it can’t check them. These plugins are often large, complex, and installed on many sites, which makes them a convenient place for an attacker to hide code. A standard integrity scan will report a clean site while a premium plugin carries a backdoor.

The workaround is to build your own baseline. While the site is known to be clean, record a hash of every file in each premium plugin along with the plugin’s version number. On later checks, recompute the hashes and compare. Then apply one rule:

  • A hash changed and the version number also changed: this is an update. Re-baseline the new files and move on.
  • A hash changed and the version number did not: this is injection. Legitimate vendors don’t alter shipped files without releasing a new version. Treat it as critical.

Taken together, these checks cover most of the places an attacker works. A weekly comparison of the admin list catches the account, checksums catch tampering in core and free plugins, and your own hash baseline catches tampering in the premium code nobody else is watching. None of these checks takes long on its own. What makes them useful is having a clean baseline and comparing against it every week.

Does Your Site Have This Problem?

Every check in this article runs automatically on the sites we look after. You can run the same health checks on your own site in seconds with the free SiteHale plugin — no account, nothing transmitted anywhere. Or have us do it: we’ll crawl your site and send you a written report, free.

Get My Free Site Report

Leave a Comment