// ===== fw_unifi_access_ports_from_internet.yml (no_pipeline)
(dst_port in~ ("8443", "12442", "12443", "12445", "12478", "12812")) and (not((ipv4_is_in_range(src_ip, "10.0.0.0/8") or ipv4_is_in_range(src_ip, "172.16.0.0/12") or ipv4_is_in_range(src_ip, "192.168.0.0/16") or ipv4_is_in_range(src_ip, "127.0.0.0/8") or ipv4_is_in_range(src_ip, "fc00::/7") or ipv4_is_in_range(src_ip, "fe80::/10"))))
// ===== fw_unifi_console_management_from_internet.yml (no_pipeline)
(dst_ip =~ "192.0.2.10" and (dst_port in~ ("22", "443"))) and (not((ipv4_is_in_range(src_ip, "10.0.0.0/8") or ipv4_is_in_range(src_ip, "172.16.0.0/12") or ipv4_is_in_range(src_ip, "192.168.0.0/16") or ipv4_is_in_range(src_ip, "127.0.0.0/8") or ipv4_is_in_range(src_ip, "fc00::/7") or ipv4_is_in_range(src_ip, "fe80::/10"))))
// ===== fw_unifi_console_outbound_unusual_port.yml (no_pipeline)
src_ip =~ "192.0.2.10" and (not((ipv4_is_in_range(dst_ip, "10.0.0.0/8") or ipv4_is_in_range(dst_ip, "172.16.0.0/12") or ipv4_is_in_range(dst_ip, "192.168.0.0/16") or ipv4_is_in_range(dst_ip, "127.0.0.0/8") or ipv4_is_in_range(dst_ip, "fc00::/7") or ipv4_is_in_range(dst_ip, "fe80::/10")))) and (not((dst_port in~ ("443", "8883", "3478"))))
// ===== net_connection_lnx_script_to_unifi_access_api.yml (no_pipeline)
(DestinationPort in~ ("12443", "12445")) and (Image endswith "/curl" or Image endswith "/wget" or Image endswith "/python" or Image endswith "/python3" or Image endswith "/nc" or Image endswith "/ncat")
// ===== net_connection_win_script_to_unifi_access_api.yml (no_pipeline)
(DestinationPort in~ ("12443", "12445")) and (Image endswith "\\curl.exe" or Image endswith "\\python.exe" or Image endswith "\\powershell.exe" or Image endswith "\\pwsh.exe" or Image endswith "\\wscript.exe" or Image endswith "\\cscript.exe")
// ===== unifi_cef_account_role_change.yml (no_pipeline)
"Ubiquiti" and ("admin added" or "admin removed" or "admin deleted" or "role changed" or "role updated" or "super admin" or "user added" or "visitor added" or "user status changed" or "api key" or "api token")
// ===== unifi_cef_admin_activity.yml (no_pipeline)
"Ubiquiti" and "UNIFIsubCategory=Admin"
// ===== unifi_cef_door_policy_lockdown_change.yml (no_pipeline)
"Ubiquiti" and ("unlock schedule" or "lockdown" or "emergency mode" or "evacuation" or "door policy" or "access policy" or "keep unlocked")
// ===== unifi_cef_remote_unlock.yml (no_pipeline)
"Ubiquiti" and ("Access Granted (Remote)" or "access.door.unlock" or "remote unlock" or "unlocked remotely")
