WSL Child Process Anomaly

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects uncommon or suspicious child processes spawning from a WSL process. This could indicate an attempt to evade parent/child relationship detections or persistence attempts via cron using WSL

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "Process started" AND PARENTPROCESSNAME endswith "\wsl.exe,\wslhost.exe" AND (PROCESSNAME endswith "\calc.exe,\cmd.exe,\cscript.exe,\mshta.exe,\powershell.exe,\pwsh.exe,\regsvr32.exe,\rundll32.exe,\wscript.exe" OR PROCESSNAME contains "\AppData\Local\Temp\,C:\Users\Public\,C:\Windows\Temp\,C:\Temp\,\Downloads\,\Desktop") select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME

Detection

Execution Mode

realtime

Log Sources

Windows

Author

Nasreddine Bencherchali (Nextron Systems)