Elastic low stable eql
Simple HTTP Web Server Connection
This rule detects connections accepted by a simple HTTP web server in Python and PHP built-in modules. Adversaries may create simple HTTP web servers to establish persistence on a compromised system by uploading a reverse or command shell payload to the server web root, allowing them to regain remote access to the system if lost. This event may occur when an attacker requests the server to execute a command or script via a potential backdoor.
Detection Logic
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"] Field Validations
Loading…
Comments (0)
Loading comments...