Many attacks on WordPress websites are automated: bots scan the web for known vulnerabilities and weak logins—no matter who owns the website. That’s why WordPress security isn’t a question of company size, but of diligence.
At the same time, there’s no such thing as absolute security. So two things go hand in hand: a website that gives attackers as little surface as possible, and backups that get you back online quickly if something does go wrong. We show you how to secure WordPress, what matters with backups and what belongs in an emergency plan.
Common Attack Vectors in WordPress
Attackers usually exploit well-known weak spots. These are the ones you should know about:
- Outdated plugins and themes: Most of the publicly disclosed security vulnerabilities in the WordPress ecosystem don’t affect the core, but extensions. Once a vulnerability is published, attackers specifically go looking for websites that haven’t installed the update yet.
- Weak or reused passwords: Login credentials from data breaches at other services are tried out automatically.
- The login form: Out of the box, WordPress doesn’t limit failed login attempts. That means passwords can be guessed at scale.
- XML-RPC: This older interface lets attackers bundle many login attempts into a single request. Most websites no longer need it today.
- Exposed user list: On many installations, usernames can be discovered via author pages or the REST API—a technique known as user enumeration. All an attacker is missing then is the password.
- The file editor in the admin area: Anyone who takes over an administrator account can use the built-in editor to write malicious code straight into theme or plugin files.
Baseline Protection for Better WordPress Security: The Checklist
These measures close the typical gaps. None of them is enough on its own, but together they make automated attacks a lot more difficult:
- Install updates promptly: Keep WordPress, plugins, themes and your PHP version up to date. Test major updates in a staging environment first.
- Two-factor authentication: In addition to the password, a second factor is required, such as a code from an authenticator app. A stolen password alone is then no longer enough. For accounts with editor or administrator rights, this should be a given.
- Lock out after failed attempts: After several incorrect entries, access is temporarily blocked. That slows down automated password guessing.
- Reduce the attack surface: Disable XML-RPC if no service needs it, block user enumeration and turn off the file editor—for example with the line
define( 'DISALLOW_FILE_EDIT', true );inwp-config.php. - Be stingy with permissions: Not everyone needs administrator rights. Anyone who only writes posts can work with the Author or Editor role. Each person gets their own account, and accounts of people who no longer work on the site are removed.
- Delete unused plugins and themes: Deactivating isn’t enough. The files stay on the server and, depending on the vulnerability, can still be exploited.
- Check file integrity: WordPress.org publishes checksums for the core files. If a file doesn’t match, it has been modified—a red flag you should investigate. With WP-CLI, you can run the check using the command
wp core verify-checksums, or use a security plugin instead.
WordPress Backups That Hold Up When It Counts
A backup is only worth something if you can restore a working website from it. Here’s what matters:
- Complete: Both the database and the files are backed up—content, media, themes, plugins and configuration.
- Automatic: Backups run on a fixed schedule and additionally before every major update. How often depends on how frequently your content changes.
- Multiple versions: Keep older versions, too. Sometimes an infection isn’t noticed until much later—and then you need a backup from before it happened.
- Stored off-site: If your only backup sits on the same server as the website, it’s lost along with it in an outage or attack. The 3-2-1 rule has proven itself: three copies on two different storage media, one of them in a different location.
- Encrypted: Backups contain personal data, for example from forms or an online store. Encryption protects it if the storage falls into the wrong hands. With external storage services, you’ll usually need a data processing agreement under the GDPR as well.
- Restore tested: Regularly do a test restore of a backup, ideally in a staging environment. Only then do you know that it’s complete and how long the restore takes.
Many hosting providers also back up their customers’ websites. That’s a good addition, but it doesn’t replace your own backup.
Emergency Plan and Maintenance: Staying Prepared
If a website is compromised, it helps to have a plan in place beforehand. It answers the key questions in advance: Who’s responsible, where are the login credentials and backups, and how do you reach your hosting provider? When it actually happens, proceed like this:
- Contain: Put the website into maintenance mode or take it offline temporarily to protect your visitors.
- Secure access: Change the passwords for WordPress, hosting, SFTP and the database, and regenerate the security keys in
wp-config.php. This ends all existing login sessions. - Find the cause: The activity log, server logs and the core file checksums show when and where something was changed.
- Restore a clean version: Restore a backup from before the attack and then close the vulnerability—otherwise the website will quickly be hit again.
- Check reporting obligations: If personal data was affected, you may need to notify the data protection authority—under the GDPR, where feasible within 72 hours of becoming aware of the breach. Get advice on this.
- Follow up: Document what happened and derive measures from it.
To keep things from getting that far, security has to be an ongoing task: updates are released constantly, new vulnerabilities come to light, and backups need checking. If you don’t have the time for this in-house, you can hand off the maintenance. You can read how we handle it under Hosting & Maintenance.
From Our Work: Kakapo Security, Backup and Roles
Many of these measures can be implemented at the server level, through wp-config.php or with established plugins. We’ve developed our own tools for this, which are part of our KakapoWP plugin family. They all run locally on your server, with no third-party cloud:
- Kakapo Security: login lockout after failed attempts and two-factor authentication. The plugin shuts down XML-RPC, user enumeration and the file editor, checks the core files against the WordPress.org checksums and offers a malware scan as well as an activity log.
- Kakapo Backup: automatic, encrypted backups, one-click restore, staging and external storage such as S3, Google Drive or FTP.
- Kakapo Roles: create, clone and edit roles, set individual permissions via a permissions matrix, assign multiple roles per person and show content or menus by role. That way, everyone gets exactly the permissions they need.
That said, a plugin is no substitute for diligence: installing updates, managing logins and checking backups remain your job—no matter which tool you use. You’ll find an overview of all nine plugins at kakapowp.com.
Frequently Asked Questions
How often should I back up my WordPress website?
It depends on how often your content changes. For an online store with ongoing orders, daily backups make sense; for websites that rarely change, a weekly schedule is often enough. On top of that, a backup should be created before every major update.
Is my hosting provider’s backup enough?
It’s a useful addition. But check how long the backups are kept, whether you can trigger a restore yourself and where the data is stored. An additional, encrypted copy in a different location makes you independent.
Do I need a security plugin?
Not necessarily. Much of this can also be handled through the server configuration and wp-config.php. A plugin bundles the measures and lets you review them in the admin area, which makes maintenance easier. Make sure it’s actively developed—a security plugin is also an extension that needs updates.
Do you also take over maintenance for existing websites?
Just get in touch. In the initial consultation, we’ll look at how your website is built and what kind of support makes sense. It always starts with a look at where things currently stand—after that, we’ll tell you honestly where action is needed.
The Bottom Line
WordPress security comes from many small measures: up-to-date software, logins with a second factor, a small attack surface and carefully limited permissions. Backups are your safety net in case something happens anyway—provided they run automatically, are encrypted, are stored off-site and have been tested.
Want to know how well protected your WordPress website is? In a free initial consultation by phone or video call, we’ll go over where things stand and which steps make sense for you—whether you want to handle maintenance yourself or hand it off.