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.
Table of Contents
ToggleIn 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.
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.
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
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:
Legitimate-Looking File Names in Wrong Locations
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:
- Full server-side file scan: every PHP file across the entire hosting account, not just the WordPress directory
- Manual review of suspicious files: obfuscated code is decoded and analysed, not just pattern-matched
- Database audit: all tables checked for injected code, not just wp_posts
- cPanel scan: cron jobs reviewed and unauthorised tasks removed
- Active process audit: any running processes consuming server resources are identified
- File permission audit: writable directories that allow new file uploads are locked down
- FTP account audit: any unauthorised FTP users are removed
- Root cause analysis: the vulnerability that let the attacker in is identified and patched
- 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.