WordPress Login Attack Response Checklist

halfbrain_logo512adminJune 14, 2026
1 lượt xem

WordPress Login Attack Response Checklist

A WordPress login attack usually appears as repeated requests to wp-login.php or XML-RPC, many failed login attempts, high CPU usage or security plugin alerts. This checklist helps you respond without blocking legitimate access by mistake.

Core principle

First confirm the pattern. Then reduce attack surface. Do not randomly block traffic until you know whether requests are abusive, automated or legitimate.

Checklist

  1. Check security plugin alerts if available.
  2. Check Nginx access log for wp-login.php requests.
  3. Check XML-RPC request volume.
  4. Identify top IPs and user agents.
  5. Confirm whether CPU or PHP-FPM is affected.
  6. Enable login attempt limits.
  7. Consider CAPTCHA or additional login protection.
  8. Block abusive IPs only when confirmed.
  9. Disable XML-RPC if not needed.
  10. Monitor after mitigation.

Reusable lesson

Login attacks are both a security and resource problem. Even failed login attempts can consume PHP and database resources.

Checklist Type WordPress Security
Level Intermediate
Risk Level High Risk
Estimated Time 30–75 minutes

When to Use This Checklist

Use this checklist when WordPress receives repeated login attempts, brute force alerts or suspicious wp-login.php traffic.

Required Tools

WordPress admin, security plugin, Nginx access log, firewall, SSH access, monitoring tool

Before You Start

Do not block search engine or trusted service IPs by mistake. Confirm abusive behavior from logs first.

Structured Checklist Steps

  1. Check security alerts.
  2. Check wp-login.php requests.
  3. Check XML-RPC requests.
  4. Identify top IPs.
  5. Check CPU impact.
  6. Enable login limits.
  7. Add CAPTCHA if needed.
  8. Block confirmed abuse.
  9. Disable XML-RPC if unused.
  10. Monitor after mitigation.

Rollback Plan

If a firewall rule blocks legitimate access, remove the rule and use a more specific protection method such as login rate limiting.

Common Mistakes

  • Blocking IPs blindly.
  • Ignoring XML-RPC.
  • Using weak admin passwords.
  • No login limit.
  • Not checking resource impact.

Related Commands

sudo grep "wp-login.php" /var/log/nginx/access.log | tail -n 50
sudo grep "xmlrpc.php" /var/log/nginx/access.log | tail -n 50
sudo awk '{print $1}' /var/log/nginx/access.log | sort | uniq -c | sort -nr | head
top

Share:

Disclaimer: The guides, checklists, commands, and examples on HalfBrain.net are provided for educational and operational reference only. Server environments, hosting providers, software versions, security settings, and WordPress configurations can vary, so you should always review commands before running them on your own system. We do our best to keep the content accurate and useful, but we cannot guarantee that every command, configuration, or recommendation will fit every environment. Always back up your website, database, and server configuration before making changes. HalfBrain.net is not responsible for data loss, downtime, security incidents, misconfiguration, or other issues that may result from applying the information on this website. Use the material at your own discretion.

Leave a Reply

Your email address will not be published. Required fields are marked *