Mastodon Skip to content
Founder-led WordPress incident response and care Request an assessment
3zerodigital Request a Website Assessment

WordPress Malware Removal Book: A Practical Guide Based on Real Cleanup Cases

Cleaning a hacked WordPress website is rarely as simple as running a malware scanner, deleting a suspicious file, updating plugins, and changing a password.

Sometimes the malicious file you remove comes back.

Sometimes the WordPress files appear clean because the malware is stored in the database.

Sometimes a site works perfectly on desktop while mobile visitors are redirected to a spam website.

An administrator account may exist in the database while malicious code prevents it from appearing in the WordPress Dashboard.

And in some incidents, the problem is not inside WordPress at all. The real issue may exist in the hosting account, server configuration, DNS records, CDN rules, or another compromised layer.

These are the kinds of problems that led MD Pabel to begin writing:

WordPress Malware Removal for Developers & Site Owners

The book is a practical, evidence-led guide to investigating, cleaning, recovering, and securing hacked WordPress websites.

It is being built around real malware cleanup cases rather than generic lists of security plugins or malware signatures.

πŸ“˜ The complete first chapter is currently available free:

Read Chapter 1 and join the book waitlist


Why Another WordPress Malware Removal Book?

There is already a large amount of WordPress security information online.

A typical WordPress malware removal guide may tell you to:

  • scan the website,
  • reinstall WordPress core,
  • update plugins and themes,
  • change passwords,
  • remove unknown administrators,
  • and install a security plugin.

Those steps can be useful.

But they do not answer many of the questions that appear during a real WordPress malware investigation.

  • Why does a redirect affect only mobile visitors?
  • Why did a deleted malware file return?
  • What if malicious JavaScript is stored in the WordPress database?
  • What if a plugin exists on the server but is hidden from the Plugins screen?
  • What if WordPress shows one administrator but the database contains another?
  • What if malware scanners report the site as clean but visitors still see malicious behavior?
  • What if the public domain points to a different server because DNS was changed?
  • What evidence is required before claiming checkout malware actually stole payment data?

The book focuses on questions like these.

The goal is not simply to find suspicious code.

The goal is to understand what changed, what produces the malicious behavior, what can restore it, and what the available evidence actually proves.


Real WordPress Malware Cleanup Cases

A major part of the book is based on retained real-world investigations.

Instead of presenting malware as isolated code samples, the chapters follow the relationship between the symptom, the evidence, the storage location, and the cleanup decision.

Conditional WordPress Redirect Malware

A hacked WordPress site may look completely normal to the site owner.

In one type of incident, desktop visitors receive the legitimate website while mobile users are redirected to an unrelated domain.

Other redirect malware may target:

  • visitors arriving from Google,
  • logged-out users,
  • first-time visitors,
  • specific countries,
  • certain pages,
  • or users who click or tap something.

This is why testing the homepage once from an administrator’s computer is not enough to prove that a WordPress website is clean.

The book includes a dedicated chapter on identifying the redirect mechanism, reproducing the visitor condition, locating the responsible layer, removing the malicious source, and testing the original trigger again.

WordPress Database Malware

Not all WordPress malware exists inside PHP files.

Malicious or unauthorized data can be stored inside:

  • posts,
  • post metadata,
  • WordPress options,
  • page-builder settings,
  • code-snippet plugins,
  • custom plugin tables,
  • user metadata,
  • scheduled state,
  • and other database records.

A scanner focused primarily on the filesystem may therefore miss the behavior that matters.

The database cleanup chapter shows how to start from an observed symptom, search for useful indicators, identify which WordPress feature owns the value, and remove the unwanted part without destroying legitimate site data.

Hidden WordPress Administrators

An attacker with sufficient access may create an administrator account and then use malicious code to hide that account from the normal WordPress Users screen.

This creates a dangerous situation: the database contains the account, but the site owner may believe that no unauthorized administrator exists.

Real cases used in the book demonstrate why investigators sometimes need to compare:

  • the WordPress Dashboard,
  • the users table,
  • user metadata and capabilities,
  • account counters,
  • loaded plugins,
  • MU plugins,
  • themes,
  • and other code capable of modifying WordPress user queries.

Deleting the user alone may not solve the problem if the code that creates or conceals the account remains active.

Fake Plugins and Hidden Backdoors

Malicious plugins do not have to look malicious.

They may use believable names such as maintenance, compatibility, security, optimization, or system tools.

A malicious component may also manipulate WordPress so that it does not appear in the normal Plugins screen.

The book examines how to compare what WordPress displays with what actually exists inside:

wp-content/plugins
wp-content/mu-plugins

It also explains why plugin names, authors, descriptions, and version numbers should not be treated as proof of legitimacy.

A trusted comparison and an understanding of what the code actually does are much stronger evidence.

SEO Spam and Hacked URLs

Some compromised websites look normal to visitors while search engines discover hundreds or thousands of unauthorized URLs.

Common symptoms include:

  • casino pages,
  • Japanese product spam,
  • pharmaceutical keywords,
  • unrelated product pages,
  • strange Search Console queries,
  • and hidden links inserted into legitimate content.

