Patch and build state
Checks WHM/cPanel build markers and flags systems that still need version review.
cPanel incident first pass
A read-only local IOC detector for WHM/cPanel servers. It checks patch state, ransomware traces, Mr_Rot13 Filemanager indicators, cron, SSH keys, web paths, and logs.
# inspect before running
curl -fsSLO https://raw.githubusercontent.com/limo57640-crypto/cpanel-cve-41940-detector/main/detect.sh
less detect.sh
# run on the server
sudo bash detect.sh
# expected status words
CLEAN | SUSPICIOUS | COMPROMISED | ERROR
Patching cPanel is not the same as proving the server is clean. This page is built around residue.
Checks WHM/cPanel build markers and flags systems that still need version review.
Reviews root cron, SSH authorized keys, cPanel session artifacts, and suspicious web paths.
Looks for .sorry-style encrypted file traces, Mr_Rot13 Filemanager residue, and related indicators.
Use the status in the incident timeline and preserve evidence before deleting files.
No obvious IOC matched with the current local access.
An anomaly needs manual review before the server can be closed.
A strong IOC matched. Snapshot and preserve logs before cleanup.
The script could not complete, usually because root access or cPanel paths were missing.
Open a GitHub issue for tool bugs, false positives, OS or cPanel version handling, or non-sensitive documentation fixes.
Use Ping7 repair when the result is SUSPICIOUS or COMPROMISED, or when live domains, customer files, private logs, SSH keys, cron entries, or ransomware traces should not be posted in public.
Send WHM version, detector result, first suspicious timestamp, visible symptoms, and whether logs are still available. Do not send passwords in the first message.