alert http $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET EXPLOIT_KIT Possible PurpleFox EK Redirect M2";
flow:established,to_client;
http.stat_code;
content:"302";
http.location;
content:"?key="; fast_pattern;
content:"&id="; distance:16; within:4;
content:"&gid=";
pcre:"/key=[A-F0-9]{16}&id=\d+&gid=[A-F0-9\-]+$/";
file.data;
content:"<body>";
content:"<a HREF=|22|http"; distance:0;
content:"?key="; within:400;
pcre:"/^[A-F0-9]{16}(?:&|&\x3b)id=\d+(?:&|&\x3b)gid=[A-F0-9\-]+\x22>/R";
content:!"<html>";
reference:url,twitter.com/nao_sec/status/1378546891349106692;
classtype:exploit-kit;
sid:2032480; rev:1;
metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, created_at 2021_04_05, deployment Perimeter, malware_family PurpleFox, confidence Medium, signature_severity Major, tag Exploit_Kit, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2021_04_05;
)