Opening the WordPress user list and finding an administrator you never created is a clear sign the site is already compromised. These accounts usually have random names or plausible ones such as "wpadmin", "support" or "admin2". The biggest mistake is deleting the account and calling it done: it often reappears the next day.
Why the fake admin keeps coming back
The fake administrator is a symptom, not the cause. The attacker first gets in through a vulnerable plugin, a stolen password or an outdated theme, leaves a backdoor, and only then creates the account. The backdoor is often a standalone PHP file, a small plugin in mu-plugins, or a few lines in the theme's functions.php. Some of them check on every page load whether their admin exists and recreate it if it was deleted.
Step 1: list every administrator, including hidden ones
Take a copy of the files and database first and store it outside the web root. Then list administrators with WP-CLI:
wp user list --role=administrator --fields=ID,user_login,user_email,user_registered
Malware can hide users from the dashboard, so query the database directly too (adjust the wp_ prefix if yours differs):
SELECT u.ID, u.user_login, u.user_email, u.user_registered
FROM wp_users u
JOIN wp_usermeta m ON m.user_id = u.ID
WHERE m.meta_key = 'wp_capabilities'
AND m.meta_value LIKE '%administrator%';
If this list is longer than the dashboard's, something is hiding users. The user_registered date tells you which days of server logs to examine.
Step 2: check registration settings
wp option get users_can_register
wp option get default_role
wp option update users_can_register 0
wp option update default_role subscriber
Attackers sometimes enable open registration and set the default role to administrator, so anyone can sign up as an admin.
Step 3: find the code that creates the account
wp core verify-checksums
wp plugin verify-checksums --all
ls -la wp-content/mu-plugins/
grep -rnE "wp_create_user|wp_insert_user|pre_user_query" wp-content --include=*.php
Many legitimate plugins use these functions, so look for obfuscated code, code inside theme files, or a pre_user_query hook that hides a specific login. Premium plugins and themes cannot be checksum-verified; replace them with fresh copies from the vendor.
Step 4: remove the accounts and rotate access
wp user delete 17 23 --reassign=1
wp user reset-password 1
wp config shuffle-salts
--reassign moves their content to a real admin. shuffle-salts invalidates all sessions, so stolen cookies stop working. Also change the database, FTP and hosting panel passwords, since an attacker who read wp-config.php could add an admin straight into the database, and update the new database password in wp-config.php.
Step 5: find the entry point
grep "POST /wp-login.php" access.log | awk '{print $1}' | sort | uniq -c | sort -rn | head
grep -E "POST .*(admin-ajax|wp-json|xmlrpc)" access.log | tail -50
Hundreds of login attempts from one IP suggest password guessing; an account appearing without them points to a vulnerable plugin. Update everything, delete unused plugins and avoid nulled premium plugins.
Example: a training centre in Fergana
The administrator of a training centre's site, misol.uz, deleted an unknown "wp-support" account every Monday, and it kept coming back. A file in mu-plugins disguised as a cache plugin was recreating it on each page load and hiding it from the dashboard. The entry point was a form plugin that had not been updated for years. After removing the file, updating the plugin and rotating salts and passwords, the fake admin never returned. On sayt.uz hosting you can review changed files through backups and the file manager in ISPmanager, and contact support from the cabinet if you need help.