alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"ET MALWARE Legion Loader Activity Observed (YourUserAgent)";
flow:established,to_server;
http.user_agent;
content:"YourUserAgent"; fast_pattern; startswith;
http.accept;
content:"text/*"; depth:6; endswith;
http.header_names;
content:"|0d 0a|Accept|0d 0a|User-Agent|0d 0a|Host|0d 0a 0d 0a|"; depth:30;
http.host;
content:!"api.ipify.org";
reference:url,www.deepinstinct.com/blog/untangling-legion-loaders-hornet-nest-of-malware;
classtype:trojan-activity;
sid:2029062; rev:3;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, created_at 2019_11_27, deployment Perimeter, confidence High, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2023_01_14;
)