In this guide: How to scan your website for malware with free tools: signs of infection, online scanners, server-side scanning, reading scan results, and next steps if…
Malware doesn’t always announce itself. Many infections are designed to hide from site owners while redirecting visitors or injecting spam into search results. Regular scanning helps you catch problems early — before Google flags your site or customers lose trust.
Signs of infection
Scan immediately if you notice:
- Visitors being redirected to other sites (sometimes only on mobile or from Google).
- Spam pages or strange titles when searching
site:yourdomain.com in Google.
- Security warnings in browsers or Google Search Console.
- Unknown admin users in WordPress.
- Unfamiliar files, especially PHP files in
/wp-content/uploads/.
- Sudden slowdowns or high CPU usage.
- Your host warns you about malware or suspends your account.
- Emails bouncing or going to spam (your server may be sending spam).
Learn how infections happen in What Is Malware?.
Free online scanners
Online (remote) scanners check your public pages without accessing your server.
- Sucuri SiteCheck: checks for known malware, blacklisting, injected spam, and outdated software.
- Google Safe Browsing site status: shows whether Google currently considers your site unsafe.
- VirusTotal (URL scan): checks your URL against many security vendors.
- Other blacklist checkers: confirm your domain and IP aren’t listed on spam or malware blocklists.
Limitation: remote scanners only see what’s publicly visible. Backdoors and hidden files on your server won’t show up. Use them as a first check, not the only check.
Server-side scanning
Server-side scanners inspect your actual files and database.
WordPress security plugins
- Wordfence (free): scans core files, themes, and plugins against official versions and known malware signatures.
- Other security plugins (Solid Security, MalCare, AIOS, Jetpack Scan) offer scanning with varying features — see Best WordPress Security Plugins Compared.
Hosting scanners
- Many hosts include malware scanning (e.g., Imunify360 or proprietary tools). Check your control panel.
Manual checks via SSH (advanced)
# Recently modified PHP files (last 7 days)
find . -name "*.php" -mtime -7
# PHP files in uploads (should normally be none)
find wp-content/uploads -name "*.php"
# Common suspicious functions (review results carefully)
grep -rl "eval(base64_decode" .
Also check:
- WordPress users for unknown administrators.
- Scheduled tasks (cron) for unfamiliar entries.
- The database for injected scripts in posts or options (search for
<script or unfamiliar domains).
.htaccess files for unexpected redirect rules.
- WordPress core integrity with WP-CLI:
wp core verify-checksums.
Reading scan results
Scanners report different severity levels:
- Critical / Malware detected: known malicious code. Act immediately.
- Modified core files: WordPress core files differ from the official versions — often a sign of infection (unless you intentionally edited them, which you shouldn’t).
- Unknown files in core directories: files that shouldn’t exist there.
- Suspicious code: patterns often used by malware, but sometimes legitimate (e.g., obfuscated code in some premium plugins). Investigate before deleting.
- Outdated software or known vulnerabilities: not an infection, but a risk to fix.
Tips:
- Compare against clean copies: download the same version of a plugin from its official source and compare files.
- Don’t delete blindly: removing legitimate files can break your site. Back up first.
- Look for patterns: infections often appear in several places at once.
Next steps if infected
- Don’t panic — and don’t ignore it.
- Back up the infected site (for investigation) and store it separately.
- Change all passwords: hosting, FTP/SFTP, database, WordPress users, and email.
- Clean or restore: restore a clean backup from before the infection, or clean files manually.
- Update everything and remove vulnerable or nulled plugins.
- Rescan to confirm the site is clean.
- Request a review in Google Search Console if your site was flagged.
- Harden your site to prevent reinfection.
Full walkthrough: How to Fix a Hacked WordPress Site Step by Step. If you’re not comfortable doing it yourself, professional cleanup services and many hosts can help.
Build a scanning routine
- Weekly: automated server-side scan with email alerts.
- Monthly: remote scan and blacklist check.
- After incidents or major changes: full scan.
- Always: monitor Search Console’s Security issues report.
Further reading: WordPress Advanced Administration Handbook
Key Takeaways: Scan Your Website for Malware
- Watch for redirects, spam search results, unknown users, and host warnings.
- Use online scanners for a quick public check.
- Use server-side scanners to inspect files and database.
- Investigate results carefully and back up before removing anything.
- If infected, change passwords, clean or restore, update, and request a review.