Skip to content

Guide

WordPress security: the practical guide for businesses

By Lucas Weber, CyberSec42 · Updated 22 Oct 2026

CyberSec42

Securing WordPress mainly means applying updates reliably, running only necessary and trustworthy plugins, protecting accounts and logins, closing unneeded interfaces, running on current server software and keeping a backup whose restore has been tested. No single security plugin replaces these basics. This guide walks through the eight areas in order, with concrete steps, and ends with a checklist.

In short.

Updates and lifecycle

A reliable schedule instead of more tools.

Go to section

Plugins and their supply chain

Third-party code with full rights; check the source.

Go to section

Users, roles and login

Two-factor login, rights as needed.

Go to section

Interfaces and configuration

XML-RPC, file editor, error output.

Go to section

Server, PHP and hosting

Supported PHP version, no PHP execution in uploads.

Go to section

Backups and restore

Off-site, long enough, restore tested.

Go to section

Monitoring

Notice intrusions early.

Go to section

The incident plan

Set the order before it happens.

Go to section

Why WordPress sites get attacked

WordPress powers a large share of all websites. That makes it worthwhile for attackers to build tools that automatically scan the internet for sites with a particular flaw. Whether your site belongs to a corporation or a medical practice makes no difference. All that matters is whether the flaw is open.

A compromised site is valuable to attackers in several ways: as a sender of spam links that damage your search rankings, as a redirect to fraudulent pages, as storage for malware, as a source of data from contact forms and customer accounts, and as a stepping stone to other systems on the same server. For you this means downtime, reputational damage, warnings in browsers and search engines and, in some cases, reporting obligations under the GDPR.

The layers of a WordPress site

Content and dataform data, customer accounts, media · sections 6, 7
Accounts and loginadministrators, editors, application passwords · section 3
Plugins and themesthird-party code with full rights · sections 1, 2
WordPress core and interfacesREST API, XML-RPC, file editor · sections 1, 4
Server, PHP and hostingPHP version, file permissions, access · section 5

Every layer is an attack surface of its own. A flaw in a lower layer, like PHP2Shell in October 2026, affects every layer above it.

1. Updates and lifecycle

Most successful attacks exploit flaws for which an update has long been available. The most effective step is therefore a reliable update process, not an additional tool.

2. Plugins and their supply chain

Every plugin brings third-party code onto your server with the same rights as WordPress itself. How much the source matters was shown in October 2026 by the Rank Math PRO incident: for several hours, tampered copies containing a backdoor were delivered through the vendor's official update channel. Anyone who updated during that window was affected, despite doing everything right.

3. Users, roles and login

Stolen, guessed or reused passwords are one of the most common ways into a WordPress site. A few measures have a very strong effect here.

4. Interfaces and configuration

WordPress ships with features that many sites do not need, but that help attackers.

5. Server, PHP and hosting

WordPress is only as secure as the server it runs on. How important that is was shown in October 2026 by PHP2Shell: two critical flaws in PHP itself that affect every WordPress site, regardless of plugins.

6. Backups and restore

A backup is the insurance for when everything else fails. But it only helps if it meets three conditions.

7. Monitoring

No protection is complete. What matters is noticing an intrusion quickly, not when customers call or the browser shows a warning.

8. The incident plan

When it happens, order matters: preserve evidence first, then clean up, then change all credentials and return to a clean state. We describe the individual steps, including the question of reporting obligations, in the section "Suspected compromise". Decide in advance who makes decisions in an emergency, who has access to hosting and backups, and how to reach your provider. There is no time for that during an incident.

The checklist

AreaMeasure
UpdatesCore, plugins and themes current, fixed schedule, check after each update
UpdatesUnused plugins and themes deleted, abandoned ones replaced
PluginsOnly from the official directory or the vendor, checksums verified
LoginTwo-factor login for every account with editor or administrator rights
LoginNo shared accounts, rights as needed, user list reviewed quarterly
LoginUsernames not publicly retrievable, login attempts limited
InterfacesXML-RPC blocked if unused; file editor disabled; debug output off
ServerSupported PHP version, cross-checked in Site Health
ServerNo PHP execution in uploads, HTTPS, SFTP, sites separated
BackupOff-site copy, long enough retention, restore tested
MonitoringFile changes, new administrators, content and Search Console in view
IncidentResponsibilities, access and procedure set out in writing

Do it yourself or have it managed?

Much of this list is one-off work: cleaning up plugins, introducing two-factor login, closing interfaces, checking server settings. Other parts never stop: updates with checks, monitoring, restore tests and a quick response when a warning like PHP2Shell arrives.

For companies that do not want to keep track of this themselves, we offer both. A one-off hardening that checks and secures your site against this checklist, within a scope agreed in writing. And ongoing care that takes over updates, monitoring and restore tests, and checks whether your site is affected when new security warnings appear. We tailor the scope to your site and prepare an individual offer.

One-off hardening

  • Review against this checklist
  • Clean up plugins, introduce two-factor login
  • Harden interfaces and server settings
  • Written report with open items

Ongoing care

  • Updates with checks on a fixed schedule
  • Monitoring of files, accounts and content
  • Regular restore tests
  • Checks when new security warnings appear

Where does your WordPress site stand?

With the free external quick check we evaluate what your site serves publicly: the PHP version where visible, retrievable usernames, reachability of XML-RPC and recognisable software versions. No attacks and no access to your system.

Request a quick check

The quick check only evaluates publicly served information and does not replace a full security review. CyberSec42 provides independent technical security testing. It is not an accredited certification body and does not provide legal advice.

Frequently asked questions

Is WordPress insecure?

The WordPress core itself has active security maintenance and is fixed quickly. Most intrusions go through outdated or insecure plugins and themes, weak logins and outdated server software. A well-maintained WordPress site can be secured well.

Is a security plugin enough?

No. Security plugins can limit login attempts, monitor files and block known patterns. They do not make up for outdated plugins, missing two-factor login, an unsupported PHP version or an untested backup.

How often should I apply updates?

Security updates as soon as possible, within a few days for critical flaws. For other updates a fixed schedule is enough, for example weekly or every two weeks, with a short check of the most important pages afterwards.

How do I know my site has been hacked?

Typical signs are unknown administrator accounts, redirects to other sites, spam pages in search results, warnings in the browser or Search Console and new PHP files in the uploads folder. Often there are no visible signs at all, which is why monitoring matters.

What does it cost to secure a WordPress site?

That depends on size, plugin inventory and hosting. The free external quick check gives a first overview; we then prepare an individual offer for hardening or ongoing care.

Further reading

Sources