Removing the spam from WordPress is only one part of the recovery.

The website may still have indexed URLs, cached search results, or malicious content generated from another location.

Checkout Skimmers and Payment-Page Malware

Malware running on an e-commerce checkout page requires a particularly careful investigation.

A malicious script may:

  • load code from an external server,
  • modify checkout elements,
  • redirect a visitor,
  • display a fake form,
  • or potentially access information available to JavaScript on the page.

But investigators should not automatically claim that payment information was stolen simply because suspicious checkout code existed.

One of the cases used in the book involved a checkout-targeted remote JavaScript loader.

The retained evidence supported the ability to execute remotely supplied code on the checkout page. It did not prove that card details were actually stolen.

Report what the evidence proves, and keep unknown facts unknown.

Server, DNS, and CDN Compromise

A WordPress malware investigation cannot always stop at WordPress.

Visitors may be affected by:

  • malicious .htaccess rules,
  • server configuration,
  • PHP configuration,
  • scheduled server tasks,
  • compromised hosting accounts,
  • changed DNS records,
  • CDN redirect rules,
  • edge workers,
  • or account-level access.

In a DNS-related incident, repeatedly scanning the expected WordPress files would not find the public problem if visitors were being directed to another server.

Is the public request actually reaching the server we think it is reaching?

The book therefore treats WordPress, hosting infrastructure, DNS, and CDN as connected layers of the recovery process.

Malware That Keeps Coming Back

One of the most frustrating WordPress security problems is reinfection.

The site is cleaned. The malicious file is removed. Everything appears normal.

Then the malware returns.

This usually means that the removed file was not the complete problem.

Something may still be capable of restoring it, such as:

  • another backdoor,
  • a hidden plugin,
  • an MU plugin,
  • a scheduled task,
  • a compromised administrator,
  • a stolen hosting credential,
  • a database value,
  • another infected website on the same account,
  • or an external management process.

A recurring infection is therefore not merely a failure. It is evidence that another control path may still exist.


Not Every WordPress Error Is Malware

The book also emphasizes the opposite lesson.

A broken WordPress site is not automatically a hacked WordPress site.

A blank page or HTTP 500 error may come from:

  • a PHP error,
  • a plugin conflict,
  • a theme problem,
  • a failed update,
  • a memory limit,
  • or another ordinary software fault.

In one retained case, a blank WordPress site was caused by a normal coding problem in the active theme’s functions.php.

In another investigation, an almost identical blank screen was connected to a compromised root index.php containing malicious loader behavior.

The symptom looked similar.

The evidence led to completely different conclusions.

Start with the symptom, not the word β€œmalware.”


What the WordPress Malware Removal Book Covers

The manuscript currently includes practical chapters covering areas such as:

  • determining whether a WordPress site is actually hacked,
  • understanding how WordPress compromises happen,
  • preparing safely before malware cleanup,
  • finding connected infections,
  • cleaning WordPress core, plugins, and themes,
  • removing WordPress database malware,
  • investigating users and WordPress state,
  • cleaning hosting, server, DNS, and CDN problems,
  • identifying and removing redirect malware,
  • cleaning SEO spam and hacked URLs,
  • detecting fake plugins and hidden backdoors,
  • removing hidden administrator accounts,
  • investigating checkout skimmers and payment-page malware,
  • and dealing with persistent reinfection.

The manuscript is still under active development, and additional chapters and case studies are being added.


Who Is This Book For?

WordPress Malware Removal for Developers & Site Owners is being written for:

  • WordPress developers,
  • freelancers,
  • website owners,
  • WordPress agencies,
  • hosting and technical-support teams,
  • and people who want to understand malware cleanup beyond automated scanners.

It is not designed around memorizing lists of suspicious filenames or malware signatures.

Instead, the focus is on learning how to investigate a compromised website systematically and make cleanup decisions based on evidence.


Read Chapter 1 Free

Chapter 1: Is the WordPress Site Actually Hacked?

The complete first chapter is currently available as a free preview.

It covers:

  • mobile-only redirects,
  • blank pages and 500 errors,
  • browser and Network-panel evidence,
  • scanner limitations,
  • hidden administrators,
  • search-engine clues,
  • server logs,
  • DNS problems,
  • and how to separate a suspicious symptom from confirmed compromise.

πŸ“˜ Read Chapter 1 free and join the book waitlist


Finding Malware Is Not the Same as Understanding the Compromise

A malicious file proves that the file exists.

An unauthorized database value proves that the value was stored.

A hidden administrator proves that unauthorized access exists.

A redirect rule proves that traffic was redirected.

But none of those findings automatically explains:

  • how the attacker first entered,
  • what else they changed,
  • whether another backdoor exists,
  • or whether the removed malware can return.

That gap between finding the payload and understanding the incident is what this book is designed to explore.

WordPress Malware Removal for Developers & Site Owners is currently under development.

πŸ‘‰ Read the free first chapter and follow the book’s progress

Start with evidence

Give your website a calmer next chapter.

Share the symptoms, warnings, or maintenance concerns. You will receive a focused assessment and a clear recommended next step.

Request a Website Assessment