alert http $EXTERNAL_NET any -> $HOME_NET any (
msg:"ET HUNTING Detect iPhone or MacOS Device and Force Safari Usage";
flow:established,to_client;
http.stat_code;
content:"200";
http.response_body;
content:"|2f|iPhone|2f|i|2e|test|28|navigator|2e|userAgent|29|";
content:"|2f|Macintosh|2f|i|2e|test|28|navigator|2e|userAgent|29|";
content:"location.href"; distance:0;
content:"x-safari-https://"; fast_pattern; within:25;
reference:url,christiantietze.de/posts/2023/05/safari-for-mac-url-scheme/;
reference:url,cloud.google.com/blog/topics/threat-intelligence/darksword-ios-exploit-chain?e=48754805;
classtype:misc-activity;
sid:2068402; rev:1;
metadata:affected_product Mac_OSX, affected_product iOS, attack_target Client_Endpoint, tls_state TLSDecrypt, created_at 2026_03_24, deployment Perimeter, deployment SSLDecrypt, confidence High, signature_severity Informational, updated_at 2026_03_24, mitre_tactic_id TA0043, mitre_tactic_name Reconnaissance, mitre_technique_id T1590, mitre_technique_name Gather_Victim_Network_Information;
)