alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE Snake/Best Private Keylogger CnC Exfil Via Telegram";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:"/bot";
content:"/sendDocument?chat_id="; distance:0;
content:"&caption="; distance:0;
http.host; bsize:16;
content:"api.telegram.org";
http.request_body;
content:"************************";
content:"|20 42 65 73 74|"; distance:0;
content:"|20 50 72 69 76 61 74 65 20|"; fast_pattern; distance:0;
http.header_names;
content:!"|0d 0a|Referer|0d 0a|";
reference:url,malpedia.caad.fkie.fraunhofer.de/details/win.404keylogger;
classtype:command-and-control;
sid:2057744; rev:1;
metadata:attack_target Client_Endpoint, tls_state TLSDecrypt, created_at 2024_11_20, deployment Perimeter, malware_family Snake_Keylogger, malware_family Best_Private, confidence High, signature_severity Major, tag c2, tag Logger, updated_at 2024_11_21, mitre_tactic_id TA0011, mitre_tactic_name Command_And_Control, mitre_technique_id T1071, mitre_technique_name Application_Layer_Protocol;
)