alert tcp $HOME_NET any -> $EXTERNAL_NET [445,139] (
msg:"ET MALWARE Possible Locky Ransomware Writing Encrypted File over - SMB and SMB-DS v2";
flow:to_server,established;
content:"|FE|SMB|40 00|"; offset:4; depth:6;
content:"|05 00|"; distance:6; within:2;
content:"|00|.|00|l|00|o|00|c|00|k|00|y|00 00|"; nocase; distance:0; fast_pattern;
threshold:type limit, count 1, seconds 600, track by_dst;
classtype:trojan-activity;
sid:2022639; rev:6;
metadata:attack_target Client_Endpoint, created_at 2016_03_23, deployment Perimeter, malware_family Locky, confidence Medium, signature_severity Major, tag Ransomware, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2022_10_10, mitre_tactic_id TA0040, mitre_tactic_name Impact, mitre_technique_id T1486, mitre_technique_name Data_Encrypted_for_Impact;
)