1. Incident Summary
In August 2026, an enterprise equipment leasing company experienced a catastrophic website outage. All front-facing pages crashed with HTTP 500 Fatal Errors, completely severing their digital lead generation.
Initial infrastructure checks showed healthy OpenLiteSpeed, MySQL, and PHP stacks. However, a deep forensic investigation revealed a highly coordinated, automated malware injection targeting both the primary origin server and the failover backup server. The attackers manipulated core files, injected backdoor PHP WebShells (including accesson.php), and modified wp-config.php to trigger a total application failure.
Our incident response team performed extensive file-level forensics, isolated the compromised payload, verified the malware strains via Bitdefender, completely sanitized both servers without losing client data, and restored the site. Following the cleanup, we executed a rigorous security hardening protocol to lock down the infrastructure against future automated intrusion.
2. The Symptoms & Underlying Cause
The client initially reported the site as unresponsive. When curling the origin directly through the local server (bypassing the Cloudflare proxy), the site returned a critical failure: PHP Fatal error: Uncaught Error: Call to undefined function wp() in wp-blog-header.php:16.
Restarting services did not resolve the issue because the failure was at the application layer, not the infrastructure. Our forensics uncovered a multi-layered compromise:
- Fatal Core Tampering:An automated script manipulated wp-settings.php out of sync with the rest of the WordPress core, effectively breaking the site’s bootstrap sequence.
- Configuration Hijacking:wp-config.php was edited to force WP_DEBUG to ‘true’ and to secretly include a rogue file (secure-debug.php) operating as an initial dropper.
- The Failsafe Infection:Because the site ran behind a Cloudflare failover configuration, once the primary server was compromised, Cloudflare routed traffic to the ‘failsafe’ backup server—which had also been compromised with an empty wp-config.php file and root-owned backdoors.
3. The Forensic Investigation
To rebuild the timeline and definitively identify the intrusion, we analyzed historical server logs, database states, and multiple isolated site backups (dated August 10 through August 12).
The Attack Vector: The forensics revealed a sophisticated, automated European-based IP attack executing a distinct pattern:
- Automated bots repeatedly hit a specific plugin vulnerability (wpmudev-hub).
- This granted access to inject malicious PHP code directly into the legitimate ‘Background Image Cropper’ plugin.
- The modified plugin generated a primary backdoor file (/accesson.php) and deployed secondary WebShells (including 632e8a27fbb8.php).
- These WebShells allowed the attackers to remotely execute PHP code, manipulate core files, and create root-owned backdoor files throughout the WordPress directory.
Antivirus Verification: Bitdefender Antivirus confirmed our manual forensic findings, independently detecting the extracted payloads as Generic.PHP.WebShell.Y.42356ED1.
4. Eradication & Restoration Workflow
Restoring operations required a surgical approach. Simply hitting ‘restore backup’ was insufficient, as the failsafe server and database already harbored the dormant infection.
- Core Sanitization & Quarantine:We cleared immutable flags and re-downloaded a clean installation of WordPress core (v7.0.4) directly over the compromised files. This stripped the injected code without touching the client’s database, uploads, or legitimate content.
- Payload Eradication:Removed rogue include scripts from wp-config.php, quarantined root-owned dormant payloads, and manually extracted the infected WebShell files nested inside the plugins directory.
- Credential Scrubbing:Identified and deleted unnecessary, historical administrator accounts from the WordPress database, narrowing the attack surface.
- Cloudflare Routing Restoration:With the primary server repaired and sanitized, we purged the Cloudflare cache, disabled Under Attack Mode, and forced routing back to the clean primary origin, returning the live site to HTTP 200 health.
5. Infrastructure Security Hardening
With the site restored and malware removed, we implemented strict protocols to prevent a recurrence:
- Full Credential Rotation:Forced rotation of all WordPress administrator accounts, SFTP/system users, MySQL databases, GridPane panel access, and Cloudflare credentials. Regenerated WordPress salts.
- Cloudflare Managed WAF Challenge:Because the attack originated from a cluster of European IPs repeatedly pinging WebShell requests, we updated Cloudflare’s WAF to issue a Managed Challenge to all incoming European traffic, blocking automated bot scraping while allowing legitimate users through.
- Technical Debt Reduction:Instituted a protocol for deleting inactive/abandoned plugins rather than simply deactivating them, and mandated 2FA on all administrative endpoints.