Quick answer
A WordPress backdoor is a hidden way back in after a hack: a rogue admin user, a planted PHP file, or a quiet change to a theme or plugin file. It often stays after the obvious spam or redirect is gone.
The fix is to find every door, remove it, reinstall clean copies of core and plugins, reset all access, and watch the site for weeks. Skipping any of those steps is how sites get reinfected.
Most site owners notice the spam page or the redirect first. The backdoor is quieter, and it is what lets the attacker come back.
If you only delete the visible mess and leave the door open, the same problem returns within days.
I’m Hassan. Our team has been fixing hacked WordPress sites since 2011, working from Pakistan for owners in the US, UK, EU and Australia. This guide covers how to spot a hidden admin or backdoor, the checks we run first and how to remove them properly.
Found an admin user you didn’t create?
Book a free call before you delete anything, and we’ll talk you through what to check and how to close the backdoor. Prefer to write? Send us a message.
Signs you have a backdoor or hidden admin
Some of these show up before anything looks wrong on the front end:
- An admin user you did not create in Users, or one that reappears after you delete it.
- Logins you do not recognise in security logs, or successful logins from odd countries.
- Files that keep coming back after you delete them, often under
wp-content/uploadsormu-plugins. - Unexpected PHP in uploads, or a theme
functions.phpthat is longer than it should be. - Spam, redirects or phishing pages that return days after a cleanup. If your host suspended the account over it, see a WordPress site suspended for malware.
- New scheduled tasks or must-use plugins you never installed.
Tip
List administrators from WP-CLI or the database as well as the Users screen. Some backdoors hide accounts from the admin UI unless a specific cookie or IP is present.
What causes it, in plain English
A backdoor is leftover access. The attacker gets in once through an outdated plugin, a weak password or a nulled theme, then plants something that lets them skip the front door next time.

That “something” is often an administrator account, a small PHP file that runs when visited with a secret key, or a few lines injected into a file WordPress loads on every request.
Why it matters
- Reinfection. Clean the spam and leave the door, and the spam comes back. If this keeps happening, read why your WordPress site keeps getting hacked.
- Quiet abuse. The site can look fine while the attacker sends mail, steals form data or hosts phishing pages. On a shop, that can mean a WooCommerce checkout skimmer stealing card details.
- Wasted cleanups. Every incomplete fix trains you to think “WordPress is always getting hacked,” when the real issue is the door you missed.
What a hidden admin or backdoor looks like
Two patterns show up most often. Neither screenshot below is a real client site; both are labelled examples.

Hidden admin users
In the Users list you may see an administrator whose username you do not recognise. Placeholder examples (not real accounts): wp_updates, supportadmin, or a random string such as x7k_admin.
Compare every administrator to people you trust. Check the email address and the registration date. An account created the same week the spam started is a strong lead.
Backdoor files and injected code

