alert http $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET ATTACK_RESPONSE PowerShell Geo Check Before Execution";
flow:established,to_client;
http.response_body;
content:"|7c 20|Select|20 2d|exp|20|country|0a|"; offset:110; depth:40; fast_pattern;
content:"|20|If|20 28 24|"; within:10;
content:"|2d|eq|20 27|"; distance:7; within:10;
content:"|27 29|"; distance:2; within:2;
pcre:"/ElseIf\s+\x28\x24\w{8,10}\s+\x2deq\s+\x27\w{2}\x27\x29\s+\x7b/R";
reference:md5,0777d02ed4a7a6301bac5102e4569256;
reference:url,twitter.com/StopMalvertisin/status/1542782976052056065;
classtype:misc-activity;
sid:2037253; rev:3;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, created_at 2022_07_01, deployment Perimeter, confidence High, signature_severity Minor, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_12_12, reviewed_at 2024_01_26;
)