alert http $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET PHISHING Suspicious JS Refresh - Possible Phishing Redirect Feb 24 2017";
flow:from_server,established;
http.stat_code;
content:"200";
http.content_type;
content:"text/html"; startswith;
file.data;
content:"self.location.replace("; within:100; fast_pattern;
pcre:"/\s*(?P<var>[^)]+)\s*\).+window\s*\.\s*location\s*=\s*\(\s*(?P=var)/Rsi";
classtype:social-engineering;
sid:2024007; rev:3;
metadata:affected_product Web_Browsers, attack_target Client_Endpoint, created_at 2017_02_24, deployment Perimeter, confidence Medium, signature_severity Critical, tag Phishing, updated_at 2020_08_04, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1566, mitre_technique_name Phishing;
)