In this guide
The free toolkit
These tools cost nothing and cover most of what a cleanup needs:
| Tool | What it’s good for |
|---|---|
| Wordfence (free plugin) | Scanning files against known malware, comparing core and plugin files with the originals, repairing modified files |
| Sucuri SiteCheck | A quick outside check: visible malware, spam, blocklist status |
| Google Search Console | What Google found, sample URLs, and review requests to remove warnings |
| WP-CLI (if your host has SSH) | wp core verify-checksums, wp plugin verify-checksums --all, reinstalling core, listing users and cron events |
| wptriage (open source, if you have SSH) | A read-only first pass: core, plugin and theme files compared with the originals, PHP in uploads, .htaccess rules, unknown admins and injected options |
| phpMyAdmin (in your hosting panel) | Searching the database for injected scripts and unknown admins |
| Your hosting file manager or SFTP | Finding and replacing files; checking uploads for PHP files |
| VirusTotal | Checking whether security vendors still flag your site |
The free cleanup, in short
- Back up the infected site.
- Change hosting and SFTP passwords.
- Scan with Wordfence and note what it finds.
- Reinstall WordPress core and all plugins and themes from clean sources.
- Remove PHP files from
uploadsand other unexpected files. - Check the database for scripts and unknown admins.
- Check
.htaccess, cron jobs and other sites in the account. - Change all WordPress passwords, revoke application passwords, reset the security keys.
- Update everything and find the way in.
- Request a Google review if there was a warning.
Every step is explained, with commands, in my step-by-step guide to fixing a hacked WordPress site.
Where free stops working
Free tools handle known malware in files well. They struggle with:
- malware that keeps coming back, because something reinstalls it;
- infections in the database and spam shown only to Google;
- finding the entry point, which no scanner does for you;
- sites you can’t log into, or that are suspended;
- online stores, where a missed card skimmer has real consequences.
When free becomes expensive
Free is free until it isn’t. Watch out for:
- Repeated cleanups. If you’ve cleaned the same infection twice, the third attempt with the same tools rarely goes differently.
- Lost revenue. Every day with a Google warning, a suspended site or disapproved ads costs money.
- Accidental damage. Deleting the wrong files, or a database edit that corrupts settings, can break a site badly.
My advice: if the infection is simple and you’re comfortable with the tools above, give it a try. Many owners clean their own sites successfully. Set yourself a limit, though: if it’s not clean after an afternoon, or it comes back, that’s when a professional cleanup ($95 with me) usually costs less than more of your time.