What cPHulk counts and what it blocks
exampleuser from many addresses can lock out the real owner from every location, even though the owner never typed a wrong password. With IP-based protection, one person's mistake on a shared office connection can block everyone behind the same public IP. Both look the same to the customer: "my password stopped working."
Mail is the most common source of failures that aren't attacks. A customer changes their email password in cPanel, but a laptop, a phone, and an old tablet still hold the previous password and keep retrying in the background. Each retry counts as a failure. The customer sees nothing until the block lands.
If you are still deciding whether cPHulk or CSF/LFD should handle SSH on the server, that comparison is covered in cPHulk or CSF/LFD: Which Should Block SSH Brute-Force on a WHM Server?. This guide assumes cPHulk is enabled and staying.
Take a baseline before touching anything
BASH
# Is cPHulk enabled?
whmapi1 cphulk_status
# Current whitelist and blacklist entries
whmapi1 read_cphulk_records list_name=white
whmapi1 read_cphulk_records list_name=blackBASH
# Recent block events logged by cphulkd
grep -i 'block' /usr/local/cpanel/logs/cphulkd.log | tail -n 50
# IPs that appear most often in block events
grep -i 'block' /usr/local/cpanel/logs/cphulkd.log | grep -oE '([0-9]{1,3}[.]){3}[0-9]{1,3}' | sort | uniq -c | sort -rn | head -n 20
# Recent failed cPanel/WHM/webmail logins
grep 'FAILED LOGIN' /usr/local/cpanel/logs/login_log | tail -n 50
# Failed SMTP authentication attempts seen by Exim
grep 'authenticator failed' /var/log/exim_mainlog | tail -n 20grep patterns. Logs also rotate. If you want a clean seven-day window, check how your server rotates these files and include the rotated copy. Dovecot authentication failures land in a different place depending on the OS, usually /var/log/maillog or /var/log/mail.log, or the journal on some systems.
Write down two numbers: total block events and the count for the top IP. These are rough, but they give you something concrete to compare against next week. The History Reports tab in WHM's cPHulk page shows the same data in a browser. It works well for a quick look, while the CLI is easier to repeat and diff.
Telling an attack from a locked-out customer
admin, test, root, random strings), or many IPs each try the same real username a few times. The second shape is the slow, distributed credential stuffing botnets use to stay under per-IP limits, usually with credentials leaked from other breaches. Hits against root over SSH or WHM from unfamiliar networks fall in the same bucket.
Legitimate lockouts look narrower. A single IP, one or two real account names, and failures that start shortly after a password change. Mail failures that repeat at a steady interval are a strong hint of a device retrying a stored password. The decisive check: the same IP has logged in successfully before.
Support engineers typically check that last point first, because it settles most cases. If an IP has a history of successful sessions for that account, it is almost certainly the customer. If it has never logged in successfully and is cycling through usernames, it is not.
Fixing legitimate lockouts without opening the door
Security warning: A whitelisted IP gets unlimited password guesses. Avoid whitelisting broad ISP or mobile carrier ranges just to stop tickets. Those ranges are shared with strangers, and a compromised machine inside them bypasses cPHulk entirely.Replace
203.0.113.10 below with the real address. The first command only reads. The others change cPHulk state.
BASH
# Has this IP had successful sessions before? A non-zero count is a good sign
grep -c '203.0.113.10' /usr/local/cpanel/logs/session_log
# Clear failed-login history for one confirmed IP so it can log in again
whmapi1 flush_cphulk_login_history_for_ips ip='203.0.113.10'
# Whitelist only a confirmed static IP, then verify it is on the list
/usr/local/cpanel/scripts/cphulkdwhitelist '203.0.113.10'
whmapi1 read_cphulk_records list_name=white