Unknown WordPress Admin Keeps Coming Back: Kill the Source

By Information Security Asia · Updated December 3, 2026 · 6 min read

Unknown WordPress Admin Keeps Coming Back: Kill the Source

Short answer: If an unknown WordPress admin keeps coming back after you delete it, something on the site is recreating it. Deleting the user treats the symptom; you need to find the code. Common hiding places are a fake plugin that hides itself from the Plugins screen, a PHP file in the site root disguised as a core file, a must-use plugin, theme functions.php and scheduled cron events. Sucuri documented exactly this in 2025: one backdoor recreated an admin called help on every run and another filtered it out of the user list. Find the file, remove it, then remove the user, reset every password and salt, and confirm the account stays gone for several days.

Why deleting the user is not enough

A rogue administrator is how an attacker guarantees a way back in. If you delete the account but leave the code that created it, the backdoor simply creates it again, sometimes on the next page load, sometimes on a schedule. Some versions also restore administrator privileges if you downgrade the account rather than deleting it.

Unknown WordPress Admin Keeps Coming Back: Kill the Source

Sucuri’s 2025 analysis is a clear example. A file disguised as a plugin named DebugMaster Pro created an administrator called help with hardcoded credentials and restored its privileges if the user already existed. It removed itself from the plugin list and filtered user queries so the help account did not appear in the dashboard. A second file, wp-user.php, sat in the site root disguised as a core file and deleted and recreated the help user with the attacker’s password every time it ran. Sucuri noted that because the backdoors reinstall accounts, simply deleting the user does not stop the attack.

Step 1: See every administrator, including hidden ones

The Users screen and some tools run through WordPress’s own PHP, which a backdoor can filter. Query the database directly so no plugin code is involved. Replace wp_ with your table prefix if it is different.

SELECT u.ID, u.user_login, u.user_email, u.user_registered
FROM wp_users u
JOIN wp_usermeta m ON u.ID = m.user_id
WHERE m.meta_key = 'wp_capabilities'
  AND m.meta_value LIKE '%administrator%';

Compare the result with what the dashboard shows. An administrator in the database but missing from the Users screen means something is hiding it, which tells you a plugin or theme file is involved. Note the registration date and time; it helps you find the matching log entries and modified files. Our WordPress admin user audit covers the WP-CLI and SQL checks in more detail, including application passwords and sessions.

Step 2: Find the code that recreates it

Location Why attackers use it How to check
Fake plugin folder Can hide itself from the Plugins screen List wp-content/plugins on disk and compare with the dashboard
Site root files Names like wp-user.php look like core Compare the root with a fresh WordPress download
wp-content/mu-plugins Loads automatically, cannot be deactivated in the dashboard Inspect every file in the folder
Theme functions.php Runs on every request Check modified dates and unfamiliar code
Cron events Recreates the user on a schedule List events and look for unknown hooks

Search the code for the rogue username and for user creation functions. A simple search over SSH is often enough to find the culprit:

grep -rn --include=*.php -e 'wp_insert_user' -e 'wp_create_user' -e 'set_role' wp-content/ ./*.php
wp plugin list --status=must-use
wp cron event list
wp core verify-checksums
wp plugin verify-checksums --all

Legitimate plugins use these functions too, so the goal is to find a call in a file that has no business creating users, especially one with a recent modification date or a hardcoded username and password. Checksum commands show core and repository plugin files that differ from the official versions. Our guide to checking mu-plugins for malware and our list of 12 places attackers hide WordPress backdoors go further.

Unknown WordPress Admin Keeps Coming Back: Kill the Source

Step 3: Clean up in the right order

  1. Take a backup of the infected state for evidence, and put the site in maintenance mode if visitors are being redirected.
  2. Remove the backdoor files you found: the fake plugin directory, rogue root files, malicious mu-plugins and any injected code in themes.
  3. Delete the rogue user and reassign or delete any content it created. Check for application passwords on remaining admin accounts.
  4. Reset credentials for every WordPress administrator, the database user, SFTP or FTP accounts and the hosting control panel, as Sucuri recommends.
  5. Rotate the security keys and salts in wp-config.php so existing login cookies stop working. Our guide to WordPress salts and keys explains when and how.
  6. Update WordPress core, plugins and themes, and remove anything abandoned or nulled.
  7. Review server logs for the request that created the first rogue user and for connections to unfamiliar domains.

Doing these out of order is how reinfections happen. Resetting passwords while the backdoor still runs gives the attacker a fresh admin with a new password; deleting the user before removing the file just triggers recreation.

Step 4: Confirm it stays gone

Run the database query from Step 1 once a day for at least a week. If the account returns, there is still code you have not found; check the time it reappeared against access logs to see which request triggered it. Turn on file change monitoring so any new PHP file is flagged, and set up activity logging that records user creation and role changes outside the database, where an attacker cannot easily erase it.

Find out how they got in

A recreating admin is persistence, not the original entry point. Common entry points include a vulnerable plugin, a reused admin password, a stolen session, an exposed backup containing wp-config.php, or compromised hosting credentials. If you do not close the original hole, the attacker can install a new backdoor. Look for the earliest suspicious event in your logs and work back from there. If the site handles payments or personal data, or you cannot find the source after a careful search, Sucuri’s advice to bring in professional help is sensible.

Harden against the next attempt

Require two-factor authentication for every administrator, keep the number of admin accounts small, and give editors and contributors only the roles they need. Disable the theme and plugin file editors in wp-config.php so a stolen admin login cannot paste code from the dashboard. Keep plugins updated and remove anything you do not use. These steps will not stop every attack, but they make the recreated-admin trick much harder to pull off.

Frequently asked questions

Why can I not see the rogue admin in the Users screen?

Malicious code can filter user queries so the account is hidden from the dashboard. Query the database directly to see every administrator.

Is changing the rogue user’s password enough?

No. Backdoors like the one Sucuri documented delete and recreate the user with the attacker’s password. Remove the code first, then the user.

Will a security plugin scan find the backdoor?

Sometimes, but fake plugins and files disguised as core can slip past. Combine scanner results with checksum checks, a comparison against a fresh WordPress download and manual searches for user creation code.

Should I restore a backup instead?

A clean backup from before the first rogue user appeared can help, but you still need to close the entry point and reset all credentials, or the attacker will return.

Sources

Keep reading