MITRE ATT&CK · T1505.003

Web Shell

MITRE · cited in 18 of our lessons

Explanation

What attackers do. Attackers plant a web shell, a small script on a web server that accepts commands over HTTP, giving them persistent remote control of the server. It typically follows exploitation of a public-facing application and serves the Persistence tactic.

How to defend. Patch internet-facing applications, restrict write access to web directories and run web services with minimal privileges. Use file integrity monitoring on web roots and deploy endpoint detection on web servers. Web application firewalls can block known web shell traffic.

Signs to look for. Look for new or modified script files in web directories, web server processes spawning command shells, unusual requests to rarely used pages and POST requests to static content locations. A common gap is web servers without endpoint agents or file integrity monitoring.

The official text
Adversaries may backdoor web servers with web shells to establish persistent access to systems. A Web shell is a Web script that is placed on an openly accessible Web server to allow an adversary to access the Web server as a gateway into a network. A Web shell may provide a set of functions to execute or a command-line interface on the system that hosts the Web server. In addition to a server-side script, a Web shell may have a client interface program that is used to talk to the Web server (e.g. China Chopper Web shell client).

© The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation (MITRE ATT&CK®).

Lessons that cite it

Real incidents where this item mattered: the latest 12 of 18.