Persistence

T1505.003: Web Shell

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 a...

T1505.003 · Sub-technique ·4 platforms ·31 groups

Description

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.(Citation: volexity_0day_sophos_FW)

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).(Citation: Lee 2013)

Platforms

LinuxmacOSNetwork DevicesWindows

Mitigations (2)

User Account ManagementM1018

Enforce the principle of least privilege by limiting privileges of user accounts so only authorized accounts can modify the web directory.(Citation: NSA and ASD Detect and Prevent Web Shells 2020)

Disable or Remove Feature or ProgramM1042

Consider disabling functions from web technologies such as PHP’s evaI() that may be abused for web shells.(Citation: ITSyndicate Disabling PHP functions)

Threat Groups (31)

IDGroupContext
G0082APT38[APT38](https://attack.mitre.org/groups/G0082) has used web shells for persistence or to ensure redundant access.(Citation: CISA AA20-239A BeagleBoyz ...
G1043BlackByte[BlackByte](https://attack.mitre.org/groups/G1043) has used ASPX web shells following exploitation of vulnerabilities in services such as Microsoft Ex...
G0093GALLIUM[GALLIUM](https://attack.mitre.org/groups/G0093) used Web shells to persist in victim environments and assist in execution and exfiltration.(Citation:...
G0094Kimsuky[Kimsuky](https://attack.mitre.org/groups/G0094) has used modified versions of open source PHP web shells to maintain access, often adding "Dinosaur" ...
G1017Volt Typhoon[Volt Typhoon](https://attack.mitre.org/groups/G1017) has used webshells, including ones named AuditReport.jspx and iisstart.aspx, in compromised envi...
G0035Dragonfly[Dragonfly](https://attack.mitre.org/groups/G0035) has commonly created Web shells on victims' publicly accessible email and web servers, which they u...
G0050APT32[APT32](https://attack.mitre.org/groups/G0050) has used Web shells to maintain access to victim websites.(Citation: Volexity OceanLotus Nov 2017)
G0125HAFNIUM[HAFNIUM](https://attack.mitre.org/groups/G0125) has deployed multiple web shells on compromised servers including SIMPLESEESHARP, SPORTSBALL, [China ...
G0034Sandworm Team[Sandworm Team](https://attack.mitre.org/groups/G0034) has used webshells including [P.A.S. Webshell](https://attack.mitre.org/software/S0598) to main...
G1012CURIUM[CURIUM](https://attack.mitre.org/groups/G1012) has been linked to web shells following likely server compromise as an initial access vector into vict...
G0129Mustang Panda[Mustang Panda](https://attack.mitre.org/groups/G0129) has used [China Chopper](https://attack.mitre.org/software/S0020) web shells to maintain access...
G0087APT39[APT39](https://attack.mitre.org/groups/G0087) has installed ANTAK and ASPXSPY web shells.(Citation: FireEye APT39 Jan 2019)
G1009Moses Staff[Moses Staff](https://attack.mitre.org/groups/G1009) has dropped a web shell onto a compromised system.(Citation: Checkpoint MosesStaff Nov 2021)
G0049OilRig[OilRig](https://attack.mitre.org/groups/G0049) has used web shells, often to maintain access to a victim network.(Citation: Unit42 OilRig Playbook 20...
G0081Tropic Trooper[Tropic Trooper](https://attack.mitre.org/groups/G0081) has started a web service in the target host and wait for the adversary to connect, acting as ...
G1041Sea Turtle[Sea Turtle](https://attack.mitre.org/groups/G1041) deployed the [SnappyTCP](https://attack.mitre.org/software/S1163) web shell during intrusion opera...
G0065Leviathan[Leviathan](https://attack.mitre.org/groups/G0065) relies on web shells for an initial foothold as well as persistence into the victim's systems.(Cita...
G0016APT29[APT29](https://attack.mitre.org/groups/G0016) has installed web shells on exploited Microsoft Exchange servers.(Citation: Cybersecurity Advisory SVR ...
G1051Medusa Group[Medusa Group](https://attack.mitre.org/groups/G1051) has utilized webshells to an exploited Microsoft Exchange Server.(Citation: Palo Alto Unit 42 Me...
G0135BackdoorDiplomacy[BackdoorDiplomacy](https://attack.mitre.org/groups/G0135) has used web shells to establish an initial foothold and for lateral movement within a vict...

Associated Software (22)

IDNameTypeContext
S0185SEASHARPEEMalware[SEASHARPEE](https://attack.mitre.org/software/S0185) is a Web shell.(Citation: FireEye APT34 Webinar Dec 2017)
S1187reGeorgMalware[reGeorg](https://attack.mitre.org/software/S1187) is a web shell that has been installed on exposed web servers for access to victim environments.(Ci...
S1118BUSHWALKMalware[BUSHWALK](https://attack.mitre.org/software/S1118) is a web shell that has the ability to execute arbitrary commands or write files.(Citation: Mandia...
S0598P.A.S. WebshellMalware[P.A.S. Webshell](https://attack.mitre.org/software/S0598) can gain remote access and execution on target web servers.(Citation: ANSSI Sandworm Januar...
S1117GLASSTOKENMalware[GLASSTOKEN](https://attack.mitre.org/software/S1117) is a web shell capable of tunneling C2 connections and code execution on compromised Ivanti Secu...
S0073ASPXSpyMalware[ASPXSpy](https://attack.mitre.org/software/S0073) is a Web shell. The ASPXTool version used by [Threat Group-3390](https://attack.mitre.org/groups/G0...
S0020China ChopperMalware[China Chopper](https://attack.mitre.org/software/S0020)'s server component is a Web Shell payload.(Citation: Lee 2013)
S1163SnappyTCPMalware[SnappyTCP](https://attack.mitre.org/software/S1163) is a reverse TCP shell with command and control capabilities used for persistence purposes.(Citat...
S1119LIGHTWIREMalware[LIGHTWIRE](https://attack.mitre.org/software/S1119) is a web shell capable of command execution and establishing persistence on compromised Ivanti Se...
S1188Line RunnerMalware[Line Runner](https://attack.mitre.org/software/S1188) is a persistent Lua-based web shell.(Citation: CCCS ArcaneDoor 2024)
S1113RAPIDPULSEMalware[RAPIDPULSE](https://attack.mitre.org/software/S1113) is a web shell that is capable of arbitrary file read on targeted web servers to exfiltrate item...
S9028PHPsertMalware[PHPsert](https://attack.mitre.org/software/S9028) can use the .php assert function to execute attacker-provided code and maintain persistence on targ...
S1108PULSECHECKMalware[PULSECHECK](https://attack.mitre.org/software/S1108) is a web shell that can enable command execution on compromised servers.(Citation: Mandiant Puls...
S0072OwaAuthMalware[OwaAuth](https://attack.mitre.org/software/S0072) is a Web shell that appears to be exclusively used by [Threat Group-3390](https://attack.mitre.org/...
S0578SUPERNOVAMalware[SUPERNOVA](https://attack.mitre.org/software/S0578) is a Web shell.(Citation: Unit42 SUPERNOVA Dec 2020)(Citation: Guidepoint SUPERNOVA Dec 2020)(Cit...
S1189Neo-reGeorgMalware[Neo-reGeorg](https://attack.mitre.org/software/S1189) can be installed on compromised web servers to tunnel C2 connections.(Citation: GitHub Neo-reGe...
S1120FRAMESTINGMalware[FRAMESTING](https://attack.mitre.org/software/S1120) is a web shell capable of enabling arbitrary command execution on compromised Ivanti Connect Sec...
S1115WIREFIREMalware[WIREFIRE](https://attack.mitre.org/software/S1115) is a web shell that can download files to and execute arbitrary commands from compromised Ivanti C...
S1112STEADYPULSEMalware[STEADYPULSE](https://attack.mitre.org/software/S1112) is a web shell that can enable the execution of arbitrary commands on compromised web servers.(...
S9014PHASEJAMMalware[PHASEJAM](https://attack.mitre.org/software/S9014) has inserted Perl-based web shells into legitimate files that provided threat actors with remote a...

Related CWE Weaknesses

References

Frequently Asked Questions

What is T1505.003 (Web Shell)?

T1505.003 is a MITRE ATT&CK technique named 'Web Shell'. It belongs to the Persistence tactic(s). 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 a...

How can T1505.003 be detected?

Detection of T1505.003 (Web Shell) typically involves monitoring system logs, network traffic, and endpoint telemetry. Use SIEM rules, EDR solutions, and behavioral analytics to identify suspicious activity associated with this technique.

What mitigations exist for T1505.003?

There are 2 documented mitigations for T1505.003. Key mitigations include: User Account Management, Disable or Remove Feature or Program.

Which threat groups use T1505.003?

Known threat groups using T1505.003 include: APT38, BlackByte, GALLIUM, Kimsuky, Volt Typhoon, Dragonfly, APT32, HAFNIUM.