alert http $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET MALWARE DarkGate Payload Inbound";
flow:established,to_client;
http.header;
content:"Content|2d|Disposition|3a 20|attachment|3b 20|filename|3d 22|";
pcre:"/^(?:[a-z]{8})\x22[\r\n]/R";
http.response_body; bsize:<400;
content:"ni|20 27|C|3a 2f|"; startswith;
content:"|27 20 2d|Type|20|Directory|20 2d|Force|3b|cd|20 27|C|3a 2f|"; distance:0;
content:"utoHotkey|2e|exe|3b|Invoke|2d|WebRequest|20 2d|Uri|20 22|http"; distance:0;
content:"|2e|ahk|27 3b|attrib"; distance:0; fast_pattern;
reference:url,twitter.com/tosscoinwitcher/status/1768337500211446074;
reference:md5,ac89528d1040074d45d5c19a0ceb7a6a;
classtype:trojan-activity;
sid:2051664; rev:1;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, tls_state plaintext, created_at 2024_03_14, deployment Perimeter, malware_family DarkGate, confidence High, signature_severity Major, tag c2, updated_at 2024_03_14, mitre_tactic_id TA0011, mitre_tactic_name Command_And_Control, mitre_technique_id T1071, mitre_technique_name Application_Layer_Protocol;
)