PHP malware in the uploads folder: how to find it quickly

The uploads folder should hold images and documents. A PHP file in there is nearly always a backdoor.

It's the easiest folder to write to, and attacks come in that way.

A vulnerable plugin, an upload form or a nulled theme can let someone drop files into uploads. From there a PHP backdoor takes the site back even after a clean-up.

The file often has a harmless name or a double extension, like cache.php or logo.php.jpg.

A scan that knows where to look.

  1. First scan

    The agent records the state of the site's files, skipping caches and folders that change all the time.

  2. Later scans

    Every hour it looks for new or changed files, in short steps.

  3. Report

    A PHP file in uploads or a suspicious double extension triggers a critical alert, and you can read the file from the dashboard.

Want to try it on a real site? The 30-day trial needs no credit card.

Start free trial

Frequently asked questions

Why is a PHP file in uploads so suspicious?

Because WordPress and Joomla never put executable code there. That folder should only hold media and documents.

Some plugins save logs or template caches as .php files in the uploads. Do those raise an alert?

Not when the file runs nothing. The agent reads it: a log that opens with a line that stops PHP (die or exit) and has no other code, or a template compiled by Twig such as the WPML cache, which only declares its classes, or a list that only assigns fixed values to variables, such as the icon map of a font, is listed apart with no alert. Add other code to it and it is flagged again; a template or a list that changes is still reported as changed code. An empty file with a PHP extension runs nothing either: it is listed apart, with a note to delete it.

A plugin or module copied one of its own files into the uploads. Is that an infection?

On WordPress and Drupal we compare it with the official packages of the installed extensions: plugins and themes from WordPress.org, modules and themes from drupal.org, the installed release and the three before it. A file identical to an official one is listed with its package and version, with an info alert only. One different byte keeps it a critical alert, and so do official files that are dangerous anywhere else, such as file manager connectors, installers and database tools.

Does scanning slow the site down?

No. It runs in steps of a few seconds and skips caches and other plugins' backups.

What does the automatic AI review do?

When a scan finds a malware signature, PHP in uploads or a code change no update explains, an AI model reads the file and says whether it looks malicious. Passwords and keys are replaced before sending, and configuration files are never sent. A file rated malicious opens a critical alert; nothing is deleted on its own. You turn it on in Settings, and it is free during the launch. A review you ask for by hand on a file uses the AI credits of your plan: 1 up to 128 KB, 3 up to 512 KB.

Try it on your clients' sites.

Connect your first sites today and see what SitePing finds on them.

  • Every Complete feature except backups
  • Up to 10 sites and 50 AI credits a month
  • No credit card needed to start
  • At the end you choose a plan or move to Free, and nothing is charged
Start the 30-day free trial

Already have an account? Log in. Prefer to look at one site first? Free read-only audit.