alert http $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET MALWARE Wide HTA with PowerShell Execution Inbound";
flow:established,from_server;
http.stat_code;
content:"200";
http.content_type;
content:"application/hta";
file.data;
content:"W|00|s|00|c|00|r|00|i|00|p|00|t"; nocase;
content:"S|00|h|00|e|00|l|00|l|00|"; distance:0; nocase;
content:"p|00|o|00|w|00|e|00|r|00|s|00|h|00|e|00|l|00|l|00|"; distance:0; nocase; fast_pattern;
content:"h|00|i|00|d|00|d|00|e|00|n"; within:200;
reference:md5,e5a9c413812b5217ef0da962668e9651;
classtype:trojan-activity;
sid:2027335; rev:3;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, created_at 2019_05_08, deployment Perimeter, performance_impact Low, confidence High, signature_severity Major, tag PowerShell, tag T1086, updated_at 2020_11_18;
)