Blog

WordPress malware false positive: how to tell a false alarm from a real infection

A WordPress malware false positive is identified by comparing the flagged file with its original version, not by reading its content by eye. Here you will learn which alerts come up most often, how to decide in a few minutes, and in which cases the alert is truly serious.

WordPress malware false positive: how to tell a false alarm from a real infection

Key points

  • A malware alert is resolved by comparing the file with the original, not by reading its code.
  • The Security module compares WordPress and wordpress.org plugin files with their originals every day and sends an email alert.
  • A randomly named plugin that no one installed is almost always a real intrusion.
  • Premium plugins and custom code do not have a reference original: they must be compared to the publisher's version.
  • The module does not clean malware; nexya Pro allows you to restore or quarantine a suspicious file with a single click.

WordPress malware false positive: where do these alerts come from?

A WordPress malware false positive is a file or plugin flagged as dangerous when it is actually clean. This question often comes up on the WordPress.org forums: about fourteen topics in six weeks, with almost always the same concern. The scanner screamed, the host sent an email, and no one knows whether to delete everything or touch nothing.

Most malware scanners look for signatures: pieces of code typical of attacks, such as a function that decodes a long string or executes text as PHP. The problem is that completely legitimate code sometimes uses the same functions. A data-compressing plugin, a theme loading its settings, a backup tool: all can look, line by line, like a trapped file.

The other source of alerts is vulnerability databases. Here, it is not a file that is judged, but a version number. If the database has incorrect information, or if it confuses two products, an up-to-date plugin can be declared vulnerable. This case already has its own article on this blog; here, we are mainly dealing with files flagged as infected.

The three cases that keep coming up on the forums

The first case is a WordPress core file flagged right after a server migration or a PHP version change, for example wp-admin/upload.php after switching to PHP 8.4. The file often hasn’t changed at all. It is the new scan, launched by the host or re-run after the migration, that sees it for the first time and reacts to an overly broad signature.

The second case is the opposite: plugins with strange names made of a word, a hyphen, and a few numbers, like link-case-0e1 or load-bridge-017. Here, you need to be suspicious. A plugin that no one installed, that doesn’t exist on wordpress.org, and whose name is meaningless is generally not a false positive. It’s a classic sign of an intrusion.

The third case concerns premium plugins and themes, such as a page builder sold outside of wordpress.org, flagged for a flaw referenced by a CVE number. The question then is whether the installed version is indeed the targeted one, and whether the fix has been delivered. This is a version issue, not a file issue.

These three situations call for three different responses. What sets them apart is almost always a single question: is the file identical to the original published by its author?

  • Core file flagged after a migration: often a false alarm, to be verified by comparison.
  • Randomly named plugin that nobody installed: treat as a real infection.
  • Premium theme or plugin with a CVE: compare the installed version with the one that fixes the flaw.

Compare with the original: what the Security module does

The nexya Security module doesn’t guess based on signatures. Every day, it compares WordPress files and those of plugins published on wordpress.org with their originals. A file identical to the original is not flagged, even if it contains functions that worry other tools. A modified, added, or missing file is, and an alert is sent by email.

This method directly resolves the first case. If wp-admin/upload.php is exactly the one from your WordPress version, it has not been touched, regardless of the server’s PHP version. If, on the other hand, it differs, the host’s alert deserves to be taken seriously.

The module also spots PHP files placed in the uploads folder, where they normally do not belong since this folder is used for images and documents. Since version 1.5.11, the monitoring tab additionally lists spam pages found in the database over the last 90 days: pharmacy or gambling spam, injected Japanese text, and content whose author no longer exists.

For vulnerabilities, the module checks active plugins against known flaws. In the free version, this check is launched manually. The daily automatic check is part of nexya Pro. The module also flags when the server’s PHP has not received the security patches published on October 21, 2026, along with the version to request from the host.

Like every nexya module, Security is turned on from the hub. As long as it is turned off, none of its hooks run on the site.

A file identical to the original published by its author is not infected, no matter what a signature says.

Deciding between a false alarm and a real infection

  1. 1

    Note the exact file and its origin

    Note the full path of the flagged file and what it belongs to: the WordPress core, a wordpress.org plugin, a premium plugin, the theme, or the uploads folder. What follows depends on this origin.

  2. 2

    Compare with the original

    For the core and wordpress.org plugins, check if the Security module flags the file as modified, added, or missing. If it does not flag it, it is identical to the original. For a premium product, re-download the same version from the publisher.

  3. 3

    Check who installed or modified what

    An unknown plugin or a file that differs from the original requires finding out what happened. The activity log shows who changed what and when, around the date the file appeared.

    Check who installed or modified what
  4. 4

    Classify the alert and take action

    File identical to original: false alarm, nothing to do. Modified file, PHP in uploads, or randomly named plugin: treat it as an intrusion, change passwords, and follow a complete cleanup procedure.

What the comparison does not cover

Comparison has a clear limit: you need an original to compare against. The WordPress core and wordpress.org plugins have one. A premium plugin purchased elsewhere, a custom theme, or code written for the site do not have one in this context. For these files, the module cannot tell if they have been modified compared to their publisher’s version.

In this case, the safest way remains to re-download the same version from the publisher and compare, or reinstall it over the top. For a flaw alert on a premium product, the publisher’s changelog is authoritative: it indicates which version fixes what.

We must also be clear on one point: the Security module does not clean up malware. It shows what has changed and where. The free version reports it; nexya Pro adds file fingerprinting with rollback, which allows you to restore or quarantine a suspicious file with a single click. This is not a complete cleanup of a compromised site, which requires other steps.

When the alert is real

If the file differs from the original, if a PHP file is lingering in uploads, or if an unknown extension has appeared, do not delete it immediately without looking around. Note its name, date, and location. These details are used to trace how the intruder got in.

Then change the administrator account passwords and check that no unknown account was created. The activity log helps reconstruct what happened around the date the file appeared: who changed what, with the before and after.

The complete cleanup, including reinstalling files and closing the entry point, is described step by step in this blog’s article dedicated to hacked WordPress sites. The important thing at this stage is not to confuse the two situations: a false alarm requires no action, while a real infection requires several, and quickly.

FAQ

Why is my host flagging a WordPress file as malicious after a PHP change?

Often because the scan rerun after the migration reacts to a signature that is too broad. If the file is identical to the one in your WordPress version, it has not been modified. The Security module performs this comparison every day.

Can the Security module check a premium theme or plugin?

Not by file comparison: it compares WordPress and plugins published on wordpress.org, which have a reference original. For a premium product, you must re-download the same version from the publisher.

Does the Security module delete malware?

No. It flags modified, added, or missing files, PHP files in uploads, and plugins affected by known vulnerabilities. nexya Pro adds the ability to restore or quarantine a suspicious file with a single click.

Is vulnerability checking automatic?

In the free version, it is triggered manually. Automatic daily checks are part of nexya Pro. File comparison, however, runs every day in the free version.

The modules in this post

nexya security nexya activities nexya hub

Try nexya Pro free for 7 days

Every module, forms, newsletters and the page cache, on your site. No commitment.

See the plans Or discover the free version