Quick Answer: A WordPress site that keeps getting hacked almost always has something left over from the first attack: a backdoor file, a hidden admin account, unrotated passwords or keys, or the same vulnerable plugin. Break the loop by finding the entry point, rebuilding from clean sources and rotating every credential. Then request a Google review once, not repeatedly.

Here’s the loop, straight from a WordPress.org support thread. A small store’s site gets hacked and starts redirecting visitors to phishing pages. The owner restores a backup, requests a Google review and gets the warning cleared. Ten to twenty days later, it happens again. Wordfence finds nothing. The thread was closed without a fix.

If that sounds familiar, look hard at what the cleanup missed. The LYNX SEO team isn’t a malware-removal company, and we’ll say plainly below when to call your host or a security specialist. Where we come in is the part security guides skip: why Google still thinks you’re hacked, and how to get your rankings back once you’re clean.

The state of WordPress security, in four numbers:

Stat Figure Source
New WordPress vulnerabilities in 2025 11,334, up 42% on 2024; 91% in plugins Patchstack, Feb 2026
Heavily exploited flaws: weighted median time to first exploit 5 hours Patchstack, Feb 2026
Distinct infected sites in 2024 Just under 1 million (325,000 to 350,000 on any given day) Wordfence, Apr 2025
Most frequently remediated infection in 2023 Japanese SEO spam, on 10.07% of infected sites Sucuri, 2023 report

All four are vendor data from security companies, which have an interest in the numbers being scary. They’re also the best data that exists.

Key Takeaways

  • Sucuri’s 2023 threat report found that 49.21% of compromised websites had at least one backdoor, which is why cleaning only the visible malware rarely holds.
  • Patchstack counted 11,334 new WordPress vulnerabilities in 2025, with 91% in plugins and 46% still unpatched when they were publicly disclosed.
  • Google says reviews for sites hacked with spam “can require up to several weeks,” while malware reviews take a few days and phishing reviews about a day.
  • Google warns that requesting a security review before the problem is fixed can get a site marked as a repeat offender, a status that lasts 30 days and blocks review requests in Search Console.
  • Google treats all 4xx status codes except 429 the same way, so hacked spam URLs should return a 404 or 410 rather than redirect to real pages.

Why a WordPress hack keeps coming back and how to break the loop

Why WordPress Malware Keeps Coming Back

WordPress malware comes back because attackers rarely leave just one way in. Remove the spam pages and leave the backdoor, and you’ve tidied the living room while the burglar still has a key. Work through every layer:

Layer Persistence point Where to look Fix
WordPress Hidden admin accounts Users screen and the wp_users table directly Delete unknown users; reset every remaining user’s password
WordPress Must-use plugins and drop-ins /wp-content/mu-plugins/ and drop-in files in /wp-content/ Remove anything you didn’t install
WordPress Fake plugins and core-lookalike files Plugin folders you don’t recognize; odd PHP files in the site root Replace core from a fresh download; delete unknowns
WordPress wp-config.php and salts Injected code; old secret keys Inspect by eye; generate new keys and salts
Files .htaccess Every directory, not just the root Replace with a default copy
Files PHP in uploads /wp-content/uploads/ Delete PHP files; block PHP execution there
Database Injected options, posts and users wp_options, wp_posts, wp_users Remove injected rows and scripts
Server Cron jobs Hosting panel cron list Delete jobs you didn’t create
Server Other sites on the account Every site under the same hosting user Clean all of them, or isolate each one
Accounts Hosting, SFTP, database and email credentials Every login with access Rotate all of them, then rotate again once clean
People Admin computers and 2FA secrets Devices used to log in; 2FA apps Scan devices; re-enroll 2FA
Supply chain Nulled, closed, sold or compromised plugins Plugin sources and WordPress.org status Replace or remove
Google Rogue Search Console owners Users and permissions; verification files Remove the owner and their token

Backdoors and hidden admin accounts

Backdoors are the main reason cleanups fail. Sucuri found 49.21% of compromised sites had at least one backdoor, and 55.2% of sites with database malware had at least one malicious admin user. Some are persistent in a way that’s almost impressive: in September 2025, Sucuri documented a fake plugin that hid an admin account from the Users list, and a fake core file, wp-user.php, that would “immediately recreate the user on the next execution” if you deleted it.

Credentials and sessions you didn’t rotate

