·

Suspicious WordPress Files: How to Spot Malware by Name

Suspicious WordPress files decoded: a lookup table of malware file names, legit files people panic over, and the commands that prove which is which.

Banner reading Suspicious WordPress files: how to spot malware by name, in WPPRES maroon house style

Last updated: November 24, 2026 · Skill level: intermediate

Suspicious WordPress files are PHP files that sit where WordPress never puts code, use names that imitate core files, or appear without any plugin or update that explains them. A name alone never proves malware. Location, contents, and a checksum comparison do. Use the lookup table below to triage a file, then run the commands to confirm it.

TL;DR: PHP inside wp-content/uploads/, unknown files in wp-content/mu-plugins/, extra wp-*.php files in the site root, and lookalikes such as wp-vcd.php or class.wp.php in wp-includes/ are red flags. Files like xmlrpc.php, wp-cron.php, object-cache.php, and .maintenance look odd but are normal. wp core verify-checksums settles most cases in seconds.

What makes a WordPress file suspicious?

A WordPress file is suspicious when it fails one of three tests: it is in a place WordPress does not store PHP, it is not part of the official core, plugin, or theme package, or it changed without an update. Any one of these is a reason to inspect the file. Two or more together almost always mean a compromise.

Definition: a suspicious file is any file on a WordPress install whose presence, location, or contents cannot be explained by WordPress core, an installed plugin or theme, or a change you made yourself.

Attackers know site owners skim file names, so they pick names that blend in. Some copy the wp- prefix of core files. Some hide in folders that never show up in the dashboard. Others pose as a security patch. That is why this reference sorts files by name and by where they live.

Which file names are linked to WordPress malware?

The file names below come from published malware investigations by Sucuri, Patchstack, MalCare, CleanTalk, and Wordfence, plus our own wp2shell incident write-up. Treat a match as a strong reason to inspect, not as proof. Attackers rename files between campaigns, and a few of these names are generic enough to collide with legitimate code.

File name or patternWhere it shows upVerdictHow to check
wp-vcd.php, class.wp.php, wp-feed.php, wp-tmp.phpwp-includes/Malware. None of these are core files. They belong to the wp-vcd family, which spreads through nulled themes and plugins (Patchstack, MalCare).wp core verify-checksums lists them as files that should not exist.
class.theme-modules.php, class.plugin-modules.phpTheme and plugin foldersMalware. wp-vcd’s loader files, which reinfect the site if you only delete the wp-includes copies (MalCare).Search every theme and plugin: find wp-content -name "class.*-modules.php"
galex_patch.phpwp-content/mu-plugins/Malware posing as a security patch, observed after the wp2shell attacks (our wp2shell cleanup guide).ls -la wp-content/mu-plugins/ and compare with what you installed.
redirect.php, index.php, custom-js-loader.phpwp-content/mu-plugins/Malware in the cases Sucuri documented in March 2025: a fake-update redirect, a webshell, and a spam injector (Sucuri).If you do not use must-use plugins, this folder should be empty or absent.
wp-XXXX.php in the root (for example wp-canvas.php, wp-controller.php, wp-22.php)Site root, next to wp-config.phpSuspicious. Core ships a fixed list of root files. CleanTalk flags root wp-*.php files that contain a getid3_lib function block (CleanTalk Research).wp core verify-checksums --include-root reports any root file that is not core.
Random names such as 1gkj2saf.php, 862349.php, e042u9xy9ra1.phpRoot, cache folders, uploadsSuspicious. CleanTalk lists random-string names as a warning sign. The wp2shell attackers dropped random-named PHP into wp-content/cache/.Cache folders hold generated HTML, CSS, and JS. A standalone PHP file there needs an explanation.
wso.php, shell.php, cmd.php, reverse_shell.phpAnywhereMalware. These are names of well-known webshells, and CleanTalk lists them as likely malicious (CleanTalk Research).Open it in a text editor without executing it. Webshells usually contain file managers or command forms.
Any *.php file in wp-content/uploads/Media library foldersAlmost always malicious. Uploads should contain media, not code.find wp-content/uploads -type f -name "*.php"
favicon_*.ico, fake .jpg or .gif files containing PHPUploads, theme image foldersMalware. Sucuri found “favicon” files that were really PHP, loaded with include from another file (Sucuri, July 2019).file on the image. Real images report image data, not “PHP script” or “ASCII text”.
phpinfo.php, info.php, test.phpSite rootNot malware, but a risk. A leftover phpinfo page exposes PHP version, paths, modules, and environment variables (Pantheon).Delete it if you did not create it for a test you are running right now.

