alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE DCRAT Checkin via Telegram";
flow:established,to_server;
http.uri;
content:"/bot"; startswith;
content:"|2f|sendPhoto|3f|chat|5f|id|3d|"; distance:0;
content:"caption|3d e2 9d 95 20|User|20|connected|20 e2 9d 95|"; distance:10; within:65;
content:"|e2 80 a2 20|ID|3a 20|"; within:65;
content:"|0a e2 80 a2 20|Comment|3a 20|"; distance:40; within:35;
content:"|0a 0a e2 80 a2 20|User|20|Name|3a 20|"; distance:11; within:27;
content:"|0a e2 80 a2 20|PC|20|Name|3a 20|"; within:100;
content:"|0a e2 80 a2 20|OS|20|Info|3a 20|"; within:100;
content:"|0a e2 80 a2 20|IP|3a 20|"; within:100;
content:"|0a e2 80 a2 20|GEO|3a 20|"; distance:7; within:20;
content:"|e2 80 a2 20|Working|20|Directory|3a 20|"; within:100; fast_pattern;
http.host;
content:"api.telegram.org";
reference:url,github.com/eatinsundip/Suricata/tree/main/ET_Open_Submissions/2023/January/DCRat_Activity_01092023;
reference:url,tria.ge/230107-eynj2acf87/behavioral2;
classtype:trojan-activity;
sid:2043288; rev:2;
metadata:attack_target Client_Endpoint, created_at 2023_01_12, deployment Perimeter, deployment SSLDecrypt, malware_family DCRat, performance_impact Low, confidence High, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_01_31;
)