alert tls $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET MALWARE Possible Upatre or Dyre SSL Cert Jan 22 2015";
flow:established,to_client;
tls.cert_serial;
content:"00:"; startswith; bsize:26;
tls.cert_subject;
content:"C=CN, ST=ST"; fast_pattern;
tls.certs;
content:"|06 03 55 04 07|";
pcre:"/^.{2}(?P<var>[a-zA-Z0-9]{24}[01]).+?\x06\x03\x55\x04\x07.{2}(?P=var)/Rs";
classtype:trojan-activity;
sid:2020290; rev:6;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, created_at 2015_01_23, deployment Perimeter, malware_family Upatre, confidence Medium, signature_severity Critical, tag SSL_Malicious_Cert, tag Exploit_Kit, tag Downloader, tag Upatre, updated_at 2022_03_27;
)