Attacks Dictionary

Webshell

Definition

A webshell is a small script uploaded to the server that lets an attacker run commands through the browser.

Also called: web shell, web-shell

Why it matters for WordPress

One PHP file in uploads or a theme can give full filesystem and database access. Attackers use webshells to plant more malware, steal dumps, or pivot to other sites on shared hosting.

How it shows up in practice

  • PHP files under wp-content/uploads
  • Tiny files with names like x.php, 1.php, or random strings
  • POST requests to odd paths in access logs
  • File integrity alerts for new executable paths

What to do

  1. Block PHP execution in uploads at the server level when you can.
  2. Scan for unexpected PHP outside plugin/theme code.
  3. Review how the file got there (vulnerable form, plugin, FTP credentials).
  4. Remove the shell, close the entry point, rotate credentials.
  5. Compare core files so modified droppers are not missed.

In WP Security Ninja

Use the malware scanner to find suspicious PHP and the core scanner to catch unexpected changes to WordPress core files. After cleanup, keep scanning until findings stay clean.

Go deeper

Related in Security Ninja

Nearby ideas in the dictionary

All terms →