alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE [ANY.RUN] Observed Malicious Powershell Related Activity (GET)";
flow:established,to_server;
http.method;
content:"GET";
http.uri;
pcre:"/^\/[a-zA-Z0-9]{1,8}(?:([0-9][A-Za-z])|([a-z][\dA-Z])|(?:[A-Z][\da-z])|([a-z]\d[\da-z]))[a-zA-Z0-9]{0,8}\/[a-zA-Z0-9]{1,8}(?:([0-9][A-Za-z])|([a-z][\dA-Z])|([A-Z][\da-z])|([a-z]\d[\da-z]))[a-zA-Z0-9]{0,8}$/";
http.host;
pcre:"/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/";
http.user_agent;
content:"WindowsPowerShell"; fast_pattern;
http.header_names;
content:"|0d 0a|User-Agent|0d 0a|Host|0d 0a|Connection|0d 0a 0d 0a|"; bsize:34;
reference:md5,26c1f8c5631a5b633c324e7986dc7054;
reference:url,community.emergingthreats.net/t/lgoogloader-pikabot-redline-rules/597/;
classtype:trojan-activity;
sid:2046046; rev:1;
metadata:attack_target Client_Endpoint, created_at 2023_05_31, deployment Perimeter, performance_impact Low, confidence Medium, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2023_12_28;
target:src_ip;
)