alert http any any -> [$HOME_NET,$HTTP_SERVERS] any (
msg:"ET WEB_SPECIFIC_APPS Ubiquiti Unifi OS Command Injection (CVE-2026-34910)";
flow:established,to_server;
http.uri;
content:"/ucs/update/latest_package|3f|"; fast_pattern;
content:"pkg_name|3d|";
pcre:"/^[^&]*?(?:[\x3b\x24\x26\x60\x7c]|\x25(?:25)?(?:3[bB]|2[46]|60|7[cC]))/R";
reference:url,www.boredhackerblog.info/2026/06/how-unifi-os-exploitation-may-have.html;
reference:url,bishopfox.com/blog/popping-root-on-unifi-os-server-unauthenticated-rce-chain-detection-analysis;
reference:cve,2026-34910;
classtype:web-application-attack;
sid:2069922; rev:1;
metadata:affected_product Ubiquiti, attack_target Server, tls_state TLSDecrypt, created_at 2026_06_12, cve CVE_2026_34910, deployment Perimeter, deployment Internal, deployment SSLDecrypt, confidence High, signature_severity Major, tag Exploit, updated_at 2026_06_12, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;
target:dest_ip;
)