Security advisorywp2shell: WordPress core vulnerability. Updated August 7, 2026.

Read the advisory

Why Hackers Target Your Website, and How to Protect WordPress

Even small WordPress sites get hit by bots. Here is why, how attacks usually start, and the practical steps that cut most of the risk.

Topics Hardening & checklists Beginner guides

Lars Koudal

Updated Published

You do not need to be a big brand to get attacked. Most WordPress compromises start with automated scans looking for weak logins, outdated plugins, or known holes. Size is almost irrelevant.

Why small sites still get hit

Hackers (and the bots they run) usually want one of these outcomes:

  1. Credentials and customer data to sell or reuse
  2. A foothold to send spam, inject SEO spam, or host malware for visitors
  3. Compute or redirects for crypto mining, phishing pages, or traffic theft
  4. Practice and scale because small sites are easy and plentiful

If your site collects emails, takes payments, or just has a login form, it is useful to someone. Even a brochure site can be turned into a spam relay or a malware drop.

Why attackers pick a site (even yours)

Automated campaigns rarely “choose” you personally. They score easy wins:

  1. Weak or reused passwords. Default-ish admin credentials and passwords recycled from other breaches still open a lot of sites. See top WordPress passwords.
  2. Public information. Author archives, WHOIS, LinkedIn, and old blog posts often reveal usernames and tech stack details bots can try next.
  3. Unpatched software. Public CVEs for popular plugins get weaponized quickly.
  4. High-value or high-visibility targets. Stores, membership sites, and busy blogs are worth more when the bot succeeds, but low-value sites still get swept because scanning is cheap.
  5. Soft infrastructure. Open Wi-Fi admin logins, shared “team” passwords, and forgotten contractor accounts make the human layer easy.

How they shortlist targets: scan for known plugin versions, try common logins, and move on. Ease of access beats prestige.

How WordPress sites usually get compromised

The entry points rarely look fancy:

  • Outdated plugins or themes with public CVEs
  • Abandoned software that never gets patched
  • Weak or reused admin passwords
  • Brute-force and credential stuffing against wp-login.php
  • Nulled or shady “premium” plugins that already contain backdoors
  • Old WordPress core that missed a security release

WordPress core itself is generally solid when you keep it updated. Most of the risk sits in the plugins, themes, and accounts around it.

Practical protection that actually helps

You will never make a site “unhackable.” You can make it a poor target.

  1. Update on a schedule. Core, plugins, and themes. Delete what you do not use.
  2. Use strong, unique passwords in a password manager. Prefer long random passwords over clever phrases you reuse.
  3. Turn on 2FA for administrators (and anyone who can install plugins).
  4. Limit login abuse. Rate-limit failed logins and consider renaming the login URL so bots stop hammering the default path.
  5. Run a firewall and malware scanning. Block known bad traffic early, then scan for suspicious files and vulnerable software.
  6. Keep clean backups you can restore without guessing. Off-site is better than “I think the host has one.”

Security Ninja covers a lot of this in one plugin: security tests, vulnerability checks, cloud firewall, malware scanning, login protection, and 2FA. Start free on WordPress.org, or go Pro when you want the full toolkit.

If you already suspect a compromise

Do not keep publishing through a dirty site. Take it seriously, restore from a clean backup if you have one, and close the hole that got them in. If you are locked out or the infection keeps coming back, hire us for cleanup or a security review.

Related reading: signs your WordPress site is hacked, plugin security risks, and what to do after a hack.

Found this useful? Share it.