How to Check if Your WordPress Site Is Hacked — and Scan It for Malware Free
Worried your WordPress site is hacked? Here are the exact checks a forensic analyst runs to find malware — plus a free, read-only tool that automates all of them.
If your WordPress site has started redirecting visitors, serving pop-ups you never created, sending spam, or getting flagged by Google as “deceptive,” there’s a good chance it has been compromised. The reassuring part: you can confirm it yourself in a few minutes, for free, without editing a single file on your server. This guide walks through the exact checks a forensic analyst runs — and the free tool that automates every one of them.
Warning signs your WordPress site is hacked
Malware usually leaves fingerprints. If you notice any of these, treat the site as compromised until you have proven otherwise:
- Visitors are redirected to spammy or adult sites, often only on mobile or only from Google.
- Google Search Console shows a “Security issue” or your pages are marked “This site may be hacked.”
- Your host suspended the account or emailed you about outbound spam or abuse.
- New administrator accounts you don’t recognise appear under Users.
- Unknown PHP files show up in the site root, in
wp-admin/, inwp-includes/, or insidewp-content/uploads/. - Pages load strange scripts, or your
wp-config.phpand.htaccesschanged without you touching them.
Where WordPress malware actually hides
Attackers rarely leave an obvious “virus.” They hide persistence so a quick clean-up misses it and the site re-infects itself days later. The usual hiding spots:
- Web shells & backdoors — small PHP files that let an attacker run commands or upload files again later. They often use obfuscated code and functions like
eval()fed from request input. - Tampered core files — a single modified file inside
wp-admin/orwp-includes/that looks official but isn’t. - Injected uploads — executable PHP dropped into
wp-content/uploads/, where only images belong. - Rogue admin users and scheduled tasks — so access survives a password reset.
How to scan WordPress for malware (free, step by step)
You can verify a site’s integrity with three forensic checks. None of them require paying for anything, and all three are read-only — they never change your site.
1. Verify your WordPress core files
WordPress.org publishes an official checksum (a unique fingerprint) for every file in every release. Comparing your installed core files against that manifest instantly reveals any file that was modified, is missing, or doesn’t belong — even on a site that is already infected. This is the fastest way to catch core-level tampering.
2. Scan every PHP file for web-shell indicators
Beyond core files, your plugins, themes and uploads need a heuristic sweep: reading each PHP file and flagging the patterns attackers rely on — encoded payloads passed to eval(), request input invoked as a function or shell command, function names hidden by string tricks, known shell markers and packed/obfuscated blobs. A good scanner scores each file and points you to the exact line.
3. Take a file baseline and watch for changes
Once a site is known-clean, fingerprint every file with SHA-256 and store that baseline. After any incident — or just on a schedule — re-check to see exactly which files were added, modified or removed. This is how you catch a re-infection the moment it lands.
The free tool that does all three: Forvault Security
Running those checks by hand is slow and error-prone. Forvault Security is a free plugin on WordPress.org that automates all three from your dashboard:
- Malware Scan — heuristic web-shell and backdoor detection across every PHP file, scored with exact file and line numbers.
- Core Integrity — verifies every core file against the official WordPress.org checksums and flags unknown files in core folders.
- File Baseline — SHA-256 fingerprinting with added / modified / removed change detection.
Every scan is strictly read-only and runs only when you click a button. Forvault never edits, deletes or executes your files — so it’s safe to run on a live site, even one you suspect is already compromised.
You can install it free from WordPress.org in under a minute.
What to do if the scan finds something
Don’t panic, and don’t start deleting files blindly — you can break a working site or destroy evidence. Work methodically:
- Take a full backup of the site as-is (files + database) so you keep the evidence.
- Review each flagged file at the line Forvault points to. A score is a signal to investigate, not an automatic verdict.
- Replace tampered core files by reinstalling WordPress from the official source.
- Remove confirmed malicious files, rotate all passwords and secret keys, and delete any admin account you don’t recognise.
- Re-scan, then take a fresh baseline so any future change stands out immediately.
If you want response built in — one-click quarantine, scheduled scans, critical-file watching and live alerts when a new admin or changed file appears — the optional Premium add-on turns detection into response. And if the site is actively infected and you’d rather have it handled for you, our team offers a done-for-you malware cleanup.
How to prevent the next infection
- Keep WordPress core, plugins and themes updated — outdated code is the most common entry point.
- Remove plugins and themes you don’t use (deactivated is not enough — delete them).
- Use strong, unique admin passwords and enable two-factor authentication.
- Block PHP execution in
wp-content/uploads/. - Keep a clean baseline and re-check it regularly, so you find changes in hours, not weeks.
Frequently asked questions
Can I check for malware without a plugin?
Yes — you can manually compare core checksums and grep files over SSH — but it’s slow and easy to miss obfuscated code. A heuristic scanner like Forvault does the same work in minutes and shows you the exact lines.
Will scanning break my site?
No. Forvault’s scans are read-only: it reads file contents to analyse them but never edits, moves, deletes or executes anything. It’s safe on a live, production site.
Is Forvault Security really free?
Yes. All three scanners are complete and free on WordPress.org, with no trial timers or locked features. The optional Premium add-on adds response and monitoring tooling, but you never need it to scan.
Scan your site now
The fastest way to know whether your WordPress site is clean is to run the checks. Install Forvault Security free from WordPress.org →