↓Skip to main content

WordPress Malware Cleanup & Incident Response

·1 min

Malware cleanup for a company WordPress website that browsers flagged as dangerous. Emails sent from the company were also being marked as spam.

I found a malicious script injected into the theme and tools the attacker had left on the server. I removed both, closed the access path and updated the site. I also wrote an incident report with a timeline, the fixes and follow-up actions, and the owner requested a Google review to clear the warning.

Technologies Used #

Investigation:

  • WP-CLI for core file checks and session inspection
  • Server access logs and Wayback Machine snapshots for the timeline
  • Safe Browsing, Sucuri SiteCheck and email blocklist lookups
  • Codebase and database scans for malware markers

Remediation:

  • WordPress, PHP
  • SSH access for the job only, removed afterwards
  • Google Search Console for the review request

Key Features #

Cleanup:

  • Replaced the infected theme file with the original
  • Removed malicious plugins, hidden staging sites and attacker tools
  • Verified core file integrity and scanned related sites for the same markers

Hardening:

  • Reset admin passwords and logged out all sessions
  • Two-factor authentication for admins
  • Plugin, theme and PHP updates

Reporting:

  • Incident report with timeline, root cause, fixes and remaining actions
  • Google review request and email blocklist check