Taking over a cPanel server is the closest thing to opening a stranger’s attic. There’s almost always something surprising — a cron job nobody remembers writing, a backup destination nobody set up, an SSH key for a former contractor still on the server. The structured first 48 hours of an audit catches the dangerous surprises before they catch you.
The trade-off
You can do a takeover by jumping into immediate ticket queue work, or by running the structured audit first. The former feels faster; the latter prevents the inherited landmines from blowing up two weeks later in a postmortem you’ll have to write.
How to verify — the 48-hour audit
Hour 0-4 — credentials and access:
- List all WHM users and reseller accounts:
whmapi1 listacct | grep user - Identify and rotate root passwords. Confirm 2FA is enabled on WHM root.
- List SSH keys on root and all wheel-group users:
cat ~/.ssh/authorized_keysper user. - Audit API tokens: WHM > Manage API Tokens.
- Identify any backdoors disguised as system users:
awk -F: '$3<1000{print $1, $3, $6, $7}' /etc/passwd— look for shell access on system accounts.
Hour 4-12 — security posture:
6. Check fail2ban / CSF rules: csf -l if CSF is installed.
7. Audit SSL certificates: WHM > SSL/TLS > Manage AutoSSL. Note any with manual override.
8. Check ModSecurity status and which rules are active.
9. List installed cPanel plugins and their version: WHM > Plugins.
10. Check kernel and CloudLinux patch level: kcarectl --info.
Hour 12-24 — configuration drift:
11. Compare /var/cpanel/cpanel.config to a clean reference for surprising deviations.
12. Read all custom Exim ACLs / filters in /etc/exim.conf.local*.
13. Check Apache custom includes: WHM > Apache Configuration > Include Editor.
14. List all cron jobs (root, wheel, every cPanel user) and what they do.
15. Inventory mounted filesystems and any non-standard partitions.
Hour 24-48 — capacity and backups: 16. Disk and inode usage per account and global. 17. LVE state and fault history per account. 18. Backup destinations configured + last successful backup + last successful restore (probably never tested). 19. Mail queue, blocklist status, current sending volume. 20. Open ports vs configured firewall rules.
What to do
- Run the audit in this order. Don’t reorder; the credential layer comes first because everything else depends on it being clean.
- Document findings in a single takeover report. Hand it to the customer or new ops team at the 48-hour mark.
- Flag landmines but don’t fix everything immediately. Fix dangerous things (rogue SSH keys, exposed services); add the rest to the planned-changes backlog.
- Set the new baseline. The takeover report becomes the “known state at takeover” reference for future incident response.
- Don’t trust the prior operator’s documentation. Re-verify everything you find documented; documentation drifts faster than configuration.
Stack Harbor runs structured takeover audits as the first step of every cPanel server administration engagement.