alert http $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET MALWARE StealC_V2 PowerShell Payload Inbound";
flow:established,to_client;
http.header;
content:"content|2d|disposition|3a 20|attachment|3b 20|filename|3d 22|"; nocase;
pcre:"/^(?:[a-zA-Z0-9]{1,30})\x2eps1\x22[\r\n]/R";
http.response_body;
content:"reg|20|add|20 22|HKLM|5c|SOFTWARE|5c|Policies|5c|Microsoft|5c|Windows|20|Defender|5c|Exclusions|5c|Paths|22 20 2f|v|20 22|C|3a 5c|ProgramData|22|"; fast_pattern;
pcre:"/\x20\x3d\x20\x22(?:[A-Z0-9]{64})\x22[\r\n]/";
content:"|20 2d|Algorithm|20|SHA256|29 2e|Hash|20 2d|ne|20 24|"; distance:0;
content:"|24|bytes|20 3d 20 28|Invoke|2d|WebRequest|20 2d|Uri|20 24|"; distance:0;
content:"|5b|System|2e|IO|2e|File|5d 3a 3a|WriteAllBytes|28 24|"; distance:0;
content:"|2e|Attributes|20 3d 20 27|ReadOnly|2c 20|Hidden|2c 20|System|27|";
classtype:trojan-activity;
sid:2066345; rev:1;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, tls_state TLSDecrypt, created_at 2025_12_16, deployment Perimeter, deployment SSLDecrypt, malware_family Stealc, confidence High, signature_severity Major, updated_at 2025_12_16;
target:dest_ip;
)