Anvilogic high experimental spl

Visual Studio Code Tunnel Execution [splunk-winevent]

Adversaries may communicate using application layer protocols associated with web traffic to avoid detection/network filtering by blending in with existing traffic. Commands to the remote system, and often the results of those commands, will be embedded within the protocol traffic between the client and server. This use case detects the execution of Visual Studio Code tunnel in attempt to establish a C2 channel, accounting for instances where the binary has been renamed.

View Source

Detection Logic

`get_endpoint_data` `get_endpoint_data_winevent` (TERM(EventCode=4688) 
OR "<EventID>4688<" 
OR Type=Process) "tunnel" 
OR ("tunnel" ("--name " "--accept-server-license-terms") 
OR "--cli-data-dir") 
OR ("cmd.exe" " /d " " /c " "\\servers\\Stable-" "code-server.cmd")
| where match(process, "(?i)\.exe(\x22)?\s+tunnel\s?") or ((match(process, "\.exe(\x22)?\s+tunnel\s?$") and like(process, "%--name %") and like(process, "%--accept-server-license-terms%")) or like(process, "%--cli-data-dir%") or (like(process_path, "%cmd.exe") and like(process, "% /d %") and like(process, "% /c %") and like(process, "%\\servers\\Stable-%") and like(process, "%code-server.cmd%")))
| table _time, host, user, process, process_*, parent_*
| bin span=1s
| stats values(*) as * by _time, host

Field Validations

Loading…

Comments (0)

Loading comments...