← LogEntry 039
Critical
May 2026
cPanel host infected with a miner and a worm, cleaned with no downtime
Shared hosting, RO
AlmaLinuxcPanel / WHMLiteSpeedsystemd
- Sites hosted
- 16
- Downtime
- 0
- Persistence mechanisms
- 5
Record
Context
A shared hosting server carrying sixteen client sites, running cPanel on AlmaLinux. Degraded performance and abnormal outbound traffic.
Problem
The server was running a miner and, on top of that, a worm scanning the internet for other vulnerable cPanel installs — meaning the client’s server was actively attacking other systems. Persistence was installed across five different mechanisms, and some of the suspicious binaries turned out to be legitimate web server components.
What I did
- 01Full inventory of processes, outbound connections and recently modified files
- 02Removed persistence from cron, profile scripts, shell files, systemd units and SysV services
- 03Explicitly separated the false positives — legitimate web server binaries that look like malware to any automated scan
- 04Stopped the worm and blocked its outbound scanning traffic
- 05Checked the hosted sites for webshells and injected files
Result
A clean server, with all sixteen sites online throughout the work. The procedure became a reusable runbook, including the list of files that look like malware but must not be touched.