{
    "title": "How to spot and stop a brute force attack on WordPress",
    "seo_title": "WordPress brute force attacks: how to spot and stop them",
    "h1": "How to spot and stop a brute force attack on WordPress",
    "description": "A guide to spotting brute force attacks on WordPress in your logs (dictionary, credential stuffing, botnets) and the protections that stop them.",
    "lead": "Dictionary attacks, credential stuffing, networks of compromised machines: what really happens behind the thousands of login attempts a WordPress site receives, and the defenses that matter.",
    "language": "en",
    "locale": "en-US",
    "type": "article",
    "url": "https://www.wp-feint.com/wordpress-brute-force-attacks-explained/",
    "canonical": "https://www.wp-feint.com/wordpress-brute-force-attacks-explained/",
    "markdown": "https://www.wp-feint.com/wordpress-brute-force-attacks-explained/index.md",
    "json": "https://www.wp-feint.com/wordpress-brute-force-attacks-explained/index.json",
    "published": "2026-07-23T07:00:00+00:00",
    "modified": "2026-11-23T09:44:21+00:00",
    "site": {
        "name": "WP Feint",
        "url": "https://www.wp-feint.com/"
    },
    "translations": [
        {
            "language": "en",
            "hreflang": "en-US",
            "title": "How to spot and stop a brute force attack on WordPress",
            "url": "https://www.wp-feint.com/wordpress-brute-force-attacks-explained/",
            "markdown": "https://www.wp-feint.com/wordpress-brute-force-attacks-explained/index.md",
            "json": "https://www.wp-feint.com/wordpress-brute-force-attacks-explained/index.json"
        },
        {
            "language": "fr",
            "hreflang": "fr-FR",
            "title": "Comment repérer et stopper une attaque par force brute sur WordPress",
            "url": "https://www.wp-feint.com/fr/force-brute-wordpress-explication/",
            "markdown": "https://www.wp-feint.com/fr/force-brute-wordpress-explication/index.md",
            "json": "https://www.wp-feint.com/fr/force-brute-wordpress-explication/index.json"
        },
        {
            "language": "es",
            "hreflang": "es-ES",
            "title": "Cómo detectar y frenar un ataque de fuerza bruta en WordPress",
            "url": "https://www.wp-feint.com/es/ataque-fuerza-bruta-wordpress/",
            "markdown": "https://www.wp-feint.com/es/ataque-fuerza-bruta-wordpress/index.md",
            "json": "https://www.wp-feint.com/es/ataque-fuerza-bruta-wordpress/index.json"
        },
        {
            "language": "de",
            "hreflang": "de-DE",
            "title": "So erkennst und stoppst du Brute-Force-Angriffe auf WordPress",
            "url": "https://www.wp-feint.com/de/brute-force-angriff-wordpress-erklaert/",
            "markdown": "https://www.wp-feint.com/de/brute-force-angriff-wordpress-erklaert/index.md",
            "json": "https://www.wp-feint.com/de/brute-force-angriff-wordpress-erklaert/index.json"
        },
        {
            "language": "it",
            "hreflang": "it-IT",
            "title": "Come individuare e fermare un attacco di forza bruta su WordPress",
            "url": "https://www.wp-feint.com/it/attacco-forza-bruta-wordpress-spiegato/",
            "markdown": "https://www.wp-feint.com/it/attacco-forza-bruta-wordpress-spiegato/index.md",
            "json": "https://www.wp-feint.com/it/attacco-forza-bruta-wordpress-spiegato/index.json"
        },
        {
            "language": "pt",
            "hreflang": "pt-BR",
            "title": "Como detectar e deter um ataque de força bruta no WordPress",
            "url": "https://www.wp-feint.com/pt/ataque-forca-bruta-wordpress-explicado/",
            "markdown": "https://www.wp-feint.com/pt/ataque-forca-bruta-wordpress-explicado/index.md",
            "json": "https://www.wp-feint.com/pt/ataque-forca-bruta-wordpress-explicado/index.json"
        },
        {
            "language": "nl",
            "hreflang": "nl-NL",
            "title": "Zo herken en stop je een brute-force-aanval op WordPress",
            "url": "https://www.wp-feint.com/nl/brute-force-aanval-wordpress-uitgelegd/",
            "markdown": "https://www.wp-feint.com/nl/brute-force-aanval-wordpress-uitgelegd/index.md",
            "json": "https://www.wp-feint.com/nl/brute-force-aanval-wordpress-uitgelegd/index.json"
        }
    ],
    "headings": [
        {
            "level": 1,
            "text": "How to spot and stop a brute force attack on WordPress"
        },
        {
            "level": 2,
            "text": "What exactly are we talking about"
        },
        {
            "level": 2,
            "text": "The three variants to know"
        },
        {
            "level": 3,
            "text": "The dictionary attack"
        },
        {
            "level": 3,
            "text": "Credential stuffing"
        },
        {
            "level": 3,
            "text": "Distributed brute force"
        },
        {
            "level": 2,
            "text": "Why wp-login.php and xmlrpc.php"
        },
        {
            "level": 2,
            "text": "What you see in your logs"
        },
        {
            "level": 2,
            "text": "Defenses, in order of effectiveness"
        },
        {
            "level": 2,
            "text": "With WP Feint"
        },
        {
            "level": 3,
            "text": "Key takeaways"
        },
        {
            "level": 2,
            "text": "Sources"
        }
    ],
    "body": "Every public WordPress site receives automated login attempts, often from the day it goes live. Most of them fail, but they eat up resources, and a single weak or reused password is all it takes for one to succeed. This article explains the three main variants of the attack, how to spot them in your logs and which protections actually change the outcome.\n\nQuick definition: [Brute-force attack](https://www.wp-feint.com/glossary/brute-force-attack/). Ready-made solution: [WordPress brute force protection with WP Feint](https://www.wp-feint.com/features/login-attempt-limiting/).\n\n## What exactly are we talking about\n\nThe official WordPress documentation defines a brute force attack as an automated, repeated attempt at username/password pairs until one works. It makes two points that are often overlooked: these attacks usually come from **networks of compromised machines** (botnets), and therefore from a very large number of addresses, and even when they fail, they can **overload the server**.\n\nThe scale is documented. In its 2024 annual report, Wordfence says it blocked **more than 55 billion** password attack attempts (brute force, credential stuffing and their variants), coming from nearly **136 million** distinct IP addresses. The same report notes a steady decline in these attacks over the year, which it partly attributes to hosting provider protections and better password practices. Less frequent does not mean harmless: they remain the background noise of every WordPress site.\n\n## The three variants to know\n\n![Three columns: dictionary attack, credential stuffing and distributed brute force, with the most effective defense for each](https://www.wp-feint.com/media/trois-familles-en.webp)\n\n### The dictionary attack\n\nThe bot tries lists of common passwords against a username it believes is valid: `admin`, the site name or the name of an author found on the site. It is the oldest form and the least effective against a long, random password. It still works against short passwords, variations of the site name, or dictionary words followed by a year.\n\n### Credential stuffing\n\nHere, no password is guessed. OWASP describes *credential stuffing* as the automated injection of username/password pairs stolen in breaches of other services. If an administrator uses the same password for their WordPress account and for a service that was breached, the attacker gets in on the first try. No complexity rule protects against this: only a password that is **never reused**, plus [two-factor authentication](https://www.wp-feint.com/glossary/two-factor-authentication/), neutralizes it.\n\n### Distributed brute force\n\nBotnets split the list across thousands of addresses. Each address makes only a few attempts, sometimes several minutes apart. A simple \"5 failures, then block the address\" rule stops some of them, but not all. That is why effective protections combine several layers, from the server down to the account.\n\n| Variant | What the attacker has | Signal in the logs | What stops it |\n| --- | --- | --- | --- |\n| Dictionary | A likely username, a list of passwords | Many failures from a few addresses | Long, unique password, attempt limiting |\n| Credential stuffing | Pairs stolen elsewhere | Few attempts per account, often email addresses | Password never reused, two-factor authentication |\n| Distributed | A botnet | Failures scattered across thousands of addresses | Upstream filtering (firewall, CDN), two-factor authentication |\n\n*Comparison of the three variants*\n\n## Why wp-login.php and xmlrpc.php\n\nTwo files accept a username and password without going through an intermediate HTML page.\n\n- `/wp-login.php`: the standard login page. Its address is the same on every WordPress site, so a bot has nothing to look for.\n- `/xmlrpc.php`: the [XML-RPC](https://www.wp-feint.com/glossary/xml-rpc/) interface, historically used by remote publishing apps. The WordPress documentation calls it a frequent brute force target and advises disabling it if you do not use it. We cover this topic in detail in a dedicated article on XML-RPC.\n\nA third factor helps the attacker: **knowing the username**. By default, the WordPress error message distinguishes an unknown username (\"is not registered on this site\") from an incorrect password for an existing username. This behavior is visible in the code of `wp-includes/user.php`. Combined with the other ways of enumerating accounts, it lets the bot focus its attempts on real usernames.\n\n## What you see in your logs\n\nThe server access log ([Apache](https://www.wp-feint.com/glossary/apache-http-server/), Nginx or LiteSpeed, often available in your hosting control panel) is the best witness. An attack looks like this (documentation addresses, reserved for examples):\n\n```\n203.0.113.24 - - [12/Oct/2026:03:14:07 +0200] \"POST /wp-login.php HTTP/1.1\" 200 4512 \"-\" \"Mozilla/5.0 ...\"\n198.51.100.9 - - [12/Oct/2026:03:14:09 +0200] \"POST /xmlrpc.php HTTP/1.1\" 200 412 \"-\" \"Mozilla/5.0 ...\"\n203.0.113.77 - - [12/Oct/2026:03:14:12 +0200] \"POST /wp-login.php HTTP/1.1\" 200 4512 \"-\" \"Mozilla/5.0 ...\"\n```\n\nThe key is the **response code**. A failure on `wp-login.php` returns a 200 status: the page redisplays the form with the error message. A successful login returns a **302 redirect** to the admin area (the `wp_safe_redirect()` function, whose default status is 302). On `xmlrpc.php`, a failure is also a 200 status: the error is in the body of the XML response.\n\n![Diagram: a bot sends POST requests to wp-login.php and xmlrpc.php; failures return 200, a successful login returns 302](https://www.wp-feint.com/media/2026/10/journal-codes-en.webp)\n\nTo read a log quickly, look for:\n\n- a large number of `POST` requests to `/wp-login.php` or `/xmlrpc.php` in a short time;\n- identical user agents on very different addresses;\n- a `302` after a series of `200` responses, especially if it comes from an address you do not recognize;\n- spikes in CPU load or PHP memory at the same times.\n\nA suspicious 302 is reason enough to check right away the list of administrator users, the latest logins and any recently installed plugins.\n\n## Defenses, in order of effectiveness\n\nNo single measure is enough, but they do not all carry the same weight.\n\n1. **Long, unique passwords managed by a password manager.** The NIST guidelines (SP 800-63B-4, August 2025) require at least 15 characters for a password used on its own, checking against a list of compromised passwords, and dropping forced periodic changes.\n2. **Two-factor authentication**, at least for administrators. The WordPress documentation points out that core does not provide it: you need a plugin or an identity provider. With it, a guessed or stolen password is no longer enough.\n3. **Limiting attempts** per IP address, to slow down dictionary attacks. It has limits against botnets and proxies, which we detail in our article on limiting login attempts.\n4. **Upstream filtering**: the host's firewall, a CDN or server rules that rate-limit `wp-login.php` and `xmlrpc.php`. The WordPress documentation notes that blocking at the application level still consumes PHP on every request, whereas upstream filtering also protects the server load.\n5. **Close what you do not use**: XML-RPC if no app relies on it, and no account named `admin`.\n6. **Change the login URL**: it does not protect a weak password, but it removes a lot of noise from the logs and reduces the load.\n\nOne reassuring point: since WordPress 6.8, user passwords are hashed with bcrypt instead of phpass. This changes nothing for online attempts against the form, but it makes cracking the hashes much more expensive if the database is stolen.\n\n| Measure | Against dictionary attacks | Against credential stuffing | Against server load |\n| --- | --- | --- | --- |\n| Long, unique password | Yes | Yes (if never reused) | No |\n| Two-factor authentication | Yes | Yes | No |\n| Attempt limiting per IP | Largely | Partially | Slightly |\n| Upstream filtering (firewall, CDN) | Partially | Partially | Yes |\n| Custom login URL | Reduces noise | Reduces noise | Yes, for wp-login.php |\n\n*What each measure protects against*\n\n## With WP Feint\n\nThe free plugin Feint Security lets you set a [custom login URL](https://www.wp-feint.com/features/custom-login-page/) and close `wp-login.php` to anonymous visitors once the new address has been tested, as well as block XML-RPC and pingbacks. The [bot traps](https://www.wp-feint.com/features/bot-traps/) count requests to these closed addresses, which gives you a concrete measure of the noise avoided. WP Feint Pro adds [login attempt limiting](https://www.wp-feint.com/features/login-attempt-limiting/) per IP address and [two-factor authentication](https://www.wp-feint.com/features/two-factor-authentication/) enforced by role. None of these features replaces a unique password: they reduce exposure and the cost of an attack.\n\n*Video in French (WPMarmite): why the \"admin\" account is the first target of bots and how to protect it.*\n\n*How brute force attacks on WordPress work and the main protections (video from the publisher of a login limiting plugin).*\n\n### Key takeaways\n\n- Brute force attacks mainly target `wp-login.php` and `xmlrpc.php`, from thousands of addresses.\n- Credential stuffing succeeds on the first try if a password is reused: complexity is not enough.\n- In the logs, a failure returns 200 and a successful login returns 302.\n- Priorities: a long, unique password, two-factor authentication for administrators, then attempt limiting and upstream filtering.\n\n## Sources\n\n- [WordPress Developer Resources: Brute Force Attacks](https://developer.wordpress.org/advanced-administration/security/brute-force/)\n- [OWASP: Credential stuffing](https://owasp.org/www-community/attacks/Credential_stuffing)\n- [NIST SP 800-63B-4: Authentication and Authenticator Management (August 2025)](https://pages.nist.gov/800-63-4/sp800-63b.html)\n- [Make WordPress Core: WordPress 6.8 will use bcrypt for password hashing](https://make.wordpress.org/core/2025/02/17/wordpress-6-8-will-use-bcrypt-for-password-hashing/)\n\nOther sources consulted: official vendor pages and Wordfence database.",
    "categories": [
        "Attacks and brute force"
    ],
    "format": "application/json"
}