Anvilogic medium experimental spl

NIX Reverse Shell Commands [splunk-edr]

A reverse shell is a type of shell in which the target machine communicates back to the attacking machine. The attacking machine has a listener port on which it receives the connection, which by using, code or command execution is achieved. -- Threat Actor Association: Sandworm (UAC-0165), Teal Kurma (aka Sea Turtle, Marbled Dust, Cosmic Wolf), UNC5221, UTA0178 - Software Association: LoggerMiner

View Source

Detection Logic

`get_endpoint_data` `get_endpoint_data_edr` (TERM(nc) TERM(-e) TERM(/bin/sh)) 
OR ((TERM(bash) 
OR TERM(sh)) TERM(-i) "/dev/tcp" "0>&1") 
OR ((TERM(python) 
OR TERM(python3)) TERM(-c) TERM(/bin/sh) TERM(socket) TERM(subprocess.call)) 
OR (TERM(php) TERM(-r) TERM(fsockopen) TERM(exec) TERM(/bin/sh) TERM(-i)) 
OR TERM(ncat)
| rex max_match=100 "a\d{1,2}\=(?<process_tmp2>.+)"
| rex field=process_tmp2 mode=sed max_match=0 "s/a\d{1,2}\=//g"
| eval process=mvappend(process_tmp2, process, cmd)
| table _time, host, user, process, process_*,
| bin span=1s
| stats values(*) as * by _time, host

Field Validations

Loading…

Comments (0)

Loading comments...