Hacked WordPress Site: the Vendor Said It Was Clean, We Found Four Live Backdoors

In August we took over an emergency for a Melbourne client: a hacked WordPress site that had already been cleaned by a well-known international security vendor. At 00:45 the vendor replied: “everything is looking clean now.”

At that same moment, the site still had four live backdoors capable of handing an attacker full admin access, and seven rogue administrator accounts.

This article is the post-mortem: what was actually still there when the report said “clean”, why ordinary login security does nothing against this kind of backdoor, and the four things you must confirm yourself after receiving any “cleanup complete” report.

The client is anonymised and so is the vendor. The point is not to name anyone. It is to make one thing clear: a cleanup report is not a conclusion. Verification is.

1. What was still on the site when it was declared “clean”

What remainedForm it tookWhy the scan missed it
A core file replaced wholesaleGenuine WordPress filename, malicious contents, more than double the legitimate file sizeScans look for suspicious names and newly added files; a same-name swap is skipped
A script disguised as a system fileSitting in the web root, its filename one letter off a real oneThe code was obfuscated in layers, so nothing readable to match against
A payload hidden inside an archiveAn innocent-looking file plus a zip, unpacked only at runtimeSignature scanning does not see inside the archive
Seven rogue admin accountsDemoted, but still presentDemotion is not deletion; re-escalation is trivial

The first row is the one worth dwelling on. The attacker added no new files at all — they swapped a genuine WordPress core file for a malicious one of the same name. Any scan built around “has anything suspicious appeared” walks straight past it. There is one reliable way to catch it: compare every core file against the official release.

2. One line in the report gave away the vendor’s real confidence

In the same email that declared the site clean, the vendor also recommended restoring from a known-good backup taken before the infection.

Those two statements contradict each other. If you are confident the site is clean, you do not need the backup. Recommending the backup says you are not sure.

This is common enough to be worth a rule: when a “we’re done” report is followed by “but we’d also suggest you do X”, X is the honest measure of their confidence.

3. Why your login security cannot stop this

The hardest-to-find backdoor in this incident did something very simple: visit any page on the site with one particular parameter added to the address, and the server hands the visitor full administrator access.

That sentence is worth reading twice. It means the attacker never needs to log in — no login page, no username, no password, and not a single failed-login record anywhere.

So all of the following do nothing against it:

  • Banning IP addresses
  • Limiting failed login attempts
  • Adding a captcha to the login page
  • Disabling xmlrpc
A heavily locked front door turning people away while one person walks through an open side entrance
Every lock on this page guards the front door. The backdoor is a side entrance that was never locked, and the visitor using it looks like any other customer.

In the server log it is an ordinary page visit, indistinguishable from a real customer. However well you have locked the front door, you cannot stop someone who never uses it.

Two further details made it hard to spot: it lived in a directory whose contents never appear in the admin plugin list and cannot be switched off from the dashboard, and every variable inside it was named after ordinary infrastructure vocabulary, so a quick read looks like a routine system script.

4. Do not mistake hardening for an attack

The same incident produced the opposite lesson. Uploads on the site were broken, and digging into the error revealed a short message from the server in a foreign language: lock mode active, file upload disabled.

A foreign-language error looks exactly like attacker behaviour. It was not. It came from a hardening measure installed by the previous incident responders.

How to tell the difference: the code was clean and unobfuscated, and it contained logic that protects the site — blocking attachment deletion, for instance. Attackers do not write that. The same caution applies to directory names: check when it was created before you delete anything. A directory that has been there for years was almost certainly not planted in last week’s breach.

Deleting someone’s hardening because it looked suspicious is removing the lock they just fitted for you.

5. Gambling links are the symptom, not the disease

Most owners notice one of these first. Every one is an external symptom of a compromise, not a standalone SEO problem:

