A practical hardening checklist for cPanel & WHM servers

cPanel & WHM ships with sensible defaults, but a few changes make a large difference to how hard a server is to compromise. This is the order we'd work through on a new server.
Access
- SSH: key-based login only, root password login off, and SSH allowed from your admin addresses if you can.
- Two-factor authentication for WHM (Security Center › Two-Factor Authentication) and encouraged for cPanel users.
- cPHulk or an equivalent brute-force protection on, with your office and monitoring IPs allowlisted.
- Unique reseller and root passwords, stored in a password manager.
Firewall
- A host firewall (for example CSF) with only the ports you use open.
- Automatic blocking of repeat offenders across SSH, cPanel, webmail, FTP and mail.
- Shared block lists across servers if you run more than one.
Web application layer
- ModSecurity on (Security Center › ModSecurity Configuration) with the OWASP rule set, plus any vendor rules you trust.
- Watch the ModSecurity hits list for the first week and add narrow exclusions where a customer's application needs them.
PHP
- Use PHP-FPM and current PHP versions; remove versions no site uses.
- Keep
allow_url_includeoff. Considerdisable_functionsfor functions your sites don't need, after testing. - Run PHP as the account user (PHP-FPM or suPHP-style) so one hacked site can't write to another.
Accounts and services
- Turn off services you don't use (FTP if everyone uses SFTP, for example).
- Shell access only for users who need it, ideally jailed.
- Review accounts with unusual mail volume or CPU usage regularly.
Backups
- Daily backups stored off the server, with retention long enough to predate a slow-burning compromise.
- Test a restore every few months.
Updates and monitoring
- Automatic cPanel and OS updates on.
- Malware scanning of all accounts, with quarantine.
- Alerts for new admin users, unusual outbound mail and load spikes.
TurnUpSecurity Shield covers several of these at once on cPanel servers: real-time blocking for every login service, a ModSecurity vendor rule set managed through WHM, malware scanning with quarantine, a WHM dashboard and a page for each cPanel user, all while leaving CSF and cPanel's own settings untouched.