alert http any any -> $HOME_NET any (
msg:"ET WEB_SPECIFIC_APPS UniFi Access Unauthenticated Remote Code Execution (CVE-2025-52665)";
flow:established,to_server;
http.uri;
content:"/api/ucore/backup/export"; fast_pattern;
http.request_body;
content:"|22|dir|22 3a|";
pcre:"/^\s*?\x22[^\x22]*?[\x3b\x26\x60\x7c\x24]/R";
reference:url,www.catchify.sa/post/cve-2025-52665-rce-in-unifi-os-25-000;
reference:cve,2025-52665;
classtype:web-application-attack;
sid:2065968; rev:1;
metadata:attack_target Server, tls_state TLSDecrypt, created_at 2025_12_01, cve CVE_2025_52665, deployment Perimeter, deployment Internal, deployment SSLDecrypt, confidence High, signature_severity Major, tag Exploit, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2025_12_01, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)