Challenge
Kamyab operates shared hosting for many clients, which means WordPress incidents arrive in clusters. When a privilege-escalation flaw in a widely used caching plugin (CVE-2024-28000, LiteSpeed Cache) was exploited across WordPress sites on a production cPanel server, the clean-up exposed a gap in the tools the industry relies on: file-based scanners found the obvious backdoor files, but the persistence lived in the databases — rogue administrator accounts, injected options and spam content that a file scan never sees. Remove the files without those, and the site is reinfected.
We needed something that looked at a whole server the way an attacker does: across every site, in both files and databases, with remediation an operator could review before anything was changed.
Engineering approach
- Scan the layer others skip. Database checks look for rogue admin accounts,
wp_optionsinjections (scripts, redirects, spam), persistence markers, suspicious WP-Cron hooks, SEO-spam content and bursts of posts from a single author. - Correlate across sites. If one site is infected, its neighbours are checked for the same backdoor hashes and the same rogue admin emails — because on shared servers one compromise is rarely alone.
- Never clean silently. Release 1 follows backup → remediate → verify, with an operator approving changes from the dashboard. Destructive actions fail closed and the backup is retained for restore.
- Stay light on production servers. The agent is a single-script install of roughly 600 KB, connects outbound-only over WebSocket (no inbound port to open), and supports cPanel/WHM, Plesk and plain Linux servers.
- Encode what we learned. Indicators of compromise and CVE-specific playbooks live in a separate intelligence layer, so a lesson from one incident becomes a check on every server.
- Test like it matters. The agent ships with a test suite of more than 450 tests across its modules.
Solution
CleanShift has three parts:
- Server agent — file checks (backdoors, PHP in uploads,
.htaccesshijacking, core-file integrity against WP-CLI checksums, misleading extensions), database checks, SSL/TLS checks (expiry thresholds, hostname mismatch, weak protocols, mixed content) and server-health telemetry. - CleanShift Central — dashboard and API where operators see findings per site, approve remediation and track verification scans.
- Guard (optional) — a WordPress must-use plugin that blocks unauthorised admin creation, cron hijacking, suspicious uploads and brute-force attempts on individual sites.
It is also a migration tool: before and after moving a site between servers, CleanShift compares state and flags uploads backdoors, rogue admins, cron persistence and URL mismatches so an infection is not migrated along with the site.
Outcome
- Battle-tested in Kamyab’s own live hosting environments — across hundreds of WordPress sites spanning dozens of hosting accounts.
- The database-level and cross-site checks born from that incident now run as standard checks rather than as a one-off clean-up procedure.
- Kamyab’s own incident-response work uses the same tooling — the product exists, in its own words, “because we needed it ourselves.”
CleanShift is in private use across our managed estate. We’re opening it to a limited number of hosting operators — request early access.
