Does your WordPress website keep getting infected after malware removal? Are suspicious PHP files returning after deletion, unauthorized administrator accounts appearing or malicious redirects resuming despite clean security scans?
Your website may contain a hidden WordPress backdoor.
A WordPress backdoor is an unauthorized access mechanism that allows an attacker to regain access to a compromised website while bypassing its normal security controls.
Unlike visible malware that generates spam pages or malicious redirects, a backdoor may remain undetected while your website continues functioning normally.
Removing a WordPress backdoor requires identifying unauthorized code or access mechanisms, investigating affected software, addressing security vulnerabilities and verifying that the compromise has been resolved.
In this guide, we explain how to detect WordPress backdoors, investigate suspicious files, remove identified malicious components and reduce the likelihood of reinfection.
If previous malware removal attempts have failed, HostInsightPro offers a professional WordPress malware removal and security hardening service for $499 per eligible website.

What Is a WordPress Backdoor?
A WordPress backdoor is a mechanism that enables unauthorized access to a website outside its intended authentication or security procedures.
An attacker may introduce a backdoor after exploiting vulnerable software, obtaining administrator credentials or compromising another part of the hosting environment.
Once unauthorized access has been established, a backdoor may allow an attacker to:
- Modify website files.
- Create unauthorized administrator accounts.
- Introduce additional malicious content.
- Access sensitive website information.
- Generate SEO spam pages.
- Redirect visitors to malicious websites.
- Interfere with website security plugins.
- Reinfect a website after previous cleanup attempts.
Not every backdoor produces immediately visible symptoms. Some remain inactive until they are used again.
This makes backdoor investigation particularly important when a website has experienced recurring security incidents.
WordPress Backdoor vs. Other Types of Malware
Although backdoors are a form of malicious compromise, their purpose differs from other common WordPress infections.
| Malware type | Primary function |
|---|---|
| Backdoor | Maintain unauthorized website access |
| Redirect malware | Send visitors to unauthorized destinations |
| SEO spam | Generate unauthorized search engine content |
| Phishing malware | Obtain sensitive information from visitors |
| Malicious JavaScript | Manipulate website content or browser behavior |
| Web shell | Enable unauthorized server-side operations |
A single WordPress infection may involve several of these components simultaneously.
For example, a compromised website may contain redirect malware that sends customers to suspicious websites and a separate backdoor that allows the infection to return after cleanup.
Removing the redirect without addressing the remaining compromise may provide only temporary relief.
Signs Your WordPress Website Contains a Backdoor
The following warning signs may indicate persistent unauthorized access.
| Warning sign | Potential explanation |
|---|---|
| Deleted malware files return | Persistent unauthorized activity |
| Unknown administrator accounts reappear | Compromised access mechanisms |
| Security plugins become disabled | Unauthorized configuration changes |
| Unexpected PHP files appear | Potential malicious software |
| WordPress core files repeatedly change | Continued unauthorized modifications |
| Malicious redirects return | Unresolved infection |
| Unfamiliar scheduled tasks appear | Potential unauthorized automation |
| Multiple websites become infected | Broader hosting compromise |
| Password changes fail to resolve the problem | Another access mechanism may remain |
These symptoms are not definitive proof that a backdoor exists.
Legitimate scheduled tasks, software updates and compromised credentials can produce similar behavior.
However, repeated unauthorized changes after remediation warrant a more comprehensive investigation.
How Do WordPress Backdoors Get Installed?
Backdoors are generally introduced after an attacker obtains unauthorized access through an existing security weakness.
Vulnerable WordPress Plugins
Plugins with unpatched security vulnerabilities may expose website files, administrative functionality or configuration settings to unauthorized modification.
Removing the resulting malware without addressing the vulnerable plugin may leave the original security weakness unresolved.
Compromised Administrator Accounts
An attacker who obtains administrator credentials may be able to modify website settings or install unauthorized software.
Weak passwords, reused credentials and insufficient authentication protection increase exposure to account compromise.
Untrusted WordPress Themes and Plugins
Software downloaded from unofficial sources may contain unauthorized modifications.
Nulled premium plugins and themes present particular concerns because their integrity and update availability may be difficult to establish.
Compromised Hosting Accounts
A hosting account compromise may provide access beyond the WordPress dashboard.
Depending on the environment, unauthorized users may gain access to website files, databases or multiple installations.
Other Vulnerable Websites
When multiple websites share a hosting environment, insufficient isolation between installations can increase the scope of a security incident.
Older development websites, abandoned installations and unmaintained subdomains may also require investigation.
Where Are WordPress Backdoors Commonly Found?
A comprehensive security investigation should examine relevant files, accounts and configuration settings throughout the affected website.
The following locations are useful starting points.
| File or directory | Investigation priority |
|---|---|
| wp-content/plugins/ | Unauthorized plugin modifications |
| wp-content/themes/ | Unexpected changes to theme files |
| wp-content/uploads/ | Unfamiliar executable files |
| wp-content/mu-plugins/ | Unauthorized automatically loaded software |
| wp-admin/ | WordPress core file integrity |
| wp-includes/ | Modified core components |
| wp-config.php | Unauthorized configuration changes |
| .htaccess | Unexpected server configuration rules |
| .user.ini | Unexpected PHP configuration |
| WordPress database | Unauthorized accounts and configuration changes |
The presence of a file in one of these locations does not establish that it is malicious.
Legitimate plugins and hosting environments use many of the same directories and configuration mechanisms.
The objective is to identify unauthorized changes by comparing suspicious findings against trusted software and expected website behavior.
How to Find and Remove a WordPress Backdoor: 10 Steps
Before starting, ensure that you have authorized administrative access to the website and sufficient technical knowledge to perform the investigation.
If the website processes sensitive customer information or payment data, additional incident-response expertise may be necessary.
Step 1: Contain the Security Incident and Preserve Evidence
If the website is actively distributing harmful content or experiencing ongoing unauthorized modifications, consider temporarily restricting public access.
Contact your hosting provider if you suspect that the compromise extends beyond WordPress.
Before changing suspicious files, preserve relevant evidence, including:
- Malware scan notifications.
- Affected file paths.
- Available modification timestamps.
- Unauthorized account information.
- Hosting security notifications.
- Website access and error logs.
- Examples of unexpected website behavior.
This information can help establish the scope of the incident and investigate recurring unauthorized activity.
Step 2: Create a Complete Website and Database Backup
Before removing malware or replacing software, preserve a complete copy of your website.
Include:
- WordPress core files.
- Plugins and themes.
- Media uploads.
- WordPress database.
- Relevant configuration files.
- Available security logs.
A backup protects legitimate website content if remediation unintentionally affects functionality.
However, a backup created during an active compromise may contain the same backdoor you are attempting to remove.
Store potentially infected backups securely and separately from the production environment.
Do not assume that restoring the backup will eliminate the infection.
Step 3: Scan WordPress for Backdoor Malware
A reputable malware scanner can help identify suspicious files, unexpected software modifications and known malicious code.
Wordfence is a widely used option for WordPress security scanning.
If you can safely access the WordPress dashboard:
- Navigate to the Wordfence scanning interface.
- Review the available scan settings.
- Start a comprehensive scan.
- Examine the reported findings.
- Investigate suspicious file modifications.
- Preserve relevant findings before remediation.
Pay particular attention to files that have changed unexpectedly or do not match trusted software versions.
Do not automatically delete every flagged file.
Some legitimate plugins use advanced PHP functions, encoded data and customized software components that may require additional investigation.
Can Wordfence Detect Every WordPress Backdoor?
No security scanner can guarantee detection of every possible backdoor.
Automated scanning may have limitations when investigating custom software, compromised credentials, database modifications or hosting-level security incidents.
A clean Wordfence scan is useful evidence but does not establish that every unauthorized access mechanism has been removed.
Step 4: Investigate Suspicious PHP Files
Manual file investigation can help identify unauthorized software components that require closer examination.
Use your hosting file manager, SFTP client or an appropriate administrative environment to review suspicious findings.
Consider the following questions when evaluating a file:
- Does the file belong to a legitimate plugin or theme?
- Is it included in the developer’s original software package?
- Does its functionality match the software’s intended purpose?
- Has the file been modified unexpectedly?
- Do security scan findings support the suspicion?
- Is there evidence connecting the file to unauthorized website behavior?
Compare suspicious files against known trusted versions whenever possible.
Understanding Suspicious PHP Functions
Certain PHP functions may warrant additional investigation when encountered in unexpected contexts.
| PHP function | Legitimate purpose |
|---|---|
| base64_decode() | Decode encoded information |
| gzinflate() | Decompress data |
| eval() | Evaluate PHP code |
| shell_exec() | Execute an external command |
| file_put_contents() | Write information to a file |
| system() | Execute an external program |
These functions are not automatically malicious.
For example, legitimate backup software may write files, and legitimate plugins may decode or decompress stored information.
The important consideration is the surrounding code, its intended behavior and whether the functionality is authorized.
Never execute unfamiliar PHP code on your production website to determine whether it is malicious.
Review suspicious content through static analysis or an appropriately isolated investigation environment.
Step 5: Verify WordPress Core and Plugin Integrity
File integrity verification helps identify software that differs from its officially distributed version.
If your hosting provider supports SSH and WP-CLI, WordPress core checksums can be verified using:
wp core verify-checksums
This compares eligible WordPress core files against published checksums.
To include checks for unexpected files in the WordPress root directory, use:
wp core verify-checksums --include-root
Investigate reported differences rather than automatically treating every unexpected file as malicious.
The WordPress core checksum command runs before WordPress loads, which makes it useful during initial integrity investigations.
Verify WordPress Plugins
WP-CLI can also verify eligible plugins against published WordPress.org checksums:
wp plugin verify-checksums --all
Verification may not be available for premium plugins, custom-developed software or certain plugin versions.
A missing checksum does not establish that a plugin is malicious.
For these components, obtain a trusted copy directly from the legitimate developer and perform an appropriate comparison.
Use an appropriately trusted administrative environment because some WP-CLI commands may load application components during execution.
What File Integrity Verification Cannot Detect
Checksum verification does not establish the security of the entire website.
It cannot comprehensively assess:
- WordPress database content.
- Compromised passwords.
- Unauthorized account sessions.
- Hosting-level configuration.
- Every custom software component.
- Other affected websites.
- All files outside the verified software packages.
A website may pass core integrity verification while remaining compromised elsewhere.
Step 6: Remove or Replace Confirmed Backdoor Files
After identifying a malicious component, determine whether it should be removed, repaired or replaced.
| File condition | Appropriate response |
|---|---|
| Confirmed unauthorized file | Preserve evidence and remove it |
| Compromised WordPress core file | Replace with a trusted version |
| Compromised legitimate plugin | Replace with a trusted, appropriately patched version |
| Modified custom theme | Investigate and repair legitimate functionality |
| Uncertain file | Continue investigating before deletion |
| Unmaintained vulnerable software | Consider a maintained replacement |
Avoid simply overwriting affected directories without reviewing unexpected files that might remain.
A controlled replacement process may be necessary when software integrity cannot be established.
When replacing compromised WordPress components, preserve legitimate customizations, website content and essential configuration.
Test relevant website functionality after remediation.
Step 7: Investigate WordPress Database Content and User Accounts
Not every persistent security problem involves a standalone malicious file.
Unauthorized database changes and compromised user accounts can allow unwanted activity to continue after file-based malware removal.
Review your WordPress users under Users → All Users.
Investigate:
- Administrator accounts you do not recognize.
- Unexpected changes to user privileges.
- Unfamiliar account email addresses.
- Accounts belonging to former contractors.
- Unnecessary application passwords.
- Unexpected administrative sessions.
Preserve relevant evidence before removing unauthorized access.
If database investigation is necessary, use appropriate tools such as phpMyAdmin.
| Database table | Investigation focus |
|---|---|
| wp_users | Unauthorized user accounts |
| wp_usermeta | Unexpected account privileges |
| wp_options | Unauthorized configuration changes |
| wp_posts | Injected or unauthorized content |
| wp_postmeta | Unexpected content metadata |
Your WordPress installation may use a different table prefix.
Additional plugin-specific tables may require review depending on the infection.
Always preserve a database backup before modifying entries.
Avoid deleting unfamiliar records without understanding their legitimate purpose.
Step 8: Review Scheduled Tasks and Hosting-Level Security
If confirmed malware continues returning, investigate whether unauthorized activity exists beyond the affected files.
WordPress uses scheduled events for legitimate activities such as publishing content, performing maintenance and running backups.
Hosting environments may also provide separate scheduled job functionality.
Review unfamiliar scheduled activity and determine whether it belongs to authorized software or hosting services.
Do not remove legitimate scheduled tasks simply because their names are unfamiliar.
If the compromise appears to involve hosting-level scheduled jobs, configuration changes or accounts, contact your hosting provider.
Also investigate other websites within the affected hosting environment where authorization and access permit.
A standard WordPress malware cleanup may not be sufficient for a broader server-level incident.
Step 9: Identify and Address the Original Security Weakness
Removing a backdoor without addressing the security weakness that allowed the compromise may leave your website vulnerable to another attack.
Review available information about:
- Installed WordPress versions.
- Plugin and theme security advisories.
- Administrative login activity.
- Recently modified files.
- Hosting access logs.
- Unexpected account changes.
- Untrusted software installations.
Correlate relevant security findings with the known incident timeline.
For example, a documented plugin vulnerability combined with suspicious requests and subsequent file modifications may support a possible explanation for the compromise.
However, a vulnerable plugin alone does not prove that it caused the incident.
Historical evidence may be insufficient to establish the original attack vector conclusively.
Document verified findings and unresolved questions rather than making unsupported claims.
Step 10: Harden WordPress and Verify the Cleanup
Once identified backdoors and associated malicious components have been removed, implement appropriate security measures.
| Hardening measure | Security benefit |
|---|---|
| Update WordPress core | Address known core vulnerabilities |
| Update plugins and themes | Reduce exposure to vulnerable software |
| Enable two-factor authentication | Strengthen account protection |
| Configure a web application firewall | Filter potentially harmful traffic |
| Rotate compromised credentials | Reduce continued unauthorized access |
| Review administrator privileges | Restrict unnecessary permissions |
| Disable dashboard file editing | Restrict built-in code editing |
| Review file ownership and permissions | Reduce unnecessary filesystem access |
| Remove unused software | Reduce unnecessary attack surface |
| Configure secure backups | Support recovery |
| Enable security monitoring | Identify recurring suspicious changes |
Rotate relevant credentials from a trusted device after remediation.
Depending on the incident, this may include WordPress, hosting, SFTP, database and administrative email credentials.
Review application passwords, active sessions and other authorized access mechanisms.
Changing WordPress authentication salts can invalidate existing WordPress login cookies, requiring legitimate administrators to sign in again.
Credential rotation should be coordinated with website configuration to prevent unnecessary service disruption.
After implementing security improvements, perform a follow-up malware scan, repeat appropriate integrity checks and test important website functionality.
For a more comprehensive remediation walkthrough, read our guide on how to remove malware from WordPress.
How to Find WordPress Backdoors Without a Security Plugin
Manual backdoor investigation may be necessary when you cannot access the WordPress dashboard or automated security tools fail to explain suspicious activity.
A plugin-free investigation can involve:
- Preserving website files and database backups.
- Reviewing suspicious files through SFTP.
- Comparing software against trusted installation packages.
- Performing appropriate WP-CLI integrity checks.
- Investigating WordPress user accounts.
- Reviewing relevant database settings.
- Examining available hosting security logs.
- Addressing confirmed unauthorized modifications.
- Applying security patches.
- Performing post-cleanup verification.
Manual investigation requires technical judgment, particularly when a website contains customized plugins, themes or business-critical integrations.
An unfamiliar file is not necessarily a backdoor, and indiscriminate deletion can damage website functionality.
Combining automated security scanning with targeted manual investigation generally provides broader coverage than either approach alone.
What Is the Best WordPress Backdoor Scanner?
Several security tools can assist with backdoor investigations, although they serve different purposes.
| Security tool | Primary function | Limitation |
|---|---|---|
| Wordfence | File scanning and WordPress security | Cannot guarantee detection of every compromise |
| Sucuri SiteCheck | External website scanning | Cannot directly inspect private server files |
| WP-CLI | Software integrity verification | Limited to supported software checksums |
| phpMyAdmin | Database investigation | Requires manual interpretation |
| Hosting security scanner | Hosting-level malware detection | Capabilities vary by provider |
| Manual source code review | Investigation of suspicious behavior | Requires technical expertise |
There is no universal backdoor scanner that can conclusively establish the security of every WordPress installation.
The appropriate tools depend on the reported symptoms, hosting environment, available access and software configuration.
Why Does My WordPress Backdoor Keep Coming Back?
A recurring backdoor may indicate that the original investigation did not address every affected component.
Possible explanations include:
- An unresolved software vulnerability.
- Continued unauthorized administrative access.
- Another malicious component remaining on the website.
- Compromised hosting credentials.
- An infected backup being restored.
- Other affected websites within the hosting environment.
- Unauthorized scheduled activity.
- Compromised administrative devices.
Repeatedly deleting the same malicious file may not resolve the underlying issue.
Instead, investigate why unauthorized changes continue and whether the scope of the compromise extends beyond the initially identified file.
Read our guide explaining why your WordPress site keeps getting hacked for additional information about recurring malware infections.
Can Reinstalling WordPress Remove Backdoors?
Reinstalling WordPress core software can resolve compromises affecting the replaced core components.
However, it may not address malicious content elsewhere.
| Component | Does core reinstallation necessarily address it? |
|---|---|
| Modified WordPress core files | Can replace affected core files |
| Unauthorized plugin files | No |
| Compromised themes | No |
| Unauthorized database content | No |
| Compromised administrator accounts | No |
| Hosting-level configuration | No |
| Other affected websites | No |
In addition, simply overwriting WordPress files may leave unauthorized files within existing directories.
A controlled rebuild using trusted software may be appropriate when the integrity of the existing installation cannot be confidently established.
However, migrated database content, custom software and configuration must still be investigated to avoid transferring the same security problem.
How to Verify That a WordPress Backdoor Has Been Removed
Successful remediation should be supported by multiple forms of verification.
Perform a Follow-Up Malware Scan
Review remaining security alerts and investigate suspicious findings that persist after cleanup.
Repeat Software Integrity Verification
Confirm that repaired WordPress core files and eligible plugins match trusted software versions.
Document legitimate customizations and components that cannot be verified through published checksums.
Review Administrative Access
Confirm that unauthorized accounts have been addressed and relevant credentials have been rotated.
Review login protection, administrator privileges and application access.
Monitor File Changes
Investigate unexpected modifications that occur after cleanup.
Legitimate updates may change files, so compare suspicious activity with normal software maintenance.
Test Website Functionality
Verify that important website functions remain operational, including:
- Homepage and internal pages.
- Administrator access.
- Contact forms.
- Website navigation.
- Customer account access.
- Checkout functionality.
- Relevant redirect behavior.
Continue Monitoring for Reinfection
A backdoor may not produce immediately visible symptoms.
Continued monitoring provides additional confidence that the previously observed unauthorized activity has stopped.
No individual security scan or verification procedure can conclusively guarantee that every possible backdoor has been identified.
WordPress Backdoor Removal Checklist
Use this checklist during an authorized backdoor investigation.
-
Contain harmful website activity.
-
Preserve security alerts and available logs.
-
Create a complete website backup.
-
Export the WordPress database.
-
Perform a comprehensive malware scan.
-
Review suspicious scan findings.
-
Investigate unexpected software modifications.
-
Verify WordPress core file integrity.
-
Verify eligible plugin integrity.
-
Review custom and premium software.
-
Remove or replace confirmed malicious components.
-
Investigate unauthorized administrator accounts.
-
Review relevant database content.
-
Investigate suspicious scheduled activity.
-
Review relevant hosting-level security concerns.
-
Address identified software vulnerabilities.
-
Rotate potentially compromised credentials.
-
Implement appropriate security hardening.
-
Perform follow-up malware scanning.
-
Test essential website functionality.
-
Document findings and unresolved concerns.
-
Establish ongoing security monitoring.
How Much Does WordPress Backdoor Removal Cost?
The cost of WordPress backdoor removal depends on the severity of the compromise, the complexity of the website and the amount of manual investigation required.
A straightforward malicious file removal may require less work than a recurring infection involving multiple software components, compromised accounts and hosting-level security concerns.
HostInsightPro offers a standard WordPress malware removal and security hardening package for $499 per eligible website.
Our package includes:
| Service deliverable | Included |
|---|---|
| Initial security assessment | Yes |
| Website and database backup | Yes |
| WordPress malware scanning | Yes |
| Manual suspicious file investigation | Yes |
| Common backdoor investigation | Yes |
| Removal of identified malicious content | Yes |
| Database security review | Yes |
| Administrator account review | Yes |
| Known vulnerability assessment | Yes |
| WordPress security hardening | Yes |
| Post-cleanup verification | Yes |
| Final written security report | Yes |
Complex server-level compromises, multiple infected websites and advanced digital forensic investigations may require a separate assessment.
For more information about pricing and available cleanup options, read our WordPress malware removal cost guide.
When Should You Hire a WordPress Backdoor Removal Specialist?
Professional assistance may be particularly valuable when:
- Malware returns after repeated cleanup attempts.
- Automated security scans fail to explain suspicious behavior.
- Unauthorized administrator accounts continue appearing.
- You cannot confidently distinguish malicious PHP from legitimate code.
- Your website contains customized software.
- Multiple websites appear to be compromised.
- Your hosting provider has suspended your account.
- Your website generates important business revenue.
- You are concerned about damaging legitimate files or database content.
For incidents involving suspected theft of customer information, compromised payment processing or extensive server-level access, seek appropriately qualified incident-response assistance.
A standard website cleanup is not a substitute for a full forensic investigation or any legally required breach response.
Frequently Asked Questions
What is a WordPress backdoor?
A WordPress backdoor is an unauthorized mechanism that allows access to a compromised website outside its intended security or authentication procedures.
How do I find a hidden backdoor in WordPress?
Use malware scanning, software integrity verification, suspicious file investigation, database review and administrative access analysis. Investigate relevant findings in the context of your website’s normal behavior.
Can Wordfence detect WordPress backdoors?
Wordfence can identify many known malicious files and suspicious software modifications. However, no scanner guarantees detection of every backdoor or unauthorized access mechanism.
Is every unfamiliar PHP file a backdoor?
No. Legitimate WordPress software uses many PHP files. Compare suspicious components against trusted software and investigate their actual functionality before removing them.
Does base64_decode() mean a PHP file contains malware?
No. Base64 decoding is a legitimate programming function. Its presence alone does not establish that a file is malicious.
Can a WordPress backdoor survive password changes?
Yes. Changing a WordPress password does not automatically remove existing malicious files or every other unauthorized access mechanism.
Can a WordPress backdoor survive reinstalling WordPress?
Potentially. Reinstalling WordPress core files does not necessarily address compromised plugins, themes, database content or hosting configurations.
Can a backdoor exist even if my website looks normal?
Yes. Some unauthorized access mechanisms do not immediately affect visible website content.
Can a firewall remove an existing WordPress backdoor?
A firewall primarily helps filter traffic and reduce exposure to certain threats. It does not automatically establish that existing malicious components have been removed.
Will changing hosting providers remove a backdoor?
Not necessarily. Migrating compromised files or database content may transfer the infection to the new hosting provider.
How long does WordPress backdoor removal take?
The timeframe depends on the complexity of the infection, available access, affected software and amount of investigation required. An initial assessment is necessary to establish a realistic timeframe.
Can WordPress backdoors be removed permanently?
Identified malicious components can be removed and discovered security weaknesses can be addressed. However, no security provider can guarantee that a website will never experience another compromise.
Should I delete my entire website if I discover a backdoor?
Not necessarily. Controlled remediation or restoration from a verified clean backup may preserve legitimate content. A clean rebuild may be appropriate in more complex cases.
Why does malware keep returning after a clean Wordfence scan?
A clean scan may coexist with unresolved vulnerabilities, compromised credentials, database issues or malicious components outside the scanner’s detection capabilities. Further investigation may be necessary.
Get Professional WordPress Backdoor Removal
If your WordPress website continues experiencing malware infections, unauthorized modifications or recurring malicious redirects, removing visible symptoms may not be enough.
HostInsightPro offers professional WordPress malware investigation, cleanup and security hardening for a standard one-time price of $499 per eligible website.
Our service is designed to investigate common persistence mechanisms, remove identified malicious content, address discovered security vulnerabilities and verify essential website functionality.
You also receive a final written security report documenting the work performed, relevant findings and recommended next steps.
Stop repeatedly cleaning the same infection. Investigate the underlying compromise.
Request professional WordPress malware removal today.
When contacting us, provide your website URL, a description of the recurring security problem and any relevant malware scan results.
Do not submit passwords, database credentials or authentication keys through your initial inquiry.

