ID | Name |
---|---|
T1505.001 | SQL Stored Procedures |
T1505.002 | Transport Agent |
T1505.003 | Web Shell |
T1505.004 | IIS Components |
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 use 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 (ex: China Chopper Web shell client).[1]
ID | Name | Description |
---|---|---|
G0007 | APT28 |
APT28 has used a modified and obfuscated version of the reGeorg web shell to maintain persistence on a target's Outlook Web Access (OWA) server.[2] |
G0016 | APT29 |
APT29 has installed web shells on exploited Microsoft Exchange servers.[3] |
G0050 | APT32 |
APT32 has used Web shells to maintain access to victim websites.[4] |
G0082 | APT38 |
APT38 has used web shells for persistence or to ensure redundant access.[5] |
G0087 | APT39 | |
S0073 | ASPXSpy |
ASPXSpy is a Web shell. The ASPXTool version used by Threat Group-3390 has been deployed to accessible servers running Internet Information Services (IIS).[7] |
G0135 | BackdoorDiplomacy |
BackdoorDiplomacy has used web shells to establish an initial foothold and for lateral movement within a victim's system.[8] |
S0020 | China Chopper |
China Chopper's server component is a Web Shell payload.[1] |
G0009 | Deep Panda |
Deep Panda uses Web shells on publicly accessible Web servers to access victim networks.[9] |
G0074 | Dragonfly 2.0 |
Dragonfly 2.0 commonly created Web shells on victims' publicly accessible email and web servers, which they used to maintain access to a victim network and download additional malicious files.[10][11] |
G0117 | Fox Kitten |
Fox Kitten has installed web shells on compromised hosts to maintain access.[12][13] |
G0093 | GALLIUM |
GALLIUM used Web shells to persist in victim environments and assist in execution and exfiltration.[14][15] |
G0125 | HAFNIUM |
HAFNIUM has deployed multiple web shells on compromised servers including SIMPLESEESHARP, SPORTSBALL, China Chopper, and ASPXSpy.[16][17][18] |
G0094 | Kimsuky |
Kimsuky has used modified versions of open source PHP web shells to maintain access, often adding "Dinosaur" references within the code.[19] |
G0065 | Leviathan |
Leviathan relies on web shells for an initial foothold as well as persistence into the victim's systems.[20][21] |
G0049 | OilRig |
OilRig has used web shells, often to maintain access to a victim network.[22][23][24] |
G0116 | Operation Wocao |
Operation Wocao has used their own web shells, as well as those previously placed on target systems by other threat actors, for reconnaissance and lateral movement.[25] |
S0072 | OwaAuth |
OwaAuth is a Web shell that appears to be exclusively used by Threat Group-3390. It is installed as an ISAPI filter on Exchange servers and shares characteristics with the China Chopper Web shell.[7] |
S0598 | P.A.S. Webshell |
P.A.S. Webshell can gain remote access and execution on target web servers.[26] |
G0034 | Sandworm Team |
Sandworm Team has used webshells including P.A.S. Webshell to maintain access to victim networks.[26] |
S0185 | SEASHARPEE |
SEASHARPEE is a Web shell.[23] |
S0578 | SUPERNOVA | |
G0088 | TEMP.Veles |
TEMP.Veles has planted Web shells on Outlook Exchange servers.[30] |
G0027 | Threat Group-3390 |
Threat Group-3390 has used a variety of Web shells.[31] |
G0131 | Tonto Team |
Tonto Team has used a first stage web shell after compromising a vulnerable Exchange server.[32] |
G0081 | Tropic Trooper |
Tropic Trooper has started a web service in the target host and wait for the adversary to connect, acting as a web shell.[33] |
G0123 | Volatile Cedar |
Volatile Cedar can inject web shell code into a server.[34][35] |
ID | Mitigation | Description |
---|---|---|
M1042 | Disable or Remove Feature or Program |
Consider disabling functions from web technologies such as PHP’s |
M1018 | User Account Management |
Enforce the principle of least privilege by limiting privileges of user accounts so only authorized accounts can modify the web directory.[37] |
Web shells can be difficult to detect. Unlike other forms of persistent remote access, they do not initiate connections. The portion of the Web shell that is on the server may be small and innocuous looking. The PHP version of the China Chopper Web shell, for example, is the following short payload: [1]
<?php @eval($_POST['password']);>
Nevertheless, detection mechanisms exist. Process monitoring may be used to detect Web servers that perform suspicious actions such as spawning cmd.exe or accessing files that are not in the Web directory.[38]
File monitoring may be used to detect changes to files in the Web directory of a Web server that do not match with updates to the Web server's content and may indicate implantation of a Web shell script.[38]
Log authentication attempts to the server and any unusual traffic patterns to or from the server and internal network. [39]