Home · Working with us
A sample cleanup report
This is an example. The website, business and people below are made up, and some details are simplified. The problems in it are real ones we see on hacked WordPress sites, and real reports follow this same format.
Incident report: harbourbakery.example
Summary
Jamie contacted us after two customers said the website asked them to "press Windows + R" to prove they were human, and after Google Search Console warned about spam pages. The site looked normal to Jamie.
We found three separate problems: a fake CAPTCHA aimed at Windows visitors, about 1,800 casino spam pages shown only to Google, and a hidden administrator account. All three were removed. The most likely way in was an outdated slider plugin with a published security flaw.
- Status
- Clean
- Likely entry point
- Outdated plugin (likely)
- Visitors affected
- Windows, first visit only
- Google review
- Requested 15 Oct
What we found
| # | Finding | Where | Severity |
|---|---|---|---|
| 1 | Fake CAPTCHA (ClickFix) script added to the top of every page. Shown once per browser, to Windows visitors only. It copied a PowerShell download command to the visitor's clipboard. | A fake must use plugin: wp-content/mu-plugins/wp-cache-helper.php | High |
| 2 | About 1,800 casino pages served only when Googlebot visits (cloaking), plus a fake sitemap listing them. | Code in the theme's functions.php, page content stored in a database option | High |
| 3 | An administrator account named wpsupport, hidden from the Users screen by code. | Database, plus a filter in the same fake plugin | High |
| 4 | A file manager backdoor that let the attacker upload files from a browser. | wp-content/uploads/2024/03/.cache/index.php | High |
| 5 | Leftover files from the attack (cached fake CAPTCHA page, visitor logs). | wp-content/uploads/: one .html, two .json and one .txt file | Medium |
| 6 | Slider plugin four versions out of date, with a publicly known upload flaw fixed in a later version. | Plugins | Medium |
| 7 | Three plugins installed but switched off and no longer used. | Plugins | Low |
How it likely got in
Confidence: likely, not confirmed. The hosting access logs show requests to the slider plugin's upload handler on 2 October, a few minutes before the backdoor file (finding 4) was created. That plugin version has a publicly known flaw that allows this kind of upload. The logs only go back 14 days, so we can't rule out an earlier way in.
We found no sign that the WordPress, hosting or database passwords were used by anyone else, but we've recommended changing them anyway.
What we changed
- Took a full backup of files and database before making any changes (kept for 30 days, then deleted).
- Removed the fake must use plugin, the backdoor, and the leftover files in uploads.
- Removed the cloaking code from
functions.phpand deleted the spam content and fake sitemap from the database. - Deleted the hidden
wpsupportadministrator. - Reinstalled WordPress core, all 19 plugins and the theme from clean official copies. Your settings and content are unchanged.
- Updated the slider plugin and deleted the three unused plugins (with your OK).
- Logged out every user, changed the WordPress security keys, and cleared the site cache and Cloudflare cache.
- Requested a review in Google Search Console under Security issues.
Checked from the outside afterwards
| Check | Before | After |
|---|---|---|
| Homepage as a Windows Chrome visitor | Fake CAPTCHA script | Clean |
| Homepage as Googlebot | Casino links injected | Same as visitors |
| Sitemap | Spam sitemap listed | Only real pages |
| WordPress core files vs official checksums | 2 modified | All match |
| Rechecked the next day | Still clean |
What we'd do next
Do this week
- Change the passwords for your hosting account, SFTP and database (we've already changed the WordPress keys).
- Turn on two factor login for both WordPress administrators.
- Remove the temporary admin account you created for us.
Worth doing soon
- Turn on automatic updates for plugins, or check them every week.
- Ask your host to keep access logs for longer than 14 days. It makes any future investigation much more certain.
About your visitors
For about 12 days, some Windows visitors were shown the fake CAPTCHA. Some may have run the command. We'd suggest a short, honest note to your customer email list suggesting they run a malware scan and change important passwords. We're happy to help you word it.
The spam pages will drop out of Google over the next few days to a few weeks. Google decides the timing. We'll check Search Console with you on 22 October.
SiteUnhack · hello@siteunhack.com · Example report, not a real customer.