SecurCheckCyber Center
Need help
Back to analysis tools
All cyber threats
Malware

Web shell

Web shell

A web shell is a covert server-side script that executes commands with the web service privileges.

Fiche de sensibilisationPrête à diffuser à vos équipes ou clients

MIGHT YOU BE AFFECTED?

Turn knowledge into action.

How does this work?

A web shell is a covert server-side script that executes commands with the web service privileges. Detection depends on the relevant logs and affected systems; a warning alone does not prove compromise.

REAL-WORLD EXAMPLE

« Repeated POST requests to an unknown PHP file precede creation of a system account. »

Typical sequence

  1. 1Exploit a server flaw or web credentials.
  2. 2Write a command-capable script into a reachable directory.
  3. 3Invoke the script through HTTP requests.
  4. 4Execute commands with the web service's permissions.
  5. 5Maintain access and explore other resources.

Warning signs

  • Recently created unknown PHP files with repeated POST requests to a hidden endpoint.
  • Unexpected administrator accounts or scheduled tasks following website changes.
  • Unknown scripts in web directories.
  • Unrecognised processes or files.
  • Unusual network connections.
  • Correlated security alerts.
  • Unexpected configuration changes.

How to protect yourself

  • Keep CMS and plugins patched, and verify integrity of web files.
  • Restrict write access and correlate WAF alerts with HTTP access logs.
  • Restrict web writes and monitor file integrity.
  • Apply security patches.
  • Restrict privileges and approved software.
  • Monitor logs and communications.
  • Train users to spot deceptive downloads.
  • Maintain independent backups.

If you think you are affected

Isolate affected systems where appropriate, preserve evidence and determine the entry point. Remediate the cause, revoke compromised access and inspect related systems before restoring service. Put the affected site into maintenance mode if exploitation is active, search for other backdoors, rotate exposed secrets and restore from a verified clean version after investigation.

Get help

Last updated: 8 October 2026