alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE Matiex Keylogger Exfil Via Telegram";
flow:established,to_server;
http.method;
content:"POST";
http.uri;
content:"/sendDocument?chat_id=";
content:"|20|Matiex|20|Keylogger|20|"; fast_pattern;
http.host; bsize:16;
content:"api.telegram.org";
http.request_body;
content:"Content-Disposition|3a 20|form-data|3b 20|name=|22|document|22 3b 20|filename=|22|MatiexPasswords.txt|22 0d 0a|";
reference:url,twitter.com/James_inthe_box/status/1289205457559547910;
reference:md5,1275d29213c2580894371739beb16148;
classtype:command-and-control;
sid:2030633; rev:2;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, created_at 2020_07_31, deployment Perimeter, deployment SSLDecrypt, performance_impact Low, confidence High, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2020_08_19;
)