alert http $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET MALWARE PowerShell Script Downloading Emotet DLL";
flow:from_server,established;
http.stat_code;
content:"200";
http.content_type;
content:"image/png"; bsize:9;
http.response_body;
content:"|24|path"; startswith;
content:".dll"; distance:0; within:200;
pcre:"/\x24url[0-9]{1}\s=\s'(http|https):\/\/[^']*\x27\x3b/i";
content:"((Get-Item |24|path).Length -ge 30000)"; nocase; fast_pattern;
reference:md5,c3cb504f97c7c7df9c25b0957dd60d9f;
classtype:trojan-activity;
sid:2035000; rev:2;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, created_at 2021_12_10, deployment Perimeter, confidence High, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2022_01_28;
)