A malware scan on a WordPress site is not a one-shot tool you run when something feels off. It’s a baseline you take while the site is known-clean, and an automated diff you run continuously against that baseline. The first time a plugin-based scanner finds something is rarely the first time the file appeared.
What’s happening
WordPress malware in 2026 mostly falls into three buckets: SEO spam injection (PHP code modifying wp_options and rendered HTML), credit-card skimmers on WooCommerce checkout (JS injection on wp-content/themes/), and backdoor uploaders (single-file .php scripts dropped into wp-content/uploads/ or core directories). A scanner that only checks one of these surfaces will miss the other two.
How to verify
On a managed environment we run two layers in parallel: a server-side scanner that reads the filesystem directly, and a WordPress-level scanner that reads the database and option table.
Server-side, ImunifyAV (bundled with cPanel-aligned NOCs) gives you a baseline:
imunify-antivirus malware list --type=on-demand --limit=50
For a one-off scan from outside that platform, Linux Malware Detect plus ClamAV on demand:
maldet -a /home/<user>/public_html
clamscan -ri /home/<user>/public_html --max-filesize=50M --max-scansize=200M
WordPress-side, check the option table and active plugin code:
wp option get siteurl
wp option get home
wp db query "SELECT option_name FROM wp_options WHERE option_value LIKE '%base64_decode%' OR option_value LIKE '%eval(%';"
wp plugin list --status=active --fields=name,version,update
A siteurl or home value that doesn’t match your domain is a giveaway. So is a row in wp_options containing obfuscated PHP — legitimate options never store executable code.
The fix
- Quarantine first, clean second. Move the suspect file out of the document root, do not delete it. You need it for the post-mortem.
- Replace, don’t patch. WordPress core, plugins, and themes get restored from the upstream source (official .zip or your Git mirror), not edited to remove the malicious lines. Hidden additions in unrelated files are normal in real infections.
- Rotate every secret.
wp-config.phpsalts, database password, any application password issued before the infection window. - Re-baseline. Once you believe the site is clean, take a fresh filesystem hash baseline (
find . -type f -name '*.php' -exec sha256sum {} \;) and store it off-host. Future scans diff against this, not against a generic signature database. - Block the regression. Add a webserver rule disabling PHP execution under
wp-content/uploads/and review the plugin inventory for any plugin you don’t actively need.
That baseline-and-diff loop is exactly the kind of thing we run continuously for enterprise WordPress operations sites — so the first time something changes, an engineer sees it, not a scheduled scanner two weeks later.