Look for the signs of WordPress malware in the files, the database, the accounts, the cron tasks, the redirects and the logs. The priority is to restore a situation under control without wiping the traces useful to the diagnosis.

How do I recognise WordPress malware?
An infection is not resolved by deleting the visible file alone. You have to contain the incident, identify the point of entry, clean out every persistence mechanism, renew the secrets and then watch for files or accounts reappearing. Start by noting when it appeared, the most recent changes, the URLs concerned and the behaviour observed.
Test the site from a browser with no session, on mobile, and by arriving from a Google result: many infections only fire for certain visitors, or for crawlers. Note the suspicious URLs, the redirects you see and the Search Console warnings.
Files changed recently for no reason
New users or tasks you do not recognise
Slowdowns, pop-ups or redirects
One signal alone does not prove the cause: “Files changed recently for no reason” can come from “A vulnerable plugin, or one downloaded from an untrustworthy source” just as easily as from “Stolen admin or FTP credentials”. Look for at least two findings that agree before you apply a lasting fix.
The technical signs of an infection
Malware rarely gives itself away with a clear message. The signals are indirect: recent PHP files in wp-content/uploads, files with random names, code obfuscated with eval, gzinflate or base64_decode, unknown scheduled tasks in WP-Cron, or unusual outbound email your host reports.
Sort the files by modification date to spot the ones that changed outside your updates: over SSH, find with the -mtime option lists files changed within a given window. Then line those dates up with the access logs to find the suspicious POST requests.
Scanning without relying on the scanner alone
Server-side scanners and security plugins detect known signatures, but not always code edited by hand. The official checksums, through wp core verify-checksums and wp plugin verify-checksums, reveal any change to a core file or to a plugin from the directory.
Check the database too: autoloaded options you do not recognise, scripts inside post content, user accounts added recently. An external scanner sees only the public pages; it rounds the analysis out, but on its own it cannot tell you a site is clean.
Causes to check
For WordPress malware, the 4 causes below are ranked from the commonest to the rarest. Test the one matching the site’s most recent change first, one at a time.
A vulnerable plugin, or one downloaded from an untrustworthy source
Stolen admin or FTP credentials
A neighbouring server or hosting account compromised
An old back door left behind after a clean-up
Search Console's Security Issues report, the server access logs, the user list, the recently changed files and the scheduled tasks all give precise dates. Keep that trail: it is how you find the way in.
A good fix does not merely make the symptom disappear. It explains why the problem appeared and how to check that it does not come back.
Precautions before starting
Take a full copy of the files and the database, then keep it aside as evidence: it must not serve as a restore point until the infection is understood.
Then change the administrator, FTP, database and hosting passwords, and rotate WordPress's security keys, to close the doors the attacker could use again.
Check a suspicious page quickly
A useful first signal: the page's HTTP status, redirects and robots tags, fetched live from our servers.
The check queries this address directly from our servers. No data is kept.
Has a sign of compromise been confirmed?
Request a managed clean-upDiagnosis and fix
| Phase | Objective | A mistake to avoid |
|---|---|---|
| Observe | Reproduce it and gather the evidence | Changing several settings before you have a baseline |
| Isolate | Confirm the component or the rule responsible | Deleting files without keeping a copy |
| Fix | Apply the smallest documented change | Restoring a version that still contains the same cause |
| Validate | Test the whole journey and monitor it | Concluding from the home page loading alone |
How do I resolve WordPress malware step by step?
The 4 steps below tackle WordPress malware from the least intrusive to the heaviest. After each change, repeat the same test; if nothing changes, go back to the previous state before moving on to the next step.
- 01
Step 1
Make a time-stamped copy before cleaning anything.
- 02
Step 2
Compare the core against the checksums and list the recent changes.
- 03
Step 3
Inspect uploads, mu-plugins, wp-config, cron, users and the autoloaded options.
- 04
Step 4
Have the site scanned from outside and line the findings up with the server logs.
compare two analyses taken a while apart, to spot a reinfection.
Validate the resolution
After the clean-up, scan the files and the database again, review the administrator list, and test the redirects from several devices and from Google. Where Search Console reported a problem, request the review only once those checks are done.
Validation checks
Schedule a second integrity check a few days later: a back door you missed can reinfect the site after a clean-up that looked successful.
Prevent a recurrence
Prevention has to answer the cause you identified. For WordPress malware, the first measure is “Install from official sources”; note too the signal that would have shown the incident sooner, and who is responsible for watching for it.
Install from official sources
Apply least privilege
Detect file changes
Keep backups off the server
Delete the plugins you do not use, keep administrator accounts few, turn on two-factor authentication and monitor file changes. Security rests on those layers together, not on a single plugin.
Frequently asked questions about WordPress malware
Is a security plugin enough to detect malware?
It detects known signatures, but not all altered or obfuscated code. Comparing files against the official checksums and reviewing recently changed files fill the gap effectively.
Where do malicious files most often hide?
In wp-content/uploads, which should hold no PHP files at all, in wp-content/mu-plugins, in unused plugin or theme folders, and sometimes in the root under names that imitate WordPress files.
Can an online scanner confirm my site is clean?
No. It only sees the public pages and the code sent to the browser. Server-side malware, a back door or an added administrator account stay invisible to it.
How do you check the fix will hold?
Compare two scans taken some time apart to catch a reinfection. Check the accounts and sessions after rotating the secrets. Check the Google and browser warnings. Then watch the logs, the alerts and the relevant metrics for several days.
How to resolve it
If WordPress malware persists after these steps, we can pick the diagnosis up again from your logs and your access details, without acting blind on the site.
Get a diagnosisSummary with an AI
Choose your assistant: the request is prefilled where that is possible, and always copied, ready to paste if need be.

































🍪