What you seeHow to confirm itWhat it actually means
Casino or betting pages in your search resultsSearch site:yourdomain.com casinoSomeone is renting your domain authority to rank gambling terms
Organic traffic falls off a cliff with no changes on your sideCompare 28-day windows in GA4 and Search ConsoleAlgorithmic suppression, or pages dropped from the index
A Security Issues warning in Search ConsoleGSC, Security and Manual Actions, Security IssuesGoogle has already confirmed hacked content
A surge of gambling backlinksAhrefs or the GSC links reportEither a link farm, or your site is now part of one
Pages in Japanese, Korean or another unexpected languageUnknown URLs in the GSC coverage reportClassic Japanese-keyword hack

Two or more of these together means you treat it as a security incident, not an SEO task.

6. The four things to confirm after any “cleanup complete”

It does not matter who did the cleaning — an external vendor, your host, or us. These four happen before anyone tells a client the site is clean:

  1. Compare core files against the official release. Overwrite the core with official files and see what does not match. This is the only way to catch a backdoor wearing a genuine filename.
  2. Check for files that are the wrong size. A system file that should be a few lines long has no business being fifteen kilobytes. Open it and read it.
  3. Confirm rogue accounts were deleted, not demoted. Sort users by registration date and check them one by one, watching for machine-generated usernames and email domains that make no sense.
  4. Open the live site in a private window and screenshot it. A clean set of admin checks is not the same as a clean page. Look at the homepage and several inner pages.

And the step most often skipped: rotate every credential — admin, FTP, database, hosting panel, plus any account elsewhere that reused the same password. A perfect cleanup with unchanged passwords means you replaced the lock and left them the key.

7. What happens on the SEO side

Recovery runs through Search Console: once you have confirmed the problem is fixed, you request a security review in the Security Issues report. The review takes anywhere from a few days to a few weeks.

The catch is that an incomplete cleanup gets rejected. Google has said that for over 70% of rejected hacked-site reconsideration requests, the reviewer attaches a note pointing to what is still there — a mechanism that cut average recovery time by around 29%. In other words, a partial cleanup does not buy you a partial recovery. It buys you a rejection and another round.

That is why the four checks above are not process fetishism. They decide whether you pass once or spend three weeks going back and forth.

8. Prevention: where the money is actually saved

The technical basics are not news: keep the CMS and plugins updated, strong admin passwords with two-factor, regular malware scanning, and a firewall if you can run one.

The part worth more attention is different. Most first breaches are not a triumph of attacker skill — they happen because nobody was minding the site, and that usually traces back to who you hired. Cheap packages that rank you with bulk spam links are black-hat by definition. Full admin credentials handed over and never shared back. No security maintenance or incident-response terms in the contract. Response times measured in weeks. Two of those four and your agency is a bigger risk than the attacker.

Asking those questions before you sign costs less than a three-week recovery afterwards.

Frequently asked questions

My security vendor sent a cleanup report. Do I still need to check?

Yes. In the case above, the site still had four live backdoors and seven rogue accounts at the moment the report said clean. Confirm at least four things: core files compared against the official release, files of the wrong size, rogue accounts deleted rather than demoted, and a screenshot of the live site.

I banned the IPs and limited login attempts. Why do I keep getting reinfected?

Because this kind of backdoor never touches the login page. One particular parameter in the address grants administrator access outright, and the log shows an ordinary visit. Every protection aimed at the login page is irrelevant to it.

How long until rankings recover?

After you request a security review in Search Console, the review typically takes a few days to a few weeks — assuming the site is genuinely clean. If it is not, the request is rejected and you start again.

Should I delete the suspicious files and accounts myself?

Not recommended. Doing it yourself destroys evidence and rarely gets everything, and whatever is left lets the attacker walk back in. Once a compromise is confirmed, stop making changes, take a forensic snapshot, then start the cleanup.

Are gambling links an SEO problem or a security problem?

A security problem. The links are a symptom. Remove them without finding the entry point and they return within weeks.

If you have just received a “cleanup complete” report, or you suspect your site is being used, send us the domain and we will run an independent verification using the checklist in section 6. Get in touch. We work the same way on the search side — see our test of 16 Melbourne websites in AI search and whether llms.txt is worth doing: verify first, conclude second.

Share this article
Facebook
Twitter
LinkedIn
WhatsApp