When a small business website gets hacked, the owner nearly always asks the same question: why would anyone target us? The honest answer is that nobody did. Almost all website attacks are automated. Software scans millions of sites looking for a known weakness and breaks into whichever ones have it. Your site was not chosen. It was found.

That is useful to know, because it means the causes are predictable. Here are the ones we see most often, followed by what you can do so that a break-in costs you an hour and not a month.
Table of Contents
The common reasons websites get hacked
1. Out-of-date plugins and themes
This is the big one. Patchstack’s State of WordPress Security in 2026 report recorded 11,334 new vulnerabilities in the WordPress ecosystem during 2025, a 42% rise on the year before. Of those, 91% were in plugins and 9% in themes. WordPress itself had six, all minor.
In other words, WordPress is rarely the problem. The plugins added to it are. Many sites run twenty or more, and each one is a piece of software that someone has to keep patched.
2. Updates that arrive too late
The same report found that for the most heavily exploited vulnerabilities, mass attacks began a median of five hours after the flaw became public. A site that is updated once a month is exposed for weeks.
Worse, 46% of the vulnerabilities had no fix available from the developer at the point they were disclosed. Keeping everything updated is essential, but it does not cover you on its own.
3. Abandoned and pirated plugins
A plugin that has not been updated in years will never get a security fix. Neither will a paid plugin whose licence has lapsed. Pirated copies of premium plugins and themes, often called nulled, are worse still, as many have malicious code added before they are shared.
4. Weak or reused passwords
Attackers try stolen username and password combinations from other breaches against WordPress login pages all day. If an administrator uses the same password somewhere else that has been breached, the site will follow. Two-factor authentication stops this almost completely, yet many sites still do not use it.
5. Too many administrator accounts
Old accounts for former staff, past developers and long-finished agencies are a common way in. Every administrator account is another password that can be guessed or stolen.
6. Cheap or poorly managed hosting
On badly configured shared hosting, one infected website can spread to others on the same account. Out-of-date server software adds further risk. It is also worth knowing that a host’s firewall is not a complete defence: in Patchstack’s tests, hosting providers’ own protections blocked only 12% of attacks using known WordPress vulnerabilities.
7. No working backup
This does not cause a hack, but it decides how bad one is. A surprising number of businesses find out their backups have not run for months only when they need them.
What attackers actually do
Very few hacked sites are defaced. Modern attacks are quieter, because a site that looks normal stays infected for longer. The usual outcomes are hidden spam pages and links that sell things on the back of your Google rankings, redirects that send your visitors to scam sites, card details skimmed from checkout pages, and your server being used to send spam.
The first sign is often a warning in Google search results, a drop in rankings or a suspension notice from your host. We have followed this for a long time, from Google’s 2016 figures on hacked sites to the plugin exploits of 2020, and the pattern has barely changed.
How to minimise the impact
You cannot make a website impossible to hack. You can make it unlikely, and you can make sure that if it happens the damage is small and the recovery is quick.
Keep backups you have tested
Back up files and the database automatically, keep copies somewhere other than the web server, and restore one now and then to prove it works. A clean backup from last week turns a crisis into an afternoon’s work. The OVHcloud data centre fire showed what happens to sites whose only backup was in the same building.
Update quickly and remove what you do not use
Turn on automatic updates for plugins where you can, and check the site at least weekly. Delete plugins and themes that are not in use. Deactivated is not enough, because the code is still on the server.
Lock down logins
Use a unique password and two-factor authentication for every administrator. Give people the lowest role they need. Someone who only writes blog posts does not need to be an administrator.
Add a firewall that understands WordPress
A WordPress-specific firewall can block attacks on a known vulnerability before the plugin’s own fix arrives. Given how many flaws are disclosed with no patch, this closes an important gap.
Watch for changes
Set up Google Search Console so you receive security warnings, and use monitoring that alerts you when files change or new administrator accounts appear. The sooner you know, the less there is to clean up.
Know what you would do
Decide in advance who you would call, where the backups are and how you would take the site offline. If personal data is involved, UK GDPR may require you to report the breach to the Information Commissioner’s Office within 72 hours of becoming aware of it. Our post on GDPR and hacked WordPress websites explains what that means in practice.
If your site has already been hacked
Do not just delete the files that look wrong. Attackers leave more than one way back in, and a partial clean-up usually means being hacked again within days. Our guide on how to fix a hacked WordPress website covers the steps in order.
Every site we build is hosted with weekly backups and plugin and theme updates included, as set out on our pricing page. If you would like us to check an existing site, or clean up one that has been compromised, get in touch. You can read more about how we build sites on our WordPress web design page.
Photo by Caspar Camille Rubin on Unsplash.