Paths below are examples of where we often look, not a list of infected client files:
# Examples of places to inspect (not real client paths)
wp-content/mu-plugins/ # must-use plugins load for every request
wp-content/uploads/**/*.php # PHP should almost never live in uploads
wp-content/themes/*/functions.php # unexpected eval/base64/curl blocks
wp-content/plugins/*/includes/*.php # files that do not match the plugin zip
wp-config.php # extra include/require lines at the top or bottom
./.htaccess # unknown rewrite rules or auto_prepend_file
Warning
Do not paste unknown PHP into a decoder on a work laptop and “see what it does.” Treat it as hostile, quarantine it, and work from a clean copy of the file.
Safe checks you can run
These checks only read. They do not change your site. Take a full backup of files and the database before you go further anyway.

List every administrator
# Read-only: run from the WordPress root
wp user list --role=administrator --fields=ID,user_login,user_email,user_registered
wp db query "SELECT ID,user_login,user_email,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%'"
Verify core and plugins
wp core verify-checksums
wp plugin verify-checksums --all
wp theme list --status=active
Look for recent and unexpected PHP
# Read-only leads, not a verdict on their own
find . -type f -name "*.php" -mtime -14 -not -path "./wp-content/cache/*" | head -80
find wp-content/uploads -name "*.php"
find wp-content/mu-plugins -type f 2>/dev/null
wp option get active_plugins
wp option get cron
Tip
A checksum mismatch or a PHP file in uploads is a lead, not a sentence. Write down what you find and where before deleting anything, so you can trace the original way in.
Cleanup steps, in order
Order matters. Delete the obvious file and leave a second copy, and the attacker is back within days.
Back up and record
Copy files and database. Save the list of admins, recent file changes and any odd cron jobs.
Find every door
Hidden admins, mu-plugins, uploads PHP, injected theme or config lines, and the original way in.
Remove malware and backdoors
Delete planted files and clean injected code in files and the database.
Reinstall clean copies
Core, themes and plugins from trusted sources only. Do not restore from an infected backup.
Reset access
Remove unknown admins, rotate every password, refresh salts and keys, review FTP/SFTP and host users.
Harden and monitor
Update everything, limit login attempts, and watch files and users for weeks after.

If you’d rather not do this yourself, our WordPress malware removal service covers the cleanup, the hardening and the reinfection warranty.

Backdoors are often how injected ads get back onto a site. If visitors report pop-ups or spam ads, see our guide to a WordPress site showing ads.
Risks of fixing it yourself
If you know your server well, you can do much of this. The risk is a cleanup that looks finished but isn’t.
- Second backdoor missed. Attackers often plant more than one door.
- User deleted, file left. Removing the admin without the PHP file (or the other way round) leaves a way back in.
- Infected backup restored. Putting an old backup back can reintroduce the door.
- Breaking the site. Blind edits to
wp-config.php,.htaccessor the database can take it offline.
What it looks like in Google and the browser
A quiet backdoor may show nothing in Google or the browser. When it is used to push spam, phishing or malware, you may see:
- Redirects to spam or scam pages for some visitors or some user agents.
- A red Safe Browsing warning such as “Deceptive site ahead” or “This site may harm your computer.”
- “This site may be hacked” under your result in Google.
- Strange indexed URLs in Search Console that you never published.
No warning does not mean clean. Many backdoors stay silent until the attacker needs them.
Get it fixed: fixed prices
Every plan is cleaned within 24 hours of receiving working access. Emergency fixes start from $149.
- Basic — $149. Malware and backdoor removal with basic hardening. 30-day reinfection warranty.
- Full Recovery — $249. Deep cleanup plus hardening and follow-up. 60-day reinfection warranty.
- Emergency — $349. Work starts within 4 hours of access. 60-day reinfection warranty.
Suspect a backdoor or hidden admin?
Fixed-price malware and backdoor cleanup from $149, with a reinfection warranty. Not sure what you are looking at? Start with a free malware check.
Once the backdoor is closed, a WordPress care plan keeps updates, user checks and monitoring going every week.
Related reading
- WordPress site redirecting to spam? Signs, causes and the fix
- WordPress pharma hack: signs, cause and how to fix it
- WordPress SEO spam: how to find injected spam pages and remove them
- Deceptive site ahead on WordPress: why Google flagged your site and how to fix it
- WooCommerce checkout skimmer: how to spot card-stealing malware and remove it
- Japanese keyword hack: signs, cause and how to fix it
- How to recover SEO rankings after a hacked website
- WordPress site keeps getting hacked? Why malware comes back and how to stop it
- WordPress site suspended for malware? How to get your host to restore it
- How much does WordPress malware removal cost?
- Free WordPress security scanner: check your site in a minute
Frequently asked questions
What is a WordPress backdoor?
A backdoor is code or an account left behind so an attacker can return after the obvious malware is gone. It can be a hidden PHP file, a modified theme file, a must-use plugin, or an administrator user you never created.
What is a hidden admin user in WordPress?
It is an administrator account the site owner did not create. Attackers add one so they can log in later even if you change other passwords. Sometimes the username looks normal; sometimes it is a random string.
How do attackers hide admin users?
Common tricks include a username that looks like a plugin or theme, registering the account then renaming it in the database, or adding a user that only appears when a specific cookie or IP is present. Always list administrators from the database or WP-CLI, not only the Users screen.
Can a backdoor stay after I delete the malware?
Yes. That is the point of a backdoor. If you only remove the spam page or redirect and leave the door open, the attacker walks back in within days and reinfects the site.
Where do WordPress backdoors usually hide?
Common places include wp-content/mu-plugins, a theme’s functions.php, PHP files inside uploads, drop-ins in the WordPress root, and lines injected into wp-config.php. The list below is illustrative, not exhaustive.
How do I check for a hidden admin safely?
List all users with the administrator role via WP-CLI or the database, and compare them to people you trust. Also verify WordPress core and plugin checksums and look for recently changed PHP files. Those checks only read; they do not change the site.
Should I just delete the unknown admin user?
Deleting the user is not enough if a backdoor file or modified code still exists. Remove the way in, clean infected files, reinstall clean copies of core, themes and plugins, then reset every password and the security keys.
Will a backdoor show up in Google or the browser?
Not always. Some backdoors stay quiet until the attacker returns. Others power spam redirects, pharma pages or phishing kits, which can trigger Safe Browsing warnings or “This site may be hacked” labels. Absence of a warning does not mean the site is clean.
Can I fix a WordPress backdoor myself?
If you know your server well, you can do much of it. The risk is missing a second copy of the backdoor or the original way in. A cleanup that looks finished but isn’t usually leads to reinfection within days.
How much does WordPress backdoor removal cost?
BrandBees charges $149 for a Basic cleanup with a 30-day reinfection warranty, and $249 for Full Recovery or $349 for Emergency, both with a 60-day reinfection warranty. Emergency fixes start from $149.
Want the backdoor gone properly?
WordPress experts since 2011. Cleanup from $149, cleaned within 24 hours of access, with a 60-day reinfection warranty on the $249 and $349 plans.
Free PDF
WordPress Security Checklist
The same checks we run on client sites, written in plain English. Work through it in an afternoon.
- Logins, updates, backups and hosting, step by step
- A 10-minute self-test you can run today
- What to do if you think you’ve been hacked