alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE Lazarus APT Related Valefor/VSingle CnC Beacon";
flow:to_server,established;
http.method;
content:"GET";
http.uri;
content:"/1";
content:".php?ufw="; distance:0; fast_pattern;
pcre:"/\/[a-z0-9]{16}\.php\?ufw=(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$/";
http.user_agent;
content:"Mozilla/5.0 (Windows|3b 20|U|3b 20|Windows NT 6.1|3b|"; depth:40;
reference:md5,67f4dad1a94ed8a47283c2c0c05a7594;
reference:url,blogs.jpcert.or.jp/en/2022/07/vsingle.html;
classtype:targeted-activity;
sid:2037275; rev:2;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, created_at 2020_07_09, deployment Perimeter, malware_family Lazarus, malware_family Stonefly, confidence High, signature_severity Major, tag c2, updated_at 2022_07_06, mitre_tactic_id TA0010, mitre_tactic_name Exfiltration, mitre_technique_id T1041, mitre_technique_name Exfiltration_Over_C2_Channel;
)