Changing your WordPress password isn’t enough. WordPress.org’s hacked site FAQ says to change every access point, including FTP or SFTP, WordPress admin, the hosting panel and MySQL, for every user with access. Then change them again: “you need to change the passwords for your site after making sure your site is clean.”

New secret keys and salts in wp-config.php force everyone, attacker included, to log out. And 2026 added a nasty twist: the ShapedPlugin supply-chain attack stole 2FA (TOTP) secrets as well as passwords, according to Wordfence’s findings. Security Affairs’ advice was blunt: “existing TOTP seeds should be considered stolen.” If you’re not sure, re-enroll 2FA for every admin.

The vulnerable plugin is still there (or was never trustworthy)

If the hole that let them in is still open, they’ll walk back through it. Sucuri found 39.1% of CMS installs were outdated at the time of infection. Abandoned plugins are worse, because WordPress doesn’t flag them: when WordPress.org closes a plugin, Patchstack found core “just shows that it’s properly up to date.” Of 404 disclosed-but-unpatched vulnerabilities Patchstack tracked in 2023, more than 70% were in plugins that WordPress.org had closed.

Even good habits don’t fully protect you anymore. In April 2026, a backdoor went live across the Essential Plugin suite of 30-plus plugins, used on thousands of sites. It had been planted after someone bought the business in 2025, then sat dormant for months, TechCrunch reported. As Austin Ginder of Anchor Hosting, who found it, noted, “WordPress users are not notified of any plug-ins’ change in ownership.” 

In June 2026, Wordfence confirmed that ShapedPlugin’s Pro plugins had been shipping backdoored updates since April through the vendor’s own update system. The free versions on WordPress.org were clean. Nulled premium plugins are the same problem with less mystery, and WordPress.org’s hardening guide says it plainly: “Do not get plugins/themes from untrusted sources.”

Other sites on the same hosting account

One infected site can reinfect its neighbors. Sites running under the same hosting account user can usually reach each other’s files, so cleaning one site while three others stay dirty is a very efficient way to waste a weekend. WordPress.org’s FAQ notes the hack “may have affected more than just your site, especially if you are using shared hosting.” Clean every site on the account at once, or move each to its own account.

Persistence outside the obvious places

Sucuri found malicious cron jobs on 2.14% of compromised sites, and those jobs dropped more malware, usually backdoors. Must-use plugins load automatically and are “not listed in the standard WordPress plugin interface,” per Sucuri. .htaccess rewrites, injected wp-config.php code and database rows round out the usual list.

Some malware doesn’t live only in files. Patchstack says the Lock360 malware family “runs malicious code in server memory” and reinfects files such as index.php and .htaccess after they’re restored. That’s a running process, not a file, and it’s the point where you call your host.

You restored an infected backup

Google’s cleanup guide says to “check that your backup was created before your site was hacked,” and compromises often start well before anyone notices. Upgrading in place doesn’t help either. Google’s advice is to “perform a clean installation, not just an upgrade,” because “upgrades can leave files from a previous version,” and one infected file left behind makes reinfection more likely.

Nobody found how they got in

Google’s John Mueller put it simply in January 2024: “even if you’ve cleaned up the hacked traces, it’s important to understand how they did it,” per Search Engine Roundtable. Attackers scan automatically, so an unfixed entry point gets found again. Google also warns there may be “multiple, independent hacks in place,” so finding one doesn’t mean you’ve found them all.

Why Your Scanner Says “Clean” but Google Says “Hacked”

Hacked sites often use cloaking, which shows spam to Googlebot or search visitors while showing the owner a normal site. Google’s spam policies say “it’s not uncommon for the hacker to use cloaking to make the hack harder for the site owner to detect.” The owner logs in, sees nothing wrong, and runs a scan that agrees. Meanwhile Google sees a pharmacy.

The Essential Plugin backdoor is a textbook example. It injected code into wp-config.php and, in the words of Austin Ginder of Anchor Hosting, who found it, “only showed the spam to Googlebot, making it invisible to site owners,” per BleepingComputer. WordPress.org’s forced update disabled the backdoor but didn’t clean wp-config.php, so sites that relied on the update alone still had the injected code sitting in wp-config.php.

