Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CLI Commands

Daemon

CommandDescription
csm daemonRun as persistent daemon (fanotify + inotify + PAM + periodic checks)

Checks

CommandDescription
csm runRun all checks once, send alerts
csm run-criticalCritical checks only (used by systemd timer)
csm run-deepDeep checks only (used by systemd timer)
csm checkRun all checks, print to stdout (no alerts)
csm check-criticalTest critical checks only
csm check-deepTest deep checks only
csm scan <user>Scan single cPanel account

Management

CommandDescription
csm installDeploy config, systemd, auditd rules, logrotate, WHM plugin
csm uninstallClean removal
csm baselineFull server scan, records current state as known-good. Takes 5-10 min on large servers. Required on first install.
csm rehashUpdate binary/config hashes without scanning. Use after config edits. Run twice (circular hash).
csm statusShow current state, last run, active findings
csm validateValidate config (--deep for connectivity probes)
csm config showDisplay config with secrets redacted
csm verifyVerify binary and config integrity
csm versionVersion and build info

Remediation

CommandDescription
csm clean <path>Clean infected PHP file (backs up original)
csm enable --php-shieldEnable PHP runtime protection
csm disable --php-shieldDisable PHP runtime protection

Updates

CommandDescription
csm update-rulesDownload latest signature rules
csm update-geoipUpdate MaxMind GeoLite2 databases

Firewall

23 subcommands. See Firewall for the full reference.

csm firewall status
csm firewall deny <ip> [reason]
csm firewall allow <ip> [reason]
csm firewall tempban <ip> <dur> [reason]
csm firewall deny-subnet <cidr> [reason]
csm firewall grep <pattern>
csm firewall flush
# ...