Case study

Hacked WordPress Cleanup: Four Infection Waves Removed and the Brand Moved to a New Domain

A cybersecurity training brand's WordPress site had been hit in four waves between September 2025 and August 2026, and a spammer had re-registered its old .net domain. We removed an SEO cloaker, fake web-shell plugins, hidden casino links and 1,613 spam terms, moved the site to a new .in domain with SSL and redirects, and found no reinfection at the 3 November 2026 recheck.

4Infection waves cleaned
1,613Spam terms removed
0Reinfections at the recheck
Client
A cybersecurity training brand
Industry
Education and training
Location
India
Year
2026
Services
Malware removal, WordPress security, Domain migration, Technical SEO

The client's name is withheld. Dates come from file timestamps and server logs reviewed during the cleanup in 2026.

The challenge: a hacked WordPress site and a lost domain

This hacked WordPress cleanup case study is about a cybersecurity training brand in India. Its WordPress site had been compromised in four separate waves: September 2025, October 2025, June 2026 and August 2026. Each wave added more hidden code and more spam.

Then the brand lost its original .net domain. On 14 October 2026 it was re-registered by a spammer, so the old address now belonged to someone else. The site needed a full cleanup, a new home, and a way to rebuild trust with Google and visitors.

What we found inside the site

Some of this code was designed to hide from the site owner and only show itself to search engines.

  • An SEO cloaker injected into the theme's functions file, showing spam to search engines but not to visitors
  • Fake plugins that were really web shells, giving attackers remote control of the site
  • Hidden casino links, including base64-encoded links inside page-builder blocks that plain-text searches miss
  • 1,613 spam taxonomy terms created by the attackers
  • An administrator account whose password had been brute-forced

How we cleaned the site and moved the brand

Removed the malware

We removed the SEO cloaker, the fake web-shell plugins and the hidden links, and verified WordPress core and plugin files against clean copies.

Decoded the hidden links

We searched inside page-builder data, including base64-encoded content, to find casino links that ordinary searches miss.

Deleted the spam

We removed 1,613 spam taxonomy terms created during the attacks.

Locked the door

We rotated the brute-forced administrator password.

Moved to a new domain

Because the old .net domain was gone, we moved the site to a new .in domain with SSL and canonical redirects, so every page has one clean address.

Checked again

Paid spam links later found hidden in page-builder attributes were removed too. A recheck on 3 November 2026 found no reinfection.

Results at a glance

AreaBeforeAfter
InfectionsFour waves between Sep 2025 and Aug 2026Cleaned; no reinfection at the 3 Nov 2026 recheck
Search engine spamCloaker showing spam to GoogleRemoved
BackdoorsWeb shells disguised as pluginsRemoved; core and plugins verified
Hidden linksCasino and paid links in page-builder dataRemoved
Spam terms1,6130
DomainOld .net taken by a spammerNew .in domain with SSL and canonical redirects

What other businesses can learn

Repeat infections usually mean the first cleanup missed something, such as a backdoor or a stolen password. Search inside page-builder data and encoded content, not just the visible text, and change every admin password after a hack.

Renew your domain early and keep auto-renew on. Once a domain lapses, anyone can buy it, and you cannot redirect from an address you no longer own. After the cleanup, this brand's site also needed to be fast; read how we took it from 61 to 98 on mobile. For help after a hack, see our website services and reputation management, or contact us.

Frequently asked questions

Straight answers to the questions business owners ask us most.

Still have a question? Talk to us

How do I know if my WordPress site has been hacked?

Common signs are strange pages or links in Google results for your site, spam posts or categories you did not create, unknown admin users, plugins you never installed, or a security warning in the browser. Some malware only shows itself to search engines, so search Google for site:yourdomain and look for pages you do not recognise.

What is an SEO cloaker?

A cloaker is hidden code that shows different content to search engines than to people. Visitors see the normal site, while Google sees spam pages or links. Site owners often miss it for months, until rankings drop or spam appears in search results. It has to be removed from the code and the affected pages rechecked.

Why do ordinary searches miss some hidden links?

Attackers often encode links, for example in base64, or hide them inside page-builder settings rather than in the visible page text. A plain search of posts for a word like "casino" finds nothing. Cleanups need to decode and search the raw stored data as well.

What can I do if someone re-registers my old domain?

If the domain has expired and someone else has bought it, you usually cannot get it back quickly, and you cannot redirect from it. The practical fix is to move to a new domain, update your Google Business Profile, social profiles and listings, and tell customers. Keeping domains on auto-renew prevents this.

Related services and case studies

Want results like these?

Every project starts with a free audit of your website, Google presence and competitors.

  • A plain-language review of your website and Google presence
  • Quick wins you can act on straight away
  • No obligation and no spam

Get your free audit

Takes under a minute.

We'll get back to you by email or phone. No spam; see our privacy policy.