Persistence (TA0003)(external, opens in a new tab or window)
Execution (TA0002)(external, opens in a new tab or window)
Command and Control (TA0011)(external, opens in a new tab or window)
text code block:sequence by process.entity_id with maxspan=1m [process where host.os.type == "linux" and event.type == "start" and ( (process.name regex~ """php?[0-9]?\.?[0-9]{0,2}""" and process.command_line like "*-S*") or (process.name like "python*" and process.command_line like ("*--cgi*", "*CGIHTTPServer*")) ) and not process.parent.command_line == "runc init" ] [network where host.os.type == "linux" and event.type == "start" and event.action == "connection_accepted"]
Install detection rules in Elastic Security
Detect Simple HTTP Web Server Connection in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).