Brand, websites, SEO & GEO and automations for small businesses.

WhatsApp
Guides

WordPress Security: Updates, Backups, and Malware Recovery

WordPress security for SMEs: automated updates, 3-2-1 backup strategies, access management, and emergency response steps to clean a hacked website.

Compact white safe slightly open displaying a blue key inserted into the mechanical lock

WordPress powers more than four in ten websites worldwide, according to W3Techs telemetry. That market share makes it accessible, but also marks it as an automated target: an automated bot discovering a vulnerability in a popular plugin can probe millions of servers within hours. Fortunately, securing a commercial WordPress website relies primarily on disciplined operational hygiene: running timely updates, verifying offsite backups, restricting administrative logins, and active monitoring. This guide details each protective step, followed by emergency recovery procedures if a site has been compromised.

Where do security attacks on WordPress sites originate?

In the overwhelming majority of incidents, breaches occur through unpatched plugins, obsolete themes, or weak administrative credentials. WordPress core code itself is rarely compromised.

According to cybersecurity research published by Patchstack, 11,334 new vulnerabilities were identified across the WordPress ecosystem, with 91% located in plugins and 9% in themes. Strictly six vulnerabilities touched WordPress core, all classified as low severity. The report observed that widely tracked high-severity exploits face automated mass probing within a median window of five hours following public disclosure.

These automated attacks almost never target your business specifically. They are automated scrapers scanning for specific vulnerable plugin versions or brute-forcing administrative login forms. An accounting practice and a neighbourhood restaurant face the exact same automated probes.

Software updates: automated patching versus manual oversight

Minor WordPress updates (maintenance security patches, such as progressing from 7.1.2 to 7.1.3) install automatically by default since version 3.7, per official documentation. Conversely, updates for third-party plugins and themes do not run automatically unless explicitly configured within your administration panel.

Official release documentation on WordPress.org is explicit: strictly the most current release series is actively maintained and secure for commercial operations. The security team announced in June 2025 the cessation of courtesy backports for legacy branches 4.1 through 4.6. Running an abandoned legacy branch leaves your business exposed, even if the website visually appears to function normally.

Three practical habits:

  1. Enable automatic updates for reputable plugins. For complex mission-critical extensions (e-commerce carts or booking engines), updating weekly following a verified backup is acceptable. Postponing updates for six months is not.
  2. Deactivate and permanently delete unneeded plugins. A deactivated plugin left dormant on your server remains a crawlable attack vector.
  3. Upgrade server PHP runtimes. WordPress documentation recommends PHP 8.3 or newer, paired with MySQL 8.0 or MariaDB 10.11 minimum. Configure these server settings through your hosting panel, detailed in our guide on choosing website hosting.

If an update causes a layout conflict, the solution is never to halt security patches: it is to roll back swiftly to a pre-update snapshot taken minutes beforehand.

Automated backups: the 3-2-1 principle and restoration testing

A backup exists for a single operational purpose: restoring a compromised website to clean production in under an hour. An untested archive provides zero guarantee.

Data protection authorities advise following the 3-2-1 framework: maintaining three copies of data, across two separate storage media types, with one stored completely offsite. Regulators strongly emphasize testing restoration integrity rather than attempting a first recovery during a crisis. For WordPress, this translates to:

Backup copyStorage locationStrategic rationale
Primary copyDaily hosting snapshot at the web hostConvenient for fast rollback, but vulnerable to hosting failures
Secondary copyEncrypted external cloud storage with another providerCompletely decoupled from website infrastructure
Tertiary copyOffsite offline archive (downloaded periodically)Total protection against ransomware or host account suspension

Every archive must capture both the database (articles, orders, user accounts, options) and server filesystem, particularly the wp-content directory (themes, plugins, uploaded media).

The most pervasive error we uncover during audits: a backup plugin writing archive zip files onto the exact same server hosting the website. If the server is compromised or wiped, the backups vanish simultaneously. The second issue: zero disaster recovery testing. Schedule an annual test drill to restore an archive into an isolated sandbox.

User access management: locking the front door

The login URL /wp-login.php represents the primary target for automated credential stuffing. Three straightforward practices eliminate virtually all unauthorized access: lengthy unique passwords, multi-factor authentication, and strict role allocation.