To see what Google sees:

  • URL Inspection: in Search Console, inspect your homepage and a known spam URL, then view the crawled page. Google’s Japanese keyword hack guide says this tool “lets you see the underlying hidden content.”
  • Wget or cURL: Google’s review guide recommends using “either Wget or cURL to view pages on your site, such as your homepage and a URL modified by the hacker.” Compare a normal request with one using a Googlebot user agent.
  • Search, logged out, on a phone: click your result from Google. Some redirects fire only for search referrers or mobile visitors.
  • Security Issues report: check the sample URLs Google lists.

A 404 doesn’t prove a page is clean, either. Google warns that “hackers will try to trick you into thinking the page is gone or fixed when it’s still hacked.”

Security scanners miss cloaked spam that Googlebot can see

The 48-Hour Incident Plan

The first 48 hours after you find a hack should go into containing it, finding how they got in and rebuilding clean, in that order. Requesting a Google review comes last, not first.

  1. Contain. Put the site in maintenance mode with a 503 status, not a 200 “coming soon” page. Google slows crawling on 5xx errors and keeps indexed pages for a short outage, and it recommends a 503 for closures of a day or two. A 200 page can get indexed in place of your real content.
  2. Snapshot. Take a copy of files, database and logs before changing anything. You’ll need it to work out what happened.
  3. Lock the doors. Rotate hosting panel, SFTP, database, WordPress admin, email and API credentials. Generate new salts, re-enroll 2FA, revoke unknown Application Passwords and remove unknown users.
  4. Find the entry point. Check access logs, recently modified files and plugin versions against the Patchstack and Wordfence vulnerability databases. Look for closed plugins and check every other site on the account.
  5. Rebuild from clean sources. Use fresh core, plugins and themes from official sources. Inspect wp_options, wp_users and wp_posts, replace .htaccess with a default copy and read wp-config.php by eye.
  6. Clean up Search Console. Remove unknown owners and their verification tokens, delete spam sitemaps and resubmit your real one.
  7. Verify. Run cURL and URL Inspection checks on the homepage, key pages and known spam URLs.
  8. Request one review. Describe what you fixed for each issue type. Don’t resubmit while it’s pending.

When to call your host or a security specialist: server-level or memory-resident malware, sites you can’t log into, payment card skimmers, or a third reinfection. At that point, specialist time is cheaper than another month in the loop.

What to do in the first 48 hours after a WordPress hack

Clean or Rebuild? A Decision Matrix

A site that has been reinfected more than once should usually be rebuilt on a fresh environment rather than cleaned again in place. Each failed cleanup is evidence that something is still there.

Situation Clean in place Rebuild on a fresh environment
How many infections? First one It has come back at least once
Entry point found? Yes, a known vulnerable plugin, now patched No, or you’re not sure
Hosting Isolated, one site per account Several sites share the account
Plugin sources Official sources only Nulled or supply-chain-compromised plugins were installed
Server access WordPress only Hosting panel or server was compromised
Backups A clean backup from before the compromise No backup you can prove is clean

If any row lands in the rebuild column, rebuild. That means fresh hosting, a fresh WordPress install, plugins reinstalled from official sources, and only your content and media brought across after inspection. Rebuilding is also a chance to fix the structural SEO problems a hacked site often has. Our guide to redesigning a website without losing SEO covers how to move URLs without breaking rankings.

Recovering SEO After a Hack

Once the site is clean, search recovery is a separate job: Google has to see the cleanup, drop the spam URLs and recrawl your real pages. This is the part most security guides end before reaching.

Start in Search Console

The Security Issues report groups problems into hacked content, malware and unwanted software, and social engineering. Google says fixing an issue on only some pages “will not earn you a partial return to search results,” so fix every listed issue sitewide before you request a review.

Check Manual Actions too. There’s no manual action called “hacked,” but a hacked site can trigger ones such as “Cloaking and/or sneaky redirects,” “Hidden text and/or keyword stuffing” or “Site abused with third-party spam.” Then check Users and permissions for owners you didn’t add, and look at Settings, Removals and Change of Address for anything you didn’t do.

Find the spam that’s still indexed

  • site: searches with spam terms: pharma, casino, replica brands or Japanese characters.
  • Performance report: queries in foreign scripts or on topics you’ve never written about.
  • Pages report: URL patterns you don’t recognize.
  • Sitemaps: Google notes hackers “often modify your sitemap or add new sitemaps to get their URLs indexed more quickly.”
  • Bing Webmaster Tools: a second index catches what Google’s view misses.

Hacked sites are also popular hosts for spam campaigns aimed at someone else’s rankings. Our guide to parasite SEO covers why attackers want your domain’s trust.

