alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE TerraStealerV2 Victim Checkin via Telegram API (Wallet Count)";
flow:established,to_server;
flowbits:set,ET.TerraStealerV2.Exfil;
http.method;
content:"POST";
http.uri;
content:"/bot"; startswith;
http.host; bsize:16;
content:"api.telegram.org";
http.request_body;
content:"chat|5f|id|3d 2d|"; startswith;
content:"|26|text|3d|Total|25|20Wallets|25|20|25|3A|25|20"; distance:0; fast_pattern;
reference:md5,ccdd5e4104d5aa3503a8fa9ef1455241;
reference:url,go.recordedfuture.com/hubfs/reports/cta-2025-0501.pdf;
reference:url,community.emergingthreats.net/t/sigs-terrastealerv2/2695;
classtype:command-and-control;
sid:2062101; 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_05_02, deployment Perimeter, deployment SSLDecrypt, malware_family TerraStealer, confidence High, signature_severity Critical, tag c2, updated_at 2025_05_02, mitre_tactic_id TA0011, mitre_tactic_name Command_And_Control, mitre_technique_id T1071, mitre_technique_name Application_Layer_Protocol;
target:src_ip;
)