WordPress webshell: how to find it with file integrity checks

Written by

in

A WordPress webshell is usually quiet. It is a file with an innocent name, maybe cache-update.php, slipped into a plugin folder. The site works fine and for months someone has a convenient back door into the server.

WordPress webshell check: a grid of identical circles with one different circle ringed by a blue dashed line

What the plugin checks to find a WordPress webshell

Once a day, and on request, the plugin compares the MD5 hashes of its own files with a manifest shipped with the release. If there is no manifest, it uses a snapshot taken at activation. The result reports modified files, missing files and files that should not be in the folder. That last case is the WordPress webshell itself.

Why a copy outside the site

Whoever can plant a WordPress webshell by writing to the folder can also tamper with the manifest or switch the check off. That is why the result is also sent to the panel. The copy that lives off the machine is the only one an attacker cannot fix.

What it is not

The check detects tampering, it does not prevent it. It only looks at the Cisilino plugin’s files, not the whole site, so it won’t catch a WordPress webshell planted elsewhere. Think of it as a doorbell. Don’t mistake it for an antivirus scan.

How to read an alert

An unexpected file, a possible WordPress webshell, deserves immediate attention. Work out when it appeared, isolate the site, change the credentials, find out where it got in. The official guide to WordPress security hardening is a useful complement to this check. A “modified” or “missing” file can have a mundane cause, such as an interrupted update or a manual deletion. The check tells you that something is different, not why.

Frequently asked questions

How do you find a WordPress webshell?

By looking for files that shouldn’t be there. The plugin compares the hashes of its own files with a manifest and reports the ones that are modified, missing or unexpected.

Does the check prevent an infection?

No, it detects it. Whoever can already write files can also rewrite the check, which is why the result is copied to the panel.

How often does the check run?

Once a day, and also on request from the settings page.

Read more

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

WordPress Cookie Notice by Real Cookie Banner