JournalWeb Development

WordPress Site Hacked? Warning Signs, What to Do in the First 24 Hours and How to Stop It Happening Again

WordPress Site Hacked? Warning Signs, What to Do in the First 24 Hours and How to Stop It Happening Again
November 23, 20267 min read

WordPress site hacked? Warning signs, 7 steps for the first 24 hours, the 2026 UpdraftPlus and plugin attacks explained, and how to stop it happening again.

You open your website and see a casino page, a strange pop-up, or Google's red "This site may be hacked" warning. Or a customer calls to say your site sends them somewhere else. If your WordPress site is hacked, the first few hours matter. Quick, calm steps protect your customers, your Google rankings and your business name.

This guide explains the warning signs, what to do in the first 24 hours, how hacked sites are cleaned, and the habits that stop it happening again. It also covers the WordPress attacks reported in October and November 2026, because several of them hit sites that looked fully up to date.

Why so many WordPress sites are being hacked right now

WordPress itself is regularly patched, but most break-ins come through plugins, themes and weak logins. A few recent examples show the pattern:

  1. Stolen backup-service keys (October 2026). TeamUpdraft, the company behind the UpdraftPlus backup plugin, reported that an attacker accessed its website and used connection keys for its UpdraftCentral dashboard to create admin accounts and install malicious plugins on connected sites. Security firm Patchstack found backdoor plugins under 99 different names. Updates alone did not help, because the commands came signed with real keys.
  2. An abandoned migration plugin under attack (November 2026). WP Duplicate (formerly LocalSync) has a flaw tracked as CVE-2026-123751 that lets anyone upload a file without logging in. Attacks were reported, the plugin was closed on WordPress.org, and no fixed version was available at the time of writing. The advice is to delete it.
  3. Popular SEO plugin flaws. Rank Math SEO versions up to 1.0.276 had a remote code execution bug (CVE-2026-1928, rated 8.8) that a user with Contributor access could use. It was fixed in 1.0.277, so the risk is mainly for sites that never update.

We also covered the core fixes in the WordPress 7.1.5 security update. The lesson from all of these: being "up to date" is necessary, but it is not the full answer.

Warning signs your WordPress site has been hacked

  1. Visitors, especially on mobile or from Google, are redirected to spam, betting or adult sites.
  2. Google shows "This site may be hacked" or Chrome shows a red warning screen.
  3. Search results for your brand show Japanese, pharma or casino titles you never wrote.
  4. New admin or editor users you do not recognise.
  5. Plugins you never installed, often with harmless names like "maintenance" or "cache".
  6. Unknown PHP files inside wp-content/uploads.
  7. Your hosting company suspends the account or warns about spam emails sent from your server.
  8. The site suddenly becomes very slow, or your Search Console shows a Security Issues alert.

What to do in the first 24 hours

1. Do not panic-delete everything

Deleting files at random can destroy the evidence needed to find how the attacker got in, and the hole stays open. Take a full copy of files and database first, even though it is infected, and label it clearly.

2. Change every password and key

Change passwords for WordPress admins, hosting, cPanel, FTP/SFTP, database and the email linked to the admin account. Turn on two-factor login where possible. Generate new WordPress security keys (salts) in wp-config.php, which logs everyone out.

3. Check users, plugins and connections

Remove any unknown users and plugins. If you use UpdraftPlus, update it, review any UpdraftCentral connections and follow TeamUpdraft's checklist. Delete plugins you no longer use, especially abandoned ones like WP Duplicate.

4. Scan and clean

Scan with a reputable security plugin and ask your host for a server-side scan. Compare core files with a fresh copy of WordPress. Look for changes to wp-config.php, .htaccess and the theme's functions.php. WordPress.org's own "My site was hacked" FAQ is a good starting point.

5. Restore a clean backup if you have one

If you have a backup from before the attack, restoring it is often the fastest fix. But restoring alone does not close the hole. You still need to update everything and change all credentials, or the attacker can walk straight back in.

6. Tell Google once the site is clean

Open the Security Issues report in Google Search Console. If Google has flagged the site, fix every issue listed, then request a review. Remove spam pages the attacker created so they drop out of search results.

7. Check if you must report it

In India, CERT-In's April 2022 directions require service providers, intermediaries, data centres, body corporates and government organisations to report listed cyber incidents, including website defacement, intrusion and unauthorised access, within 6 hours of noticing them. If customer data such as names, phone numbers or patient details may have been exposed, take legal advice on your duties.

DIY clean-up or professional help?

SituationDIY may be enoughGet professional help
One suspicious plugin, no visible damageYes, remove it, update and change passwordsIf you are not sure what else changed
Spam redirects or Google warningRarelyYes, backdoors are usually hidden in several places
Online store, booking or patient formsNoYes, customer data may be involved
Hacked again after a clean-upNoYes, the entry point was never found

How to stop your WordPress site being hacked again

  1. Update weekly: WordPress core, themes and plugins. Do not run old PHP versions either; our PHP 8.6 upgrade guide for WordPress and Laravel explains how to plan it.
  2. Remove what you do not use: every inactive plugin is still code on your server.
  3. Never use nulled themes or plugins. "Free" pirated premium plugins often come with a backdoor already inside.
  4. Limit admin accounts and give staff the lowest role they need. Several 2026 bugs needed only Contributor or Author access.
  5. Two-factor login for every admin.
  6. Off-site daily backups that you test, kept for at least 30 days.
  7. A firewall and uptime/malware monitoring so you hear about problems before customers do.
  8. Review third-party connections (backup dashboards, management tools, old agency accounts) and revoke the ones you do not need.

For business-critical sites, a professionally built and maintained website pays for itself. A good web development partner keeps updates, backups and monitoring on a schedule, and can move high-risk sites to a sturdier setup when needed.

What a hack does to your SEO

Hacked sites often get spam pages indexed, lose rankings, or show a warning in search results that scares visitors away. Once the site is clean and Google's review passes, rankings usually recover over time, but spam URLs need to be removed and the site re-checked. If you have seen a sudden traffic drop along with strange pages in Google, it is worth an SEO health check as well as a security clean-up.

Frequently asked questions

How do I know if my WordPress site is hacked?

Common signs are redirects to spam sites, a Google "This site may be hacked" warning, unknown admin users or plugins, strange pages in Google results for your brand, and unknown PHP files in the uploads folder.

Will restoring a backup fix a hacked WordPress site?

A clean backup from before the attack can remove the infection, but you must also update everything, remove unknown users and plugins, and change all passwords and keys, or the attacker may get back in.

Why was my site hacked when everything was updated?

Updates close known holes, but attacks can also come from stolen passwords, abandoned plugins with no fix, nulled themes, or stolen keys from a connected service, as happened with UpdraftCentral in October 2026.

How long does it take to clean a hacked WordPress site?

A simple infection can be cleaned in a few hours. Sites with many hidden backdoors, or a Google warning that needs a review, can take a few days from clean-up to the warning being removed.

Do I need to report a website hack in India?

CERT-In's 2022 directions require body corporates and certain other organisations to report listed cyber incidents, including website intrusion and defacement, within 6 hours. Take legal advice if personal data may have been exposed.

Website hacked or worried it might be? Reach us

Pengwin Solutions builds, secures and maintains WordPress, Laravel and Next.js websites for businesses and healthcare brands across India. See our website development services, then contact Pengwin Solutions or call +91 94907 07752 for a clean-up or a security check.


Need expert execution?

Ready to accelerate your digital transformation?

Partner with Pengwin Solutions for custom mobile apps, full-stack web applications, and ROI-driven marketing.

Schedule strategy call
Keep reading
WhatsAppContact Us