Arbitrary Command Execution Using WSL
Last updated on:
In this page
About the rule
Rule Type
Standard
Rule Description
Detects potential abuse of Windows Subsystem for Linux (WSL) binary as a Living of the Land binary in order to execute arbitrary Linux or Windows commands.
Severity
Trouble
Rule Requirement
Criteria
Action1: actionname = "Process started" AND ((PROCESSNAME endswith "\wsl.exe" OR ORIGINALFILENAME = "wsl.exe") AND COMMANDLINE contains " -e , --exec, --system, --shell-type , /mnt/c, --user root, -u root,--debug-shell") AND (PARENTPROCESSNAME notendswith "\cmd.exe" OR (COMMANDLINE notcontains " -d " OR COMMANDLINE notcontains " -e kill ")) select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME
Detection
Execution Mode
realtime
Log Sources
Windows
Author
oscd.community, Zach Stanford @svch0st, Nasreddine Bencherchali (Nextron Systems)