WordPress security hardening documentation advises that an attacker gaining administrative rights can execute arbitrary code, recommending mandatory two-factor authentication for privileged accounts. Equally essential:

  • Never use the username "admin", and ensure public display names on articles differ from backend usernames.
  • Assign distinct logins per individual team member, restricting permissions to the lowest necessary role. When a staff member departs, close their account immediately.
  • Throttle failed login attempts: lock IP addresses after multiple failed password attempts. Modern managed hosts integrate this at the server firewall level.
  • Disable the theme file editor from the administrative dashboard by placing a directive in wp-config.php: define( 'DISALLOW_FILE_EDIT', true );. This blocks administrative accounts from modifying PHP files via the browser.
  • Install plugins exclusively from WordPress.org or verified commercial vendors, never installing pirated premium plugins downloaded from unauthorized third-party repositories.
  • Enforce HTTPS encryption everywhere, including login screens, preventing cleartext password interception over public networks; review HTTPS and SSL certificates.

Proactive monitoring: detecting breaches swiftly

A compromised website often operates undetected for weeks because attackers rarely break visual templates: they secretly inject spam links, create hidden pharmacy doorway pages, or inject malicious redirect scripts for mobile traffic.

Three accessible monitoring layers: Google Search Console, which flags detected malware payloads and suspicious indexed URLs (such as unauthorized foreign-language pharmacy links); server authentication logs, recording user activities and modification timestamps; and automated file integrity scanners.

Studio guidance: for an independent business, the critical question is not which security plugin to install, but who actively checks alerts. An automated alert nobody reads prevents zero breaches. Assign one team member a recurring thirty-minute monthly maintenance slot (updates, alerts, backups) and maintain a specialist emergency contact. That structured methodology is what Resolve agency (Re:solve) delivers for clients. For an immediate diagnostic, our free audit tool scores security fundamentals in minutes.

What to do if your WordPress site is hacked

If your website is compromised, follow this strict response sequence: isolate the domain, preserve digital evidence, restore clean backups, rotate credentials, and verify statutory compliance disclosures.

  1. Activate maintenance mode to shield visitors from malicious redirects, and notify your hosting support team immediately.
  2. Snapshot the infected filesystem and database prior to cleanup to document the security incident.
  3. Identify the breach timestamp and entry vector via server access logs, modified file timestamps, or known plugin vulnerabilities, preventing immediate re-infection.
  4. Restore a clean backup preceding the intrusion date, then immediately patch all core files, themes, and plugins. Without a verified clean backup, manual malware removal is time-consuming: engage a cybersecurity professional.
  5. Rotate all administrative credentials: WordPress users, database passwords, FTP/SSH keys, hosting panel logins, and regenerate security salts inside wp-config.php to invalidate open sessions.
  6. Verify statutory reporting obligations. If your website processes customer personal records, a breach represents a personal data incident under GDPR. European privacy regulations require reporting incidents within 72 hours where feasible, alongside notifying affected users if risks are high. Review regulatory criteria in our guide to GDPR and cookies for SMEs.
  7. Request a formal security review from Google inside Search Console if your site was flagged with malware warnings.

A representative example: an artisan discovers their site redirects search traffic to gaming portals while loading normally when typed directly. Typical symptoms of a plugin unpatched for two years. Restoring a clean snapshot from the preceding week, removing the vulnerable plugin, and rotating credentials resolved the breach in an afternoon, because valid backups existed.

Frequently asked questions

Do I need a dedicated security plugin on WordPress?

A security plugin helps, but cannot compensate for poor operational hygiene: timely updates, offsite backups, and strong passwords. A reputable plugin adds IP brute-force throttling, file checksum audits, and email notifications, which are valuable provided someone actively reviews alerts.

How often should a WordPress website be updated?

Core security patches install automatically. For plugins and themes, a weekly review is ideal, or automated updates paired with daily offsite backups. Delaying updates for several months leaves known vulnerabilities exposed to automated bots, which exploit new flaws within hours per Patchstack data.

My web host provides automated backups; is that enough?

Host backups represent an excellent primary snapshot, but should never stand alone: they reside within the exact same hosting infrastructure as your live site. Maintain an independent secondary copy with a separate cloud provider and an occasional offline download, verifying recovery quarterly.

Further reading

Start today.

We review your brand, website and online visibility, then set out your priorities.

Chat on WhatsApp