CVE-2026-34908 Microsoft Sentinel · KQL

Detect CVE-2026-34908 — Ubiquiti UniFi OS Improper Access Control Exploitation in Microsoft Sentinel

Detects exploitation attempts targeting CVE-2026-34908, an improper access control vulnerability (CWE-284) in Ubiquiti UniFi OS. This vulnerability is listed on the CISA Known Exploited Vulnerabilities catalog and allows attackers to bypass access controls on UniFi OS devices. Detection focuses on unauthorized API access, anomalous management plane requests, and lateral movement patterns consistent with UniFi controller compromise.

MITRE ATT&CK

Tactic
Initial Access Privilege Escalation Defense Evasion Lateral Movement

KQL Detection Query

Microsoft Sentinel (KQL)
kusto
let UniFiIPs = dynamic([]);
let SuspiciousEndpoints = dynamic(["/api/", "/proxy/network/api/", "/api/s/default/", "/api/login", "/api/self"]);
CommonSecurityLog
| where TimeGenerated >= ago(24h)
| where DeviceVendor has_any ("Ubiquiti", "UniFi") or DestinationHostName has_any ("unifi", "ubiquiti")
| where RequestURL has_any (SuspiciousEndpoints)
| where (RequestMethod in ("GET", "POST", "PUT", "DELETE") and (isnotempty(SourceIP)))
| extend IsAdminEndpoint = RequestURL has_any ("/api/s/default/cmd/", "/proxy/network/api/s/default/cmd/", "/api/system")
| extend IsUnauthenticated = ResponseCode in ("200", "201", "204") and (isempty(AdditionalExtensions) or AdditionalExtensions !has "authenticated")
| where IsAdminEndpoint == true
| summarize
    RequestCount = count(),
    DistinctEndpoints = dcount(RequestURL),
    Endpoints = make_set(RequestURL, 20),
    ResponseCodes = make_set(ResponseCode, 10),
    FirstSeen = min(TimeGenerated),
    LastSeen = max(TimeGenerated)
    by SourceIP, DestinationIP, DestinationHostName
| where RequestCount >= 3 or DistinctEndpoints >= 2
| extend RiskScore = case(
    RequestCount >= 20, "High",
    RequestCount >= 5, "Medium",
    "Low")
| project FirstSeen, LastSeen, SourceIP, DestinationIP, DestinationHostName, RequestCount, DistinctEndpoints, Endpoints, ResponseCodes, RiskScore
| order by RequestCount desc
critical severity medium confidence

Detects suspicious access to UniFi OS administrative API endpoints from potentially unauthenticated or unauthorized sources. Looks for patterns consistent with CVE-2026-34908 access control bypass, including repeated requests to privileged API paths and anomalous response codes.

Data Sources

CommonSecurityLogNetwork Firewall LogsProxy Logs

Required Tables

CommonSecurityLog

False Positives & Tuning

  • Legitimate UniFi controller management traffic from authorized admin workstations
  • Automated monitoring or health check tools polling UniFi OS API endpoints
  • Mobile app or desktop UniFi Network application during normal controller synchronization
  • Security scanners or vulnerability assessment tools running authorized scans

Other platforms for CVE-2026-34908


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Unauthenticated UniFi OS Admin API Enumeration

    Expected signal: Network logs showing HTTP GET requests to multiple /api/ paths on the target UniFi controller IP, returning HTTP status codes that vary by endpoint accessibility.

  2. Test 2Unauthorized UniFi OS Command Endpoint Access

    Expected signal: Network logs showing a POST request to /api/s/default/cmd/stamgr on the target IP with a JSON body. A 200 response with an action response body indicates the access control bypass is exploitable.

  3. Test 3UniFi OS New Admin User Creation via API Bypass

    Expected signal: Network logs showing a POST to /api/s/default/rest/admin with a 200 or 201 response. UniFi controller audit log should record a new admin creation event without a corresponding login event from the source IP.

Unlock Pro Content

Get the full detection package for CVE-2026-34908 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections