French flag Hosted and supported in France A human reply within 12 hours 06 65 13 24 36
← All articles WordPress & security7 min read

How do you tell whether a WordPress site has malware?

Look for the signs of WordPress malware in the files, the database, the accounts, the cron jobs, the redirects and the logs.

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.

Illustrated diagnosis: detecting WordPress malware
Diagnosing WordPress malware: symptoms, causes, fixes and checks.

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.

01 · Signal to check

Files changed recently for no reason

02 · Signal to check

New users or tasks you do not recognise

03 · Signal to check

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.

01 · Possible cause

A vulnerable plugin, or one downloaded from an untrustworthy source

02 · Possible cause

Stolen admin or FTP credentials

03 · Possible cause

A neighbouring server or hosting account compromised

04 · Possible cause

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.
An animated process to understand detecting WordPress malware
The subject in motion: observe the facts, apply an action in proportion, then check the result.

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.

Free Host by French tool

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-up
ORDER OF WORK

Diagnosis and fix

PhaseObjectiveA mistake to avoid
ObserveReproduce it and gather the evidenceChanging several settings before you have a baseline
IsolateConfirm the component or the rule responsibleDeleting files without keeping a copy
FixApply the smallest documented changeRestoring a version that still contains the same cause
ValidateTest the whole journey and monitor itConcluding 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.

  1. 01

    Step 1

    Make a time-stamped copy before cleaning anything.

  2. 02

    Step 2

    Compare the core against the checksums and list the recent changes.

  3. 03

    Step 3

    Inspect uploads, mu-plugins, wp-config, cron, users and the autoloaded options.

  4. 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.

01 · Preventive measure

Install from official sources

02 · Preventive measure

Apply least privilege

03 · Preventive measure

Detect file changes

04 · Preventive measure

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.

A practical diagram about detecting WordPress malware
A marker specific to this article: three steps to turn reading into a decision you can verify.
FREQUENTLY ASKED QUESTIONS

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.

ON TO YOUR OWN CASE

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 diagnosis

Summary with an AI

Choose your assistant: the request is prefilled where that is possible, and always copied, ready to paste if need be.

ChatGPTSummarise the article PerplexitySummarise the article ClaudeSummarise the article CopilotSummarise the article MistralSummarise the article GeminiSummarise the article
Devsource video

The key point in one minute

A short piece by Maxime Guinard summarising the essentials of this page. A dedicated watch page lets you follow it properly.

DEVSOURCE VIDEO • 32 S

WordPress malware - Devsource

WordPress malware means identifying the way in, cleaning the files, changing the credentials and checking the infection does not come back.

Watch the video
THEY TRUSTED US

Client references

See all case studies
Montreuil-sur-Mer logo Data Labcenter logo Sofradom logo 70 Football logo Afrique sur 7 logo CyberJay logo Élisa Reddet logo Foire du Trône logo Goodyvest logo Kincy logo Lhotellier logo Audrey Mégelé du Bourg logo MYF logo
Sine Qua Non logo Make It Happen logo Sonance Audition logo ACME logo Beluvia Bar Store logo Desaltera logo Fête des Loges logo GD Menuiseries logo 3G Immo logo Lavish logo Maison du Feu logo Mieux Fiscal logo MYF Tea logo
Go deeper

Articles to go further on the detecting WordPress malware guide.

See all articles
Illustrated diagnosis: WooCommerce basket empty or stuck
WooCommerce troubleshooting7 min read

WooCommerce basket empty or stuck: the fix

Fix a WooCommerce basket that empties, will not refresh or loops, by checking the session, the cookies, the cache, the theme and the cart fragments.

Illustrated diagnosis: Stripe for WooCommerce has stopped working
WooCommerce troubleshooting7 min read

Stripe for WooCommerce broken: the diagnosis

Get Stripe working again on WooCommerce by checking the live and test keys, the webhooks, the events, authentication, the errors and compatibility.

What they say about working with us

Google reviews about the support we provide for the Detecting malware in wordpress. page

Google logo 4,8/5 243 verifiable Google reviews Read the reviews
★★★★★
“A WordPress pro. His skills, his grasp of what we needed and his clear explanations made the whole project run smoothly.”
Nicolas Le Couteur Review published on Google
★★★★★
“Always available to answer questions, very professional. Every technical problem we ran into was resolved.”
Cuong Doan Review published on Google
★★★★★
“A professional who listens to his clients. Thank you for the commitment and the time spent on our project.”
Sakina Sedkaoui Review published on Google
★★★★★
“Someone you can trust, who understood my needs straight away and put an effective strategy in place.”
Vincent Loustalot Review published on Google
★★★★★
“Very attentive, motivated and able to propose tailored SEO strategies. The quality of the work is remarkable.”
Marine Mongodin Review published on Google
★★★★★
“Quality work, delivered on time. Maxime is responsive, suggests relevant adjustments and delivers careful work.”
Olivier Opron Review published on Google
★★★★★
“Spot on, perfect work, nothing to fault!”
Robin Gomez Review published on Google
★★★★★
“Maxime adapts very quickly, even to the trickiest technical situations. The result is always there.”
Philippe Bertieaux Review published on Google
★★★★★
“Impeccable work from start to finish, highly responsive and flawless quality.”
Alex Houillon Review published on Google
★★★★★
“The site is fast and visually very good. Maxime also helped us build our SEO strategy.”
Lois Guillermond Review published on Google
★★★★★
“An exceptional developer.”
Honoré Comlan Koumondli Review published on Google
★★★★★
“Maxime showed great professionalism and great creativity in helping us build our charity’s website.”
Julien-Benoit Birman Review published on Google
★★★★★
“A solid understanding of search optimisation when building a WordPress site.”
JM Review published on Google
★★★★★
“Maxime is responsive, a good teacher, and anticipates what is needed to get the strategy right.”
Romain Bergé Review published on Google
Your site deserves better

Let’s talk about your hosting

Tell us about your project. You get a clear recommendation, no jargon and no commitment.

Get my recommendation Reply within 12 hours • Migration handled • Free quote Active infrastructure
Google logo 243 Google reviewsVerifiable public reviews
Find my plan