404, 410, 301 or Removals? What Google actually says

Spam URLs should return a 404 or 410, and it doesn’t much matter which one. Google says “all 4xx errors, except 429, are treated the same,” and indexed URLs returning 4xx “are removed from the index.” Mueller called the 404 versus 410 difference “mostly theoretical,” per Search Engine Journal.

Option Use it? Why
404 or 410 Yes, for every spam URL Drops them from the index over time
301 to homepage or a real page No It isn’t Google’s guidance and keeps spam URLs resolving
Block in robots.txt No Google can’t crawl the URL to see the 404; its Removals help says “Do not use robots.txt as a blocking mechanism”
Removals tool Only for the most visible spam It hides URLs for about six months, and Google says “using the tool alone won’t work”
Noindex internal search results Yes, if spammers abuse your search Mueller suggests blocking search results from indexing
Disavow spam backlinks No Mueller: “no need to disavow them”

Redirecting spam URLs is a common forum suggestion, and it’s backwards. You want those URLs gone, not passing visitors and signals to your homepage. Use the Removals tool for the handful of spam results people actually see, not for 40,000 URLs.

Get the good pages recrawled

Fix your most important pages first, since they tend to get recrawled soonest. Use URL Inspection’s Request indexing on key pages (there’s a daily quota), and resubmit a clean sitemap with accurate lastmod dates. Mueller’s advice on the leftovers is reassuring: “Old pages will remain indexed for months, they don’t cause any problems if they tend not to be seen.”

Requesting a review, and the Repeat Offender trap

Google’s request a review guidance gives these timings:

Issue Review time After a clean verdict
Hacked with spam “Up to several weeks” Warnings removed within 72 hours
Malware “A few days” Warnings removed within 72 hours
Phishing “About a day” Warnings removed within 72 hours

If your site keeps getting hacked, the bigger risk is rushing. Google has a Repeat Offender status for sites that “repeatedly switch between compliant and noncompliant behavior within a short window of time.” It “persists for 30 days,” and during that time you can’t request reviews in Search Console. Google’s Security Issues help warns that submitting a request when the issue hasn’t been fixed can “even get you marked as a repeat offender.” Request one review, once, when you’re sure.

What recovery looks like

Stage Timing What to monitor
Contain Day 0 Site serving a 503; no new spam appearing
Clean, rotate, verify First 48 hours cURL and URL Inspection results; Search Console users
Review request After verification Security Issues report status
Warning cleared A day to several weeks, depending on issue type Browser warnings and search result labels
Key pages recrawled Weeks 1 to 4 URL Inspection crawl dates; clicks on top pages
Spam drops out, rankings settle Months 1 to 3 site: spam counts; Performance trends

Mueller’s estimate for the last stage: “it certainly can take a few months for things to really settle back down, depending on how & how long the site was hacked.” Our guide to measuring SEO success covers which metrics to watch. If the hack turned out to be one problem on a site with many, our guide to fixing an inherited bad website is the next read.

This is also where in-house teams tend to stall: the site is clean, the warning is gone, and traffic still hasn’t come back. In our technical SEO audits, leftover spam URLs still returning 200, injected sitemaps and rogue Search Console owners are on the checklist for exactly that reason.

What search recovery looks like after a WordPress hack

Stop It Happening Again

The cheapest hack recovery is the one you don’t need. Most of the prevention list is unglamorous:

  • Fewer plugins, kept updated. Delete anything unused, and watch for plugins that are closed on WordPress.org or change owners.
  • A WAF or virtual patching. In the first of Patchstack’s two 2025 pentest studies, traditional hosting defenses blocked only 12% of attacks on known exploited WordPress vulnerabilities (vendor data, but a useful warning).
  • One site per hosting account, a least-privilege database user and SFTP only.
  • Hardening constants. Set DISALLOW_FILE_EDIT in wp-config.php, since the built-in file editor is “often the first tool an attacker will use if able to login,” per WordPress.org. Block PHP execution in /uploads.
  • File integrity monitoring and activity logs, plus multiple dated backups so a pre-compromise copy exists.
  • 2FA for every admin and a password manager. Google also notes attackers may install spyware to record an admin’s keystrokes, so scan the machines people log in from.
  • Monitoring that catches cloaked spam: Search Console email alerts, a monthly site: check and a quick scan of Performance queries for anything strange.

