alert http $HOME_NET any -> any any (
msg:"ET MALWARE [PT MALWARE] Hacked Mikrotik C2 Request";
flow:established, to_server;
threshold:type threshold, track by_src, count 1, seconds 35;
http.method;
content:"GET";
http.uri;
content:"/mikrotik.php"; endswith;
http.user_agent;
content:"Mikrotik/6.x Fetch"; depth:18; endswith; fast_pattern;
http.header_names;
content:!"Accept";
content:!"Referer";
reference:url,forum.mikrotik.com/viewtopic.php?t=137217;
classtype:command-and-control;
sid:2026027; rev:5;
metadata:created_at 2018_08_23, deployment Perimeter, performance_impact Moderate, confidence High, signature_severity Major, updated_at 2020_11_19, reviewed_at 2024_02_16;
)