Skip to content
Incident response

Web Shell File Finder: which PHP files were planted, and which ones ran?

Patching closes the hole; it does not remove what came through it. Paste a file listing, your access log, cron or shell lines, or one PHP file, and see every planted-file pattern, the IPs that reached them and what to do next.

Defensive use on servers you own or are authorised to investigate. Nothing leaves your browser and no site is scanned.

Ctrl/Cmd + Enter checks. Up to 20,000 lines. Runs in your browser: nothing is uploaded and no site is scanned.

Loading…

Sample report · illustrative data

Sample result: a WordPress site after WP Rocket CVE-2026-125812

A dated file listing of wp-content, four access-log lines and one crontab line, pasted from a fictional site that ran WP Rocket before 3.24.2.

Summary

Critical
4 (a planted file that answered a POST, one that answered a GET, a cron re-dropper)
High
3 (PHP in uploads, hidden PHP, unexpected PHP in wp-content)
Medium / low
1 beacon request, 1 probe that got a 404
Expected files to confirm
2 (advanced-cache.php, the per-domain WP Rocket config)

Most serious first (excerpt)

LineFlagWhy
wp-content/wp-rocket-config/wp-media-3f9a.phpCriticalName matches Patchstack’s example; changed 25 Nov; answered a POST with HTTP 200
GET /wp-content/uploads/2026/11/zz-cache.php 200CriticalPHP in uploads, zz-prefixed, and it ran
* * * * * echo … | base64 -d > …/zz-cache.phpCriticalCron job that re-creates the file every minute
wp-content/uploads/.a1b2c3d4.phpHighHidden PHP file in the media folder
wp-content/class-loader.phpHighNot index.php or a WordPress drop-in

Addresses that reached flagged files

IPRequestsWorst
203.0.113.452Critical
198.51.100.71Critical
198.51.100.91Low (404 probe)

What to do, most needed first

  • Patch WP Rocket to 3.24.2 or later; the update does not remove planted files.
  • Follow every IP that reached a flagged file through the full log.
  • Remove the cron job first, or the file comes back; check authorized_keys and sudoers too.
  • Copy files, timestamps and log lines, then remove; compare core, plugins and themes with clean copies.
  • Rotate wp-config.php secrets, database, API and SSH keys from a clean machine.

Made-up example data. Your own run uses your inputs. Downloads of the full report need Pro.

TL;DR

What this finder does

5 points
  • Paste a file listing (find, ls -lR, or find with dates), web access-log lines, cron or shell history lines, or the source of one PHP file you are unsure about.
  • Flags PHP where it should not be: wp-content/uploads, unexpected files in wp-content and wp-content/wp-rocket-config, upload and temp folders, hidden files, double extensions, zz-prefixed and random names.
  • In logs, it shows which planted files actually answered (HTTP 200) and which were only probed (404), and lists the IP addresses to follow.
  • In PHP source, it spots eval of decoded strings, commands run from request data, cookie-driven loaders, uploaders and character-by-character name building.
  • Rules that come from a report name it: Patchstack on WP Rocket CVE-2026-125812, Microsoft on AI-assisted Linux intrusions and on cookie-controlled PHP web shells. Runs in your browser; no site is scanned.

Where planted PHP files turn up

PatternFlagWhy
wp-content/uploads/…/*.phpHighMedia folder; PHP never belongs here
wp-content/wp-rocket-config/wp-media-*.phpCriticalExample name in Patchstack’s WP Rocket advisory
wp-content/<anything>.phpHighOnly index.php and WordPress drop-ins belong directly in wp-content
zz*.phpMediumMicrosoft lists zz-prefixed PHP implants (1 Dec 2026)
.something.php, a.php.jpg, x.phtmlHigh / MediumHidden, double-extension and alternative PHP extensions
echo … | base64 -d > x.phpCriticalDrop pattern Microsoft describes for PHP web shells

When to use it

WP Rocket CVE-2026-125812. Patchstack says unauthenticated attackers have used this flaw since 25 November 2026 to make WordPress sites save remote content as PHP files, through POST requests to /wp-admin/admin-ajax.php with action=rocket_beacon. The fix is WP Rocket 3.24.2 or later, and Patchstack stresses that updating does not remove files already planted.

AI-assisted intrusions. Microsoft (1 December 2026) describes an intrusion at an internet service provider where an AI-assisted operation found an upload handler and placed PHP shells on three peer servers within 13 minutes. It lists authorized_keys and crontab changes as persistence, and says deleting one shell does not establish recovery. Check SSH keys with the SSH authorized_keys Audit.

Shared and Linux hosting. Microsoft's April 2026 write-up of cookie-controlled PHP web shells covers loaders that stay dormant until a cookie arrives, files written with base64, and cron jobs that put a deleted loader back. Paste the suspect PHP file or your crontab to check for those patterns.

Frequently asked questions

Was my WordPress site hit through WP Rocket CVE-2026-125812?

Patchstack says exploitation started on 25 November 2026 and that the update to WP Rocket 3.24.2 stops new attempts but does not remove files already planted. If you ran an older version, list the PHP files in wp-content (with dates), paste the list and your access log from 25 November on, and check what this tool flags. Patchstack names wp-content/wp-rocket-config/, wp-content/uploads/ and wp-content/ itself, with wp-media-*.php as an example name.

How do I get a file listing with dates?

On the server, run find /path/to/site -name '*.php' -printf '%TY-%Tm-%Td %TH:%TM %p\n' and paste the output. ls -lR output works too. Set the date field to the day before the suspected compromise to flag every PHP file changed since.

Is a file in wp-content/wp-rocket-config always bad?

No. WP Rocket keeps one config file per site there, named after the domain, so example.com.php is normal. The tool marks those as files to confirm, and flags anything else in that folder.

Does a clean result mean my server is clean?

No. It means none of these patterns matched what you pasted. A shell can be renamed to look like a plugin file, hidden inside a legitimate file, or re-created by a cron job. Compare code with clean copies, and check cron, SSH keys and accounts. Microsoft warns that deleting one shell does not establish recovery.

Does this tool scan my website?

No. It reads only the text you paste, in your browser. It makes no requests to your site or anyone else. Only analyse systems you own or are authorised to investigate.

What should I do if it finds a shell?

Copy the file, its timestamps and the related log lines first. Then patch the way in, remove every planted file, check cron jobs and authorized_keys for persistence, rotate the secrets the server held (wp-config.php, database, API and SSH keys) and follow every IP that reached a flagged file.

More tools like this

Related tools and labs, with new picks every day.

All tools
🎉 New here? Use code WELCOME10 for 10% off any plan at checkout