Operators ask whether cPHulk or CSF is “better” for brute-force defense. The framing is wrong. They catch different classes of attack. The question that matters is: which surfaces does my host expose, and which tool is watching each of them. Once you draw that picture, the answer is almost always “both, with no overlap on the same surface.”
What’s happening
cPHulk is application-aware — it understands cPanel, WHM, and Webmail logins as objects, can lock an account at the application layer, and integrates with cPanel’s session model. CSF/LFD is log-driven — it watches files like auth.log, exim_mainlog, pure-ftpd.log and writes iptables blocks. cPHulk’s locks survive even if the firewall is flushed; CSF’s blocks survive even if the application is misconfigured.
How to verify
cphulk_status
whmapi1 cphulk_get_brutes | head
csf -td | head
grep -E "Failed password|authentication failure" /var/log/secure | head -20
grep -E "503|535" /var/log/exim_mainlog | head
Compare what each tool blocked yesterday. If cPHulk has 50 entries and CSF has 5, your CSF rules are probably too loose; if the reverse, cPHulk thresholds may be off.
The fix
- Map each login surface to a single owner.
- cPanel/WHM/Webmail logins → cPHulk
- SSH → CSF/LFD (or cPHulk if you also enable that, but pick one)
- FTP → CSF/LFD
- Exim SMTP auth → CSF/LFD via
LF_EXIMSYNTAX - Custom Apache logins → CSF/LFD with a custom
RT_*entry
- Disable double enforcement on the cPanel/WHM surface. cPHulk’s
Block IP addresses at the firewall levelis a fork in the road — if you turn it on, CSF will see cPHulk’s blocks in iptables and you have two sources of truth. We leave it off. - Centralize whitelists. The lockout that takes a customer 4 hours to resolve is usually because the operator forgot to whitelist their IP in both systems.
- Read the logs together. A weekly grep of
/var/log/secure,/var/log/exim_mainlog, and/usr/local/cpanel/logs/access_logfor the same hour tells you whether brute force is going up, down, or shifting surfaces.
Stack Harbor maintains the surface-to-tool map on every host under managed cPanel operations.