Notice the pattern. The dangerous files cluster in four places: wp-includes/, the site root, mu-plugins, and uploads. Those are the places to scan first, in that order.

Which WordPress files look suspicious but are legitimate?

Several real WordPress files have names that sound alarming, and deleting them breaks features. xmlrpc.php, wp-cron.php, wp-activate.php, and wp-config-sample.php ship with every WordPress download. Drop-ins such as object-cache.php and advanced-cache.php are written by caching plugins. Check before you delete.

FileLocationWhat it doesWhen to worry
xmlrpc.phpRootCore endpoint for XML-RPC, used by the mobile apps, Jetpack, and pingbacks.Only if its contents differ from core. Checksums will tell you.
wp-cron.phpRootRuns scheduled tasks when visitors load pages.Only if modified. Unknown cron events are the bigger risk.
wp-activate.php, wp-signup.phpRootMultisite user activation and sign-up. Present on single sites too.Only if modified.
wp-config-sample.phpRootTemplate for wp-config.php. Unused after install.Never, but you can delete it safely.
.maintenanceRootCreated during updates. Shows “Briefly unavailable for scheduled maintenance.”If it stays after an update finishes. Delete it to bring the site back.
object-cache.php, advanced-cache.php, db.phpwp-content/Drop-ins written by Redis, Memcached, page-cache, and debugging plugins.If no installed plugin explains them. wp plugin list --status=dropin shows them.
index.php containing “Silence is golden”Most wp-content foldersBlocks directory listing.If it contains anything beyond that comment.
wp-includes/ID3/getid3.lib.phpwp-includes/ID3/Core media metadata library.Only if a copy of its code appears in a root wp-*.php file.

The last row matters. CleanTalk’s root-file rule keys on getid3_lib code because attackers copy a real core library to make a malicious file look boring. The same code is fine in wp-includes/ID3/ and suspicious in a root file core does not ship.

Can a file name alone prove a file is malware?

No. File names are a weak signal, and Wordfence says so directly. In an October 2023 investigation, it found the same backdoor named WPCache.php on one site and wp-seo-conf.php on another, disguised with a copied plugin comment block. A harmless-looking name can hide malware, and an odd name can be legitimate.

Wordfence’s write-up, Backdoor Masquerading as Legitimate Plugin, warns that other variants may use a different name entirely. So use the lookup table to decide what to open first, then judge the file by three stronger signals:

  1. Location. PHP in uploads or cache has no innocent explanation on most sites.
  2. Integrity. A core or WordPress.org plugin file that fails its checksum was changed by someone.
  3. Contents. Obfuscation such as long base64_decode strings, eval, gzinflate, str_rot13, or an include that points at an image file.

The reverse also holds: a scanner that passes a file does not clear it. WordPress.org support threads regularly report malicious PHP in uploads that a scanner missed. Treat a clean scan as one data point.

Where do malicious files usually hide in WordPress?

Malicious files hide where site owners rarely look and where the dashboard shows nothing: wp-content/mu-plugins/, wp-content/uploads/, cache folders, the site root, and wp-includes/. Must-use plugins run automatically and never appear on the normal Plugins screen, which makes that folder a favorite persistence spot.

  • wp-content/mu-plugins/: Sucuri reported in March 2025 that attackers use it to hide redirects, webshells, and spam injectors. If you never installed a must-use plugin, the folder should be empty.
  • wp-content/uploads/: writable by design, so an upload vulnerability lands code here. Blocking PHP execution in uploads neutralizes most of it. See how to block PHP execution in the uploads folder.
  • Cache folders: full of generated files, so a random-named PHP file is easy to miss.
  • Site root and wp-includes/: lookalike names (wp- prefix, class. prefix) blend in with core. Checksums expose them immediately.
  • Fake plugin folders: a plugin you never installed, often with a plausible name and an empty or copied readme.

How do I check whether a WordPress file is malware?

Compare core and plugin files against official checksums with WP-CLI, list PHP files in folders that should not contain code, look for recently modified files, and read anything left over in a text editor. The whole check takes about fifteen minutes over SSH and needs no paid scanner. Back up first, and never run a suspicious file to see what it does.

  1. Back up files and database. Keep one untouched copy as evidence. wp db export evidence.sql plus a tar of the web root is enough.
  2. Verify core. Run wp core verify-checksums --include-root. It compares every core file with the official hashes from WordPress.org and lists modified files and extra root files. Our guide to verifying WordPress core checksums explains each warning.
  3. Verify plugins. Run wp plugin verify-checksums --all. This only covers plugins hosted on WordPress.org. Premium plugins need a fresh download from the vendor to compare against.
  4. List hidden plugin types. Run wp plugin list --status=must-use and wp plugin list --status=dropin. Every entry should map to something you installed.
  5. Find PHP where it should not be. Run find wp-content/uploads wp-content/cache -type f -name "*.php". On most sites the correct output is nothing, or only index.php files that say “Silence is golden”.
  6. Find recent changes. Run find . -type f -name "*.php" -mtime -14 to list PHP changed in the last 14 days. To compare against a known moment, use find . -type f -newer wp-config.php. Attackers sometimes fake timestamps, so treat an empty result with caution.
  7. Check fake images. Run file on unexpected .ico, .jpg, or .gif files. Then search PHP for includes of images: grep -rnE "(include|require)(_once)?.*\.(ico|jpg|png|gif)" --include=*.php .
  8. Search for obfuscation. Run grep -rlE "eval\(|base64_decode\(|gzinflate\(|str_rot13\(" wp-content --include=*.php. Expect some false positives, because legitimate plugins use base64_decode. Look for long encoded strings combined with eval.
  9. Read what is left. Open each flagged file in a plain text editor or with less. Do not request it in a browser, which would execute it.

Here is what a clean core check looks like on a healthy install:

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

And here is example output from an infected install with planted lookalikes. The warnings name the exact file, which is why this command is the fastest single test in this guide:

$ wp core verify-checksums --include-root
Warning: File should not exist: wp-includes/wp-vcd.php
Warning: File should not exist: wp-includes/class.wp.php
Warning: File should not exist: wp-22.php
Error: WordPress installation doesn't verify against checksums.

What should I do if I find a suspicious file?

Do not just delete it and move on. Copy it to an evidence folder outside the web root, note its modification time, and treat it as a symptom. Malware rarely arrives as a single file: wp-vcd alone spreads to wp-includes, every theme, and every plugin. Find the entry point and every other file before you call the site clean.

  1. Preserve it. mkdir -p ~/evidence && cp -p path/to/file.php ~/evidence/ keeps the original timestamp.
  2. Replace, don’t edit. Reinstall core with wp core download --skip-content --force and reinstall plugins from their source. Editing an infected file by hand leaves things behind.
  3. Match the timestamp to your logs. Look for POST requests in the access log a few seconds before the file’s modification time. That request usually reveals the vulnerable plugin or stolen login.
  4. Hunt for the rest. One file means there are probably others, including database entries and rogue admin users. Our full guide to finding a backdoor in WordPress walks through every location.
  5. Close the door. Update or remove the plugin or theme that let it in, rotate passwords and salts, and block PHP in uploads.

One exception: a file such as phpinfo.php that you or your developer created is not an infection. Delete it, and you are done.

Frequently asked questions

Is wp-vcd.php a WordPress core file?

No. wp-vcd.php is not part of WordPress core in any version. It belongs to the wp-vcd malware family, which usually arrives with nulled themes or plugins and drops companion files such as class.wp.php and wp-tmp.php. Remove every related file, not just this one.

Should there be PHP files in wp-content/uploads?

Normally no. The uploads folder stores media. A few plugins place an index.php or a small protection file there, but any other PHP file in uploads deserves inspection. Blocking PHP execution in that folder stops most upload-based backdoors from running.

Is it safe to delete xmlrpc.php?

Deleting xmlrpc.php is not recommended because core updates restore it and it breaks the mobile apps and some Jetpack features. If you do not need XML-RPC, disable it with a plugin or a server rule instead. The file itself is legitimate unless its checksum fails.

What is the mu-plugins folder and why is malware found there?

The wp-content/mu-plugins folder holds must-use plugins, which WordPress loads automatically on every request. They do not appear in the normal plugin list and cannot be deactivated from the dashboard. That invisibility is why attackers use it to hide redirects, webshells, and fake security patches.

Can a malware scanner miss suspicious files?

Yes. Scanners match known signatures, and attackers rename and re-obfuscate files to slip past them. Checksum verification catches changed core and WordPress.org plugin files that scanners miss, and a manual search for PHP in uploads and mu-plugins covers the rest.

Is phpinfo.php malware?

No, but a public phpinfo.php is a security risk. It reveals your PHP version, server paths, loaded modules, and environment variables, which helps attackers pick an exploit. If you created it for testing, delete it. If you did not create it, treat it as a sign someone else had access.

← Previous Post