Break the Loop, Then Repair the Damage

A WordPress site keeps getting hacked because something from the first attack is still there. Find it, rebuild from clean sources, rotate everything, and only then ask Google to take another look. Search recovery comes after, and it rewards patience more than review requests.

If your site is clean but traffic hasn’t come back, our technical SEO team can audit what the hack left behind in Google’s index and hand your developers a ranked list of fixes. 

At LYNX SEO you get the whole team, SEO Director, Strategist, Designer, Editor and Uploader, for a fraction of what that internal headcount would cost.

Frequently Asked Questions

Why does my WordPress site keep getting hacked after I clean it?

Usually something from the first attack survived: a backdoor file, a hidden admin account, unrotated passwords or keys, or the same vulnerable plugin. Sucuri found 49.21% of compromised sites had at least one backdoor. Until you find how attackers got in and remove every persistence point, cleanup only resets the clock.

Why can’t my security plugin find the malware?

It may be cloaked so it only appears to Googlebot or search visitors, stored in the database, sitting in another site on the same hosting account, or running in server memory. Use Search Console’s URL Inspection tool to see what Google sees, and ask your host to check for server-level infections.

Will restoring a backup fix a hacked site?

Only if the backup predates the compromise and you also rotate every credential and fix the entry point. Many backups already contain the backdoor, because compromises often start weeks before anyone notices. Google says to check that a backup was created before the site was hacked before restoring it.

Can one hacked site infect other sites on the same hosting account?

Yes. Sites running under the same hosting account user can usually read and write each other’s files, so one infected site can reinfect the rest. Clean every site on the account at the same time, or move each site to its own isolated account to stop the cross-contamination.

How do hackers get back in after I change my password?

Through other credentials such as hosting, SFTP or database logins, sessions that were never logged out, a backdoor admin account, stolen 2FA secrets, or the unpatched vulnerability itself. Rotate every credential and your WordPress secret keys, re-enroll 2FA, and fix the entry point before considering the site clean.

How long does it take Google to remove the “This site may be hacked” warning?

After you request a review, Google says reviews for sites hacked with spam can take up to several weeks, malware reviews a few days and phishing reviews about a day. If Google finds the site clean, it removes warnings from browsers and search results within 72 hours.

Should hacked spam URLs return 404, 410 or a 301 redirect?

Return a 404 or 410. Google treats all 4xx codes except 429 the same way and drops indexed URLs that return them over time. Don’t redirect spam URLs to your homepage or real pages, and don’t block them in robots.txt, because Google then can’t see the 404.

How do I remove Japanese spam pages from Google?

Delete the pages so they return a 404 or 410, remove spam sitemaps and unknown Search Console owners, and use the Removals tool for the most visible results. Then wait for Google to recrawl. Google’s John Mueller says old spam pages can stay indexed for months without causing problems.

Will my rankings come back after a hack?

Usually, once the site is clean and Google has recrawled it. Key pages often recover within weeks, while full recovery can take a few months depending on how long and how badly the site was hacked. Fix your most important pages first and request indexing on them.

Should I disavow the spammy backlinks the hack created?

No. Google’s John Mueller said there’s “no need to disavow them” in a 2024 thread about the Japanese keyword hack. Spend that time removing the spam pages, returning 404s and cleaning Search Console instead. Once those spam URLs return 404s, the links point at pages that no longer exist.

Should I switch hosts if my site keeps getting hacked?

Often, yes. If your host can’t isolate sites from each other, help you find the entry point or check for server-level malware, moving to isolated hosting with one site per account is frequently the fastest way out of the loop. Rebuild on the new host rather than copying files across.

Related Reading

Sources

  • Google for Developers. “Google Safe Browsing Repeat Offenders Policy.” 2025. https://developers.google.com/search/docs/monitor-debug/security/safe-browsing-repeat-offenders
  • web.dev. “Request a review.” 2015. https://web.dev/articles/request-a-review
  • Google for Developers. “How HTTP status codes affect Google’s crawlers.” 2026. https://developers.google.com/crawling/docs/troubleshooting/http-status-codes
  • Patchstack. “State of WordPress Security in 2026.” 2026. https://patchstack.com/whitepaper/state-of-wordpress-security-in-2026/
  • Sucuri. “2023 Hacked Website & Malware Threat Report.” 2024. https://sucuri.net/reports/2023-hacked-website-report/