Sheet WRK-03

CleanShift: server-level WordPress security that scans the database, not just the files

Kamyab's database-aware WordPress server security, born from a CVE-2024-28000 incident and battle-tested across hundreds of sites we host.

Record WRK-03
Product
CleanShift by Kamyab Infotech
Industry
Web hosting & WordPress security
Capability
Protect, Build
Stack
  • Python agent
  • FastAPI
  • Next.js
  • PHP (WordPress mu-plugin)
  • cPanel/WHM plugin
  • Plesk extension
  • WP-CLI
  • WebSocket (outbound-only)

Opening brief

At a glance

Owned product

Problem / risk
File-only malware scans miss database persistence and cross-site reinfection on shared WordPress hosts.
Scope
Server agent, operator dashboard, optional Guard mu-plugin; files + databases + SSL checks.
Constraints
Must stay light (~600 KB agent), outbound-only, and never remediate without operator approval.
Timeframe
Born from a 2024 CVE incident; in private use on Kamyab's managed estate

Outcomes

  • QualitativeUsed across hundreds of WordPress sites spanning dozens of hosting accounts
  • QualitativeDatabase-level and cross-site checks run as standard, not one-off clean-ups
  • QualitativeSame tooling used in Kamyab's own incident-response work
Architecture of CleanShift: server-level WordPress security that scans the database, not just the files8 components in 4 columns (Users, Build, Protect, Data) joined by 8 numbered connections, listed in the notes below the figure.Hosting operatorIoCs & CVE playbooksCleanShift Central —dashboard, API,intelligence DBGuard mu-plugin (perWordPress site,optional)File watcher(inotify, optional)Server agent (Python,~600 KB)Site filesWordPress databases12345678
  1. UsersHosting operator
  2. BuildIoCs & CVE playbooks; CleanShift Central — dashboard, API, intelligence DB
  3. ProtectGuard mu-plugin (per WordPress site, optional); File watcher (inotify, optional); Server agent (Python, ~600 KB)
  4. DataSite files; WordPress databases
Fig. 1Architecture. Dashed outlines sit outside the system boundary.
  1. Server agent (Python, ~600 KB) to CleanShift Central — dashboard, API, intelligence DB: WSS, outbound-only
  2. Server agent (Python, ~600 KB) to Site files: IoC + heuristic scan
  3. Server agent (Python, ~600 KB) to WordPress databases: rogue admins, wp_options, SEO spam
  4. IoCs & CVE playbooks to Server agent (Python, ~600 KB): indicators, playbooks
  5. Hosting operator to CleanShift Central — dashboard, API, intelligence DB: review & approve remediation
  6. CleanShift Central — dashboard, API, intelligence DB to Server agent (Python, ~600 KB): backup → remediate → verify
  7. Guard mu-plugin (per WordPress site, optional) to WordPress databases: block admin creation, cron hijack
  8. File watcher (inotify, optional) to Site files: change detection

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_options injections (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:

  1. Server agent — file checks (backdoors, PHP in uploads, .htaccess hijacking, 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.
  2. CleanShift Central — dashboard and API where operators see findings per site, approve remediation and track verification scans.
  3. 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.

Screenshot: homepage hero
Fig. 2 Screenshot: homepage hero

Related insights

Request early access to CleanShift.

CleanShift is in private use across our managed estate. We’re opening it to a limited number of hosting operators — request early access.

support@kamyab.co.inWhatsApp +91 99877 77250