
Signs that confirm a WordPress hack, what to do in the first hour, step-by-step cleanup, backup or cleanup, your host's role, Google warnings, data breach obligations and how to prevent a repeat.
By Mouhamed BANKOLE, CEO at ITNET Technologies · Updated November 22, 2026 · Reading time: 12 min
Your home page shows an ad you never placed, Google warns visitors that your site is dangerous, or your host has just suspended the account. A hacked WordPress site usually feels like an emergency, and the wrong reflexes (deleting everything, restoring at random, only changing one password) leave the door open to a new infection. This guide answers the questions that matter: how to confirm the hack, what to do in the first hour, how to clean the site properly, who does what depending on your hosting, whether you must notify a data protection authority, and how to stop it from happening again.
In short
- A hacked WordPress site shows specific signs: a Google warning, unknown administrator accounts, redirects, spam being sent or an alert from your host.
- The first hour is for containing and documenting: maintenance mode, a copy of the current state for analysis, and new credentials everywhere.
- Most intrusions come through a plugin: 91% of the vulnerabilities found in 2025 affected plugins, according to Patchstack.
- Cleaning means replacing WordPress files with clean copies, removing unknown accounts and files, then getting Google's warnings lifted.
- If personal data may have leaked, the incident must be documented and, in France, notified to the CNIL, within 72 hours where possible.
Contents
- How do you know if your WordPress site has been hacked?
- What should you do in the first hour after a WordPress hack?
- Why do WordPress sites get hacked?
- How do you clean a hacked WordPress site, step by step?
- Should you restore a backup or clean the site?
- Who does what with shared hosting versus a VPS?
- How do you get Google's warnings removed?
- Do you need to notify the authorities and your customers?
- How do you prevent your WordPress site from being hacked again?
How do you know if your WordPress site has been hacked?
A WordPress site has probably been hacked when it shows concrete "indicators of compromise", such as being blocklisted by Google, disabled by the host or having user accounts you never authorized, according to the official WordPress documentation. A slow site or an error page is not necessarily a hack: you need specific symptoms.
Signs that should alert you:
- a warning in Google or in the browser ("This site may be hacked", a red security page);
- your host has suspended the site or reports that it distributes malware;
- visitors complain that their antivirus blocks your site;
- unknown administrator accounts appear under "Users";
- redirects to other sites, often only on mobile or when coming from Google;
- pages in a foreign language or spam links you never published;
- your emails land in spam because the server was used to send junk mail.
To confirm it right away, open the Security Issues report in Search Console: Google lists hacked content, malware and social engineering detected on your site.
Pro tip: test the site in a private window, on a phone and by clicking a Google result. Some infections only trigger for visitors coming from a search engine, never for the logged-in administrator.
What should you do in the first hour after a WordPress hack?
In the first hour, contain the attack, keep a record of what you see and change every credential, before attempting any cleanup. Acting in the wrong order often wipes out the clues that would reveal how the attacker got in.
The steps, in order:
- Stay methodical: the WordPress documentation advises starting by documenting what you observe, the time and your latest actions (new plugin, theme change).
- Put the site in maintenance mode or ask your host to suspend it, so visitors are no longer exposed.
- Take a full copy of the current state (files and database) and keep it aside: it is for analysis, not for restoring.
- Change every password: WordPress accounts, FTP/SFTP, hosting control panel and database, as the WordPress documentation recommends.
- Scan your own computer with an antivirus: according to the same documentation, infections often start with a trojan that steals the site owner's credentials.
- Tell your host: on shared hosting, the hack may affect other sites in the account, and the host can confirm whether it really is an intrusion.
Pro tip: keep a dated log of every action you take. If you need to call in a specialist, file a police report or notify the authorities, this log will save you a lot of time.
Why do WordPress sites get hacked?
WordPress sites mostly get hacked through vulnerable plugins and themes that were not updated, and much more rarely through WordPress core. Figures for 2025 from the security vendor Patchstack make this very clear.
| 2025 finding | Figure | Source |
|---|---|---|
| New vulnerabilities in the WordPress ecosystem | 11,334, up 42% from 2024 | Patchstack |
| Share of vulnerabilities found in plugins | 91% (9% in themes) | Patchstack |
| Vulnerabilities reported in WordPress core | 6, all low priority | Patchstack |
| Vulnerabilities not fixed by public disclosure | 46% | Patchstack |
| Median time to mass exploitation for the most targeted flaws | 5 hours | Patchstack |
| Attacks blocked by the hosting companies tested | 26% | Patchstack |
The most common ways in:
- an outdated plugin or theme, or one abandoned by its developer;
- a "nulled" theme or plugin (a pirated premium version), which often hides a backdoor;
- a weak or reused password, without two-factor authentication;
- an infected workstation that leaks your credentials;
- a shared hosting account where another unmaintained site serves as the entry point.
These figures explain why updates alone are no longer enough: when a flaw is exploited within hours, you also need a web application firewall and reliable backups. Our article on the WordPress vulnerability and the 7.1.4 update covers a recent case.
How do you clean a hacked WordPress site, step by step?
Cleaning a hacked WordPress site means replacing every software file with official copies, keeping only verified content, removing unknown access and closing the original hole. Deleting a few suspicious files is not enough: recent infections hide in several places, notes Patchstack, describing malware designed to stay stealthy.
The cleanup procedure:
- Scan the site with a security plugin and an external scanner; the WordPress documentation mentions Wordfence, Sucuri, Quttera or VirusTotal, among others, and points out that no single tool sees everything.
- Reinstall WordPress core from an official copy, in the same or a newer version.
- Reinstall every plugin and theme from its official source; delete the ones you no longer use.
- Check the media folder (
wp-content/uploads): it should only contain images and documents, never PHP files. - Review user accounts: delete unknown administrators and keep permissions to the strict minimum.
- Regenerate the security keys in
wp-config.php, which logs out every open session. - Check the database: added content, links injected into posts or widgets, modified options.
- Scan again and test the site in a private window before leaving maintenance mode.
Pro tip: if you are not comfortable with these steps, hand the cleanup to a professional rather than improvising. A partial cleanup leaves a site that looks healthy and gets reinfected a few days later.
Should you restore a backup or clean the site?
Restore a backup if you have one from before the infection and you know how the attacker got in; otherwise, clean the site, because restoring without a fix puts the same hole back online. The right answer depends on the backup date and the real date of the intrusion, which often predates the first symptoms.
| Situation | Restore a backup | Clean the site |
|---|---|---|
| Clean backup dated before the intrusion | Yes, then update everything immediately | Not needed |
| Intrusion date unknown | Risky: the backup may be infected | Yes |
| Online store with recent orders | Beware of losing recent data | Often better |
| Original hole not identified | Not enough on its own | Yes, and find the cause |
| No backup available | Impossible | Only option |
Before restoring:
- pick a backup clearly older than the first signs, and scan it;
- update WordPress, plugins and themes immediately after restoring;
- change every credential again, since the old ones may have been stolen;
- save recent content separately (posts, orders) to bring it back after checking it.
On Wayhost web hosting, manual and automatic backups are scheduled with point-in-time restore (observed on November 22, 2026), so you can choose exactly which point to go back to.
Who does what with shared hosting versus a VPS?
On shared hosting, the host protects the server and you manage your site; on a VPS, you run everything, from the operating system to the firewall. Knowing who is responsible for what saves time during an incident.
| Task | Shared hosting | VPS |
|---|---|---|
| Operating system and PHP updates | Host (you choose the PHP version) | You |
| Web application firewall, attack filtering | Often included by the host | You install and tune it |
| Malware scanning | Often included | You install it |
| WordPress, plugin and theme updates | You | You |
| Backups | Included depending on the plan, check it | You configure them (snapshots, off-site copies) |
| Server log analysis | On request from support | You, with full access |
What Wayhost includes (observed on November 22, 2026):
- on web hosting: malware scanning and removal with one-click cleanup, a web application firewall, free SSL, DDoS protection, SSH and WP-CLI access, and 24/7 support;
- on a VPS: full root access, KVM virtualization, security groups to filter traffic, automatic backups or snapshots from the customer area, and 24/7 technical support; securing WordPress and the system remains your job.
To choose between the two, our WordPress hosting guide compares the options by traffic and skills.
How do you get Google's warnings removed?
Once the site is clean, fix every issue listed in the Security Issues report in Search Console, then request a review from that same report, according to Google's official help. As long as the warning is displayed, most of your visitors will go no further.
The steps:
- verify ownership of the site in Search Console if you have not already done so;
- open the Security Issues report and look at the sample URLs; the list is not necessarily exhaustive, Google warns;
- check every reported URL and pages of the same type, not just the samples;
- request a review explaining what you fixed;
- also register the site with Bing Webmaster Tools, which the WordPress documentation recommends alongside Search Console;
- check the reputation of your sending domain if the site was used to send spam.
Pro tip: use the opportunity to review your DNS zone. A modified record or an unknown subdomain can keep the attack going even after the site is cleaned; on a Wayhost domain name, DNSSEC and transfer lock are included (observed on November 22, 2026).
Do you need to notify the authorities and your customers?
Yes, if the hack may have exposed personal data (customer accounts, forms, orders) with a risk to the people concerned: in France, the breach must be notified to the CNIL without undue delay, with an initial notification within 72 hours where possible, according to the CNIL. In every case, the incident must be documented internally.
What the GDPR requires, according to the CNIL:
- document the incident: nature of the breach, categories and approximate number of people and records affected, likely consequences and measures taken;
- notify the CNIL if the incident poses a risk to people's privacy;
- inform the people concerned when the risk is high;
- when in doubt, notify: the CNIL will then tell you whether people must be informed;
- file a police report if the breach follows a cyberattack, and keep the technical evidence.
For support in France, the cybermalveillance.gouv.fr platform publishes a quick-response sheet on website defacement and points to local specialists.
How do you prevent your WordPress site from being hacked again?
To prevent another WordPress hack, cut down the number of plugins, update everything quickly, protect logins with two-factor authentication and keep tested off-site backups. No single measure is enough: it is the combination that closes the doors.
The checklist:
- delete unused plugins and themes, even deactivated ones;
- enable automatic updates for trusted plugins and check the others every week;
- never install a "nulled" version of a premium plugin;
- turn on two-factor authentication for every administrator, as the WordPress documentation suggests;
- use long, unique passwords generated by a password manager;
- keep backups off the server and test a restore at least once;
- use a web application firewall that blocks known attacks before they reach WordPress;
- serve the whole site over HTTPS, with an automatically renewed SSL certificate.
Pro tip: subscribe to the security alerts of your main plugins. When a critical flaw is published, a few hours' head start makes all the difference.
Frequently asked questions
How do I know if my WordPress site has been hacked?
The most reliable signs are a Google warning, a suspension by your host, unknown administrator accounts or redirects to other sites. The Security Issues report in Search Console confirms what Google has detected. Also test the site in a private window and on a phone.
What should I do first when my WordPress site is hacked?
Put the site in maintenance mode, take a copy of its current state for analysis and change every password: WordPress, FTP, database and hosting panel. Then tell your host. Cleanup comes next, once the attack is contained.
Can I clean a hacked WordPress site myself?
Yes, if you know how to reinstall WordPress, plugins and themes from their official sources and check the database. You also need to find the original hole, or the site will be reinfected. When in doubt, a cleanup professional is safer.
Do I need to reinstall WordPress completely after a hack?
At the very least, replace every core, plugin and theme file with official copies. Content (posts, media, database) can be kept, but only after checking it. Reinstalling without checking the database can leave malicious links or accounts behind.
Is a backup enough to fix a hacked site?
A backup only helps if it predates the intrusion and the original hole is fixed afterwards. Restoring without updating puts the same entry point back online. Change every credential after restoring as well.
How long does Google take to remove the warning?
Google removes the warning after reviewing the site, at the owner's request in Search Console. The delay depends on the type of issue. The site must be fully cleaned before you ask, or the request will be rejected.
Is my host responsible for my WordPress site being hacked?
Usually not: most intrusions come through a plugin, a theme or a password, which are the site owner's responsibility. The host protects the server and may provide a firewall, malware scanning and backups. Check what your contract covers.
Do I have to report the hack of my site to the CNIL?
Yes, if your business falls under French data protection rules and personal data may have been exposed with a risk to the people concerned. The notification must be made without undue delay, within 72 hours where possible. In every case, document the incident internally.
Key takeaways
- A hack is confirmed by specific signs, and Search Console shows what Google has detected.
- The first hour is for containment: maintenance mode, a copy for analysis, new credentials everywhere.
- Plugins are the main entry point: fewer plugins, fast updates and a web application firewall.
- Cleaning means replacing every file with official copies and closing the original hole.
- Exposed personal data means documenting the incident and often notifying the CNIL.
To start again on a protected footing, with malware scanning, a web application firewall and point-in-time backups, discover Wayhost web hosting.
Article written by Mouhamed BANKOLE, CEO at ITNET Technologies.