Web

Web

•

•

How do small business websites get hacked, and how do you prevent it?

Most small business websites are not hacked by someone who picked them out. They are hacked by automated tools that scan the web for a known flaw in a…

Tocnis

Tocnis

Web and app development

Padlock and keys resting on a computer keyboard

Table of contents

Share

Last checked:
Cover photo: Sasun Bughdaryan on Unsplash

Most small business websites are not hacked by someone who picked them out. They are hacked by automated tools that scan the web for a known flaw in a plugin or theme, or for a weak or reused admin password, and then add spam pages, hidden backdoors or payment skimmers. You prevent most of it by keeping every plugin, theme and the core software updated (ideally automatically), removing what you don't use, putting two-step login on every admin and hosting account, and keeping backups stored away from the site so you can restore a clean copy.

Why would anyone hack a small business site?

Because the attack is automated, size doesn't protect you. A scanner doesn't care whether your site sells cakes or software, only whether it runs a version of something with a known hole. Once inside, attackers use the site for things that pay them, and the security firm Sucuri's cleanup data shows what those are. In its 2023 report, 49.21% of the hacked sites it cleaned had at least one backdoor (hidden code that lets the attacker back in after you think you've fixed things), 20.30% had SEO spam (pages or links advertising someone else's products, with Japanese-language spam alone on 10.07% of sites), 5.06% hosted phishing pages and 1.34% had card skimmers that copy customers' payment details at checkout. That report covers 2023, and because Sucuri sells cleanup services you should treat the exact shares as one company's view of the sites it was paid to fix.

The damage to you is mostly indirect. Google's Security Issues report explains that hacked or harmful pages can get a warning label in search results, and browsers can show a full-page warning before visitors reach your site. Getting that removed means cleaning the whole site and asking Google for a review, which Google says "can take several days or weeks."

How do attackers actually get in?

Outdated plugins and themes

This is the biggest route for sites built on WordPress, which runs 39.4% of all websites and 58.2% of sites whose platform is known, according to W3Techs on November 7, 2026. A plugin is an add-on that gives a site a feature such as a contact form, a page builder or a shop, and each one is written by a different developer of varying care.

The security company Patchstack, which sells protection for these sites, counted 11,334 new vulnerabilities in the WordPress ecosystem in 2025, 42% more than the year before. 91% were in plugins and 9% in themes, while WordPress itself had only 6, all low priority. So the core software is rarely the problem, and the add-ons are.

Two numbers from the same report explain why this is hard to manage by hand:

  • Speed. For the vulnerabilities attackers used most, the median time from public disclosure to mass exploitation was 5 hours, and about half of high-impact flaws were being exploited within 24 hours. A site that gets updated "when someone has time" is exposed for days.

  • No fix yet. 46% of vulnerabilities had no fix from the plugin's developer at the moment they were made public. Updating can't help until a fix exists, which is a strong reason to run fewer plugins.

Old flaws stay dangerous too. Patchstack's list of the ten most exploited WordPress vulnerabilities includes ones published in 2023 and 2024, such as flaws in LiteSpeed Cache and tagDiv Composer, because attackers keep finding sites that never updated. Sucuri found that 39.1% of the CMS installations it cleaned were out of date at the time of infection (a CMS, or content management system, is the software such as WordPress that runs the site).

Abandoned plugins are a related risk. Patchstack reported that in the previous year (its 2025 report covers 2024), 1,614 plugins and themes were removed from the WordPress.org directory for security problems that weren't fixed. A removed plugin keeps running on sites that already have it, and it will never get another update.

Stolen, guessed or reused passwords

The second route is logging in like the owner. Attackers try leaked passwords from other breaches, common passwords, and names guessed from your site. This applies to the website admin, but also to the hosting account, the domain registrar and the email account that receives password resets, because any one of them can hand over the site.

Verizon's 2026 Data Breach Investigations Report, which covers breaches of all kinds and not only websites, found that exploiting software vulnerabilities (31% of breaches) has now overtaken stolen passwords as the most common way in. Stolen passwords are still among the frequent causes the report lists, and they are the easiest door to close.

Too many people and suppliers with access

Former staff, an old freelancer, a plugin company, a marketing tool with admin rights: every extra admin account is another password that can leak. The US Federal Trade Commission's small business guidance (September 2025) says to put security requirements in contracts with outside companies, limit their access to what they need and only for as long as they need it, and make them take an extra step beyond a password to log in.

Pirated themes and unofficial downloads

Paid themes and plugins offered free on unofficial sites ("nulled" copies) are a known way to install a backdoor yourself. We found no recent primary study measuring how often this happens, so we won't put a number on it, but WordPress's own hardening guide says to install add-ons only from trusted sources such as the official directory.

Does a hosted builder like Shopify, Wix or Squarespace avoid this?

Mostly, for the software part. On a hosted platform the company runs and patches the code, and you can't install arbitrary server plugins, so the biggest route above is largely closed. Shopify, for example, says it is certified Level 1 PCI DSS compliant (PCI DSS is the card industry's security standard for businesses that handle card payments) and that this "extends by default to all stores powered by Shopify." That is Shopify's own claim.

What stays with you is the login side: your staff accounts, the apps you connect and the access you give them, and your email and domain accounts. A hosted site with a stolen owner password is still a hacked site. The trade-offs between platforms are covered in our article comparing WordPress, Webflow, Wix and Squarespace.

Isn't my host's firewall enough?

Probably not on its own. Many hosts include a web application firewall (WAF), a filter that tries to block attack traffic before it reaches the site. Patchstack ran two tests in 2025 against defenses used by popular hosts and found they blocked 12% of WordPress-specific attacks in one test and 26% of attacks in a broader one. Patchstack sells a competing product and didn't say in the report how many hosts it tested, so read those figures with that in mind. Even so, they match the general point that a generic filter can't know which plugin flaws your particular site has. A firewall helps, but updates and fewer plugins do more.

How do you prevent it?

These steps are drawn from the WordPress hardening guide, the FTC's guidance and CISA, the US government's cybersecurity agency. They are ordered by how much risk each removes for the effort.

  1. Turn on automatic updates. WordPress has updated its core automatically since version 3.7, and since version 5.5 you can switch on automatic updates for each plugin and theme, and turn them on for many plugins at once from the Plugins screen. WordPress checks twice a day and emails you when an update succeeds or fails. If the toggle is missing, your host or a plugin has turned it off, so ask why. Updates occasionally break a feature, which is why step 4 comes before you rely on this.

  2. Delete what you don't use. The WordPress guide puts it plainly: if you aren't using a plugin, delete it. A deactivated plugin is still code on your server. Each plugin you remove is one less place for a flaw that has no fix yet, and Patchstack found that was true of 46% of new flaws.

  3. Put two-step login on every account that controls the site. That means the website admin, hosting, domain registrar, and the email inbox that receives password resets. CISA says people who use multi-factor authentication (a second check, such as a code from an app or a security key, on top of the password) are "significantly less likely to get hacked," and says the standard to aim for is phishing-resistant login built on FIDO/WebAuthn, which blocks the attempt if someone is tricked into signing in on a fake site. It also says any second factor is better than none. Use long, unique passwords too: the FTC says at least 12 characters, never reused, and limit failed login attempts.

  4. Keep backups somewhere the site can't reach. CISA's ransomware guide says to keep offline, encrypted backups and to test that they restore. A backup stored on the same server can be deleted or infected along with the site. Back up the database as well as the files, and keep copies from before the most recent changes so you can roll back past a backdoor.

  5. Remove access nobody needs. List every admin and editor account and delete the ones belonging to people who have left or suppliers who finished their work. Give outside help the lowest role that lets them do the job. Who should own the accounts in the first place is covered in our article on who owns your website and domain.

  6. Install only from trusted sources. Use the official directory or the developer's own site, never a free copy of a paid product, and prefer plugins that were updated recently.

  7. Use secure connections. Make sure the site runs on https, and connect to the server with SFTP rather than plain FTP, because WordPress's guide notes that SFTP keeps your password from being sent in the clear.

  8. Watch for warning signs. Add the site to Google Search Console and check its Security Issues report, which tells you if Google has found injected code, spam pages or phishing. A free check that takes a minute: search Google for site:yourdomain.com and look for pages you didn't make, especially ones in another language or selling unrelated products.

If you pay someone to look after the site, ask them which of these they do and how often. What that kind of ongoing care costs is covered in our article on website maintenance costs.

What should you do if your site is already hacked?

Take a copy of the hacked site first, because you may need it to see how the attacker got in. Then change every password tied to the site (admin, hosting, database, registrar, email) and turn on two-step login. Restore from a backup made before the hack, or have the site cleaned, and then update everything, because restoring an old copy also restores the old hole. Look for extra admin users you didn't create.

Remember that half of the sites Sucuri cleaned had a backdoor, so deleting the visible spam is rarely the end of it. Once the whole site is clean, request a review in Search Console, explaining what happened, what you fixed and the result, as Google asks. Google warns that sending a request before the work is finished can make later reviews slower.

A note on who is telling you this

Tocnis builds and looks after websites, so we have an interest in telling you that sites need ongoing care. The steps above are ones an owner can do without hiring anyone, and most of the data here comes from security companies (Patchstack and Sucuri) that also sell protection, which is why we've labeled their figures as theirs.

Sources

More from the blog

Have something in mind?

The first call is free.