← All Case Studies
📋 Case Study · Marketing · 🇬🇧 United Kingdom

Complete Malware Removal — WordPress Site Hacked via Outdated Plugin

Published August 20, 2024 · By Anytime Server Support

Industry
Marketing
Location
🇬🇧 United Kingdom
Date
August 20, 2024
100% malware removed
Google blacklist lifted in 48h
Zero reinfection since
Services Used
Malware Removal Security Hardening WordPress Cleanup

The Problem

A UK digital marketing agency discovered their WordPress site had been compromised — Google Search Console showed security warnings, Cloudflare was flagging malicious redirects and the agency's hosting provider had suspended the account due to spam email sending from the server.

The client had lost two enterprise contracts in 48 hours due to the security warning appearing to their clients. Google had blacklisted the domain.

Our Investigation

Our security team gained access and immediately found a sophisticated multi-component backdoor:

  • A PHP webshell hidden inside a WordPress default theme (Twenty Twenty-One) — disguised as a CSS cache file
  • A malicious cron job running every 5 minutes sending spam email via Sendmail
  • Base64-encoded malware injected into 47 plugin PHP files
  • A rogue admin user account created 3 weeks prior via an outdated Elementor addon vulnerability
  • Database entries in wp_options containing obfuscated JavaScript redirects

The Cleanup

  1. Immediately took site offline and revoked all database credentials
  2. Ran ClamAV full scan — identified 312 infected files
  3. Manually reviewed every PHP file — removed all backdoors and injections
  4. Deleted all default themes not in use
  5. Restored wp-core, wp-admin and wp-includes from fresh WordPress download
  6. Removed rogue admin account and all suspicious database entries
  7. Rotated all credentials: database, admin, SFTP, wp secret keys
  8. Implemented WAF rules, Fail2Ban for wp-login and file change monitoring via AIDE
  9. Submitted reconsideration request to Google

Results

Google's blacklist warning was lifted within 48 hours. The hosting suspension was resolved same day. The site has had zero reinfections since — AIDE file monitoring alerts us immediately to any unauthorised changes.

Facing a Similar Challenge?

Our engineers handle emergencies, security incidents and performance issues 24/7. 15-minute response for urgent issues.

🚀 Get Expert Help Now →