There is no single package or command that solves WordPress Hacked Cleanup. The first objective is not to chase the attacker but to preserve evidence, isolate the system, determine scope and compare against known-good sources. This guide combines decision criteria, pre-production checks, security boundaries, capacity signals and rollback planning.
Start by measuring the current state: plugin/theme/core integrity. The first objective is not to chase the attacker but to preserve evidence, isolate the system, determine scope and compare against known-good sources. Document backups/rollback, access paths and acceptance criteria before the change, then validate on a limited scope before production.
The same wordpress hacked cleanup need can require different topology for testing, normal production and critical/HA environments. Match resources to the operating class.
Inventory → test → change → validation → observation → rollback decision limits blast radius, especially for stateful or customer-facing systems.
The first objective is not to chase the attacker but to preserve evidence, isolate the system, determine scope and compare against known-good sources. Skipping observability, backups or access controls to move faster often increases total outage time.
The goal is not merely to say it is installed, but to show plugin/theme/core integrity is within expected bounds and rollback works.
These commands are primarily read-only health/status checks. Redact IPs, users, tokens, domains and secrets before sharing output.
find . -type f -mtime -7 -printf '%TY-%Tm-%Td %TT %p\n' | sort -r | head -n 80find . -type f \( -name '*.php' -o -name '*.js' \) -size +0 -print | head -n 80wp core verify-checksums 2>/dev/null || truewp plugin list 2>/dev/null || trueUse this sequence as a change runbook for critical systems, adding an owner, maintenance window and success criteria to each step.
The first objective is not to chase the attacker but to preserve evidence, isolate the system, determine scope and compare against known-good sources.
After cleanup, watch Search Console, logs, WAF and file-integrity signals for recurrence over several days.
There may be no single 'attacker IP'; proxies/CDNs, stolen credentials, web exploits and lateral movement complicate attribution.
Volatile evidence may need capture before isolation; aggressive scanning/deletion on a live system can damage evidence and uptime.
File mtime alone is not evidence; correlate hashes, owners, paths, web logs and package integrity.
Deleting the visible spam or shell without removing persistence does not prevent reinfection.
There is no universal number. Measure plugin/theme/core integrity before choosing production capacity from RAM/vCPU alone.
A backup is necessary but does not guarantee recovery until restore tests, rollback time and state consistency are validated.
Share current versions/topology, plugin/theme/core integrity, sanitized errors/logs, peak timing, data size and maintenance window; never send secrets/passwords.
Use staging or a limited pilot, observable metrics, small change scope and a tested rollback path.
Share current topology, user/traffic load, plugin/theme/core integrity, data size and target; the technical team can size VPS/VDS/Dedicated or a migration plan.