Practical security advice for website owners
Why WordPress Malware Keeps Coming Back: Backdoors and Reinfection

Security guidance · Checked 31 October 2026
In this guide
The site is cleaned, the warning disappears, and a few days later the same redirect or suspicious file returns. Repeating the same deletion may provide temporary relief, but it leaves the most important question unanswered: what is recreating the change?
A recurring infection can involve persistence inside the site, a still-exposed component, compromised access or another affected site in the hosting account. The response needs to investigate those possibilities rather than assume one named “backdoor” explains every case.
What a website backdoor means in practice
A backdoor is an unauthorised way to retain or regain access. It may appear as an altered component or another access mechanism, but its appearance alone is not a reliable diagnosis. A suspicious filename is a lead to investigate, not a verdict.
The objective is to identify what the code or access path does, whether it is authorised and how it interacts with the rest of the installation. Deleting files based only on an unfamiliar name can break legitimate custom functionality.
Keep any confirmed malicious sample private and do not execute it to “see what happens.” An incident copy and an authorised investigation are safer than experimenting on the public site.
Compare the timeline of removal and recurrence
Record when the affected item was removed, when it returned and what changed between those events. Include deployments, scheduled tasks, administrator logins and updates that are available within the agreed investigation scope.
Timestamps are useful clues, but they are not proof of origin. Correlate them with other evidence and note where logs are missing or retention is too short.
If the same file returns immediately, that is a different observation from an unrelated spam page appearing a month later. Do not collapse distinct events into a single unsupported story about the attacker.
Review more than ordinary plugin files
An authorised maintainer may need to consider WordPress core, active and inactive plugins, the active theme, must-use plugins, uploads, configuration files, database content and scheduled activity. The hosting account may also contain other applications.
Review administrative users, application integrations and access arrangements alongside code. Cleanup can be undone if an attacker still controls a hosting account or a privileged session.
Use a clear boundary for the work. A single-site WordPress cleanup is not automatically a complete server investigation. Where evidence points beyond the website, coordinate with the host or the responsible system administrator.
Use integrity checks as one source of evidence
For an installation you are authorised to inspect, WP-CLI provides read-only comparison tools:
wp core verify-checksums
wp plugin verify-checksums --all
The core command compares files against the official WordPress checksums. The plugin command compares supported plugin files against WordPress.org’s records.
A mismatch needs interpretation; it may reflect a legitimate custom modification or an unauthorised change. Missing checksums for premium or custom components do not mean those components passed inspection. A WordPress developer guide discusses those coverage limits.
Passing a core comparison does not review your entire database, every upload, hosting configuration or all account access. Keep the actual scope of each check in the report.
Close the access path as well as removing content
A useful recovery plan combines cleanup with the appropriate component updates, access review and configuration changes. Confirm that patched releases actually reached the affected installation, particularly if deployment tools can restore an old vulnerable package.
Coordinate credential changes and session invalidation with the recovery work. If a secret may have been exposed, assess where it is used before rotating it and retesting dependent services.
If the original entry point cannot be established, say so. The handover can still explain the evidence found, the changes made and the remaining uncertainty without inventing a precise attack technique.
Retest over an agreed follow-up period
Recheck the affected behaviour and the files or settings that previously changed. Agree who reviews logs and what triggers escalation. Follow-up support for a delivered cleanup is different from continuous monitoring or unlimited incident response.
Keep the incident record usable: findings, actions, versions, tests, unresolved items and the owner of each next step. A customer should be able to distinguish “this redirect no longer occurs in our test” from “the entire hosting account has been comprehensively assessed.”
If you need help with a recurring incident, describe the previous cleanup and what returned when requesting WordPress security recovery from NithuDev. Complex cases need an agreed investigation scope before work begins.
Frequently asked questions
Does recurring malware prove the first cleaner missed a backdoor?
Not necessarily. There may be persistence, an unpatched entry point, compromised access or a separate incident. Review evidence before assigning a cause.
Can a clean scan guarantee there is no backdoor?
No. A scan has a particular coverage and detection method. Combine it with appropriate integrity, access and behaviour checks, and explain its limits.
Is deleting all inactive plugins enough?
Reducing unused software can be sensible maintenance, but it is not a substitute for investigating the mechanism that recreated the problem.
Published by NithuDev. Contact Nithu / Suthakaran Nithursan, website developer and security recovery specialist. About Nithu. Featured artwork is an AI-generated illustration for this guide, not a photograph of a client incident or security evidence.