T1505.003 Web Shell
Persistenceon attack.mitre.org
ATT&CK Enterprise 20.0 · 20.1 released, update in review
How MITRE detects it
DET0394 Web Shell Detection via Server Behavior and File Execution Chains
AN1108 Windows
Unexpected file creation in web directories followed by web server processes (e.g., w3wp.exe) spawning command shells or script interpreters (e.g., cmd.exe, powershell.exe)
| MITRE log source | In Microsoft Sentinel |
|---|---|
WinEventLog:SysmonEventCode=11 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
WinEventLog:SysmonEventCode=1 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
WinEventLog:SecurityEventCode=4624, 4648 |
The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only. |
NSM:FlowInbound HTTP POST with suspicious payload size or user-agent | Not mapped to Sentinel yet. |
AN1109 Linux
File creation of unauthorized script (e.g., .php, .sh) in /var/www/html followed by execution of unexpected system utilities (e.g., curl, bash, nc) by apache/nginx
| MITRE log source | In Microsoft Sentinel |
|---|---|
auditd:SYSCALLnew file created in /var/www/html, /srv/http, or similar web root | Not mapped to Sentinel yet. |
auditd:SYSCALLapache2 or nginx spawning sh, bash, or python interpreter | Not mapped to Sentinel yet. |
NSM:FlowPOST requests to .php, .jsp, .aspx files with high entropy body | Not mapped to Sentinel yet. |
AN1110 macOS
Web servers (e.g., httpd) spawning abnormal processes post file upload into /Library/WebServer/Documents or /usr/local/var/www
| MITRE log source | In Microsoft Sentinel |
|---|---|
macos:unifiedloghttpd spawning bash, zsh, python, or osascript | Not mapped to Sentinel yet. |
auditd:SYSCALLfile write operations in /Library/WebServer/Documents | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (5)
- CYFIRMA - High severity TOR Node Network Indicators - Block Recommended Rule
- CYFIRMA - High severity TOR Node Network Indicators - Monitor Recommended Rule
- CYFIRMA - Medium severity TOR Node Network Indicators - Block Recommended Rule
- CYFIRMA - Medium severity TOR Node Network Indicators - Monitor Recommended Rule
- Apache - Unexpected Post Requests
How the Content Hub rules for T1505.003 are built: their tables, filters, joins, schedules and windows.
In Sigma rules
35 SigmaHQ community rules name it in their tags.
- CVE-2021-40539 Zoho ManageEngine ADSelfService Plus Exploit
- Certificate Request Export to Exchange Webserver
- Mailbox Export to Exchange Webserver
- Oracle WebLogic Exploit
- Solarwinds SUPERNOVA Webshell Access
- Webshell Remote Command Execution
- Antivirus - Web Shell Detection Signature
- Chopper Webshell Process Pattern
- DEWMODE Webshell Access
- Exchange Set OabVirtualDirectory ExternalUrl Property
- Linux Webshell Indicators
- MOVEit CVE-2023-34362 Exploitation Attempt - Potential Web Shell Request
- Rejetto HTTP File Server RCE
- Shellshock Expression
- Suspicious ASPX File Drop by Exchange
- Suspicious Child Process Of SQL Server
- Suspicious MSExchangeMailboxReplication ASPX Write
- Suspicious Process By Web Server Process
- Suspicious Windows Strings In URI
- Webshell Detection With Command Line Keywords
- Webshell Hacking Activity Patterns
- Webshell ReGeorg Detection Via Web Logs
- Webshell Tool Reconnaissance Activity
- Windows Webshell Strings
- Execution From Webserver Root Folder
Mitigations
MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.