Command and Control (TA0011)(external, opens in a new tab or window)
text code block:from packetbeat-*, filebeat-*, logs-network_traffic.* metadata _id, _version, _index | where ( data_stream.dataset in ("network_traffic.tls", "network_traffic.http") or (event.category in ("network", "network_traffic") and network.protocol == "http") ) | where network.transport == "tcp" | where url.full RLIKE "http://[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}/cd" | where destination.port in (53, 80, 8080, 443) | keep @timestamp, url.full, source.ip, destination.ip, destination.port, network.protocol, data_stream.dataset, _id, _version, _index
Install detection rules in Elastic Security
Detect Halfbaked Command and Control Beacon 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).