CVE-2017-7921 Sumo Logic CSE · Sumo

Detect Hikvision Improper Authentication Exploitation (CVE-2017-7921) in Sumo Logic CSE

Detects exploitation attempts targeting CVE-2017-7921, an improper authentication vulnerability (CWE-287) in Hikvision IP cameras and multiple products. This vulnerability allows unauthenticated attackers to bypass authentication and gain unauthorized access to camera streams, configurations, and credentials by manipulating URL parameters. Listed on CISA KEV, indicating active exploitation in the wild. Attackers commonly use this to gain persistent access to surveillance infrastructure, pivot within networks, or exfiltrate sensitive footage.

MITRE ATT&CK

Tactic
Initial Access Persistence Credential Access Collection

Sumo Detection Query

Sumo Logic CSE (Sumo)
sql
_index=proxy OR _index=network
| where (%"url" matches "*/onvif/*" or %"url" matches "*/ISAPI/*" or %"url" matches "*/cgi-bin/*" or %"url" matches "*/SDK/*")
| where (%"url" matches "*auth=*" or %"url" matches "*ismerge=1*" or %"url" matches "*configurationFile*" or %"url" matches "*Security/users*" or %"url" matches "*userCheck*")
| parse field=%"url" "*" as full_url
| if (full_url matches "*auth=YWRtaW4*", "default-credential-bypass",
    if (full_url matches "*configurationFile*", "config-exfil",
    if (full_url matches "*ismerge=1*", "auth-bypass-param",
    "suspicious-hikvision-request"))) as pattern
| count by _sourceHost, src_ip, dst_ip, pattern, full_url
| sort by _count desc
critical severity medium confidence

Sumo Logic query for detecting CVE-2017-7921 Hikvision authentication bypass attempts through URL pattern matching in proxy and network logs.

Data Sources

Web Proxy LogsNetwork LogsHTTP Access Logs

Required Tables

proxynetworkweb

False Positives & Tuning

  • Legitimate ONVIF device management tools performing scheduled connectivity checks
  • Authorized network security assessments accessing camera management interfaces
  • Third-party integration platforms using Hikvision SDK for video analytics workflows

Other platforms for CVE-2017-7921


Testing Methodology

Validate this detection against 4 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 1Hikvision Auth Bypass via URL Parameter

    Expected signal: HTTP GET request to /ISAPI/Security/users with auth= query parameter visible in proxy/firewall logs; HTTP 200 response body containing XML user data if device is vulnerable

  2. Test 2Hikvision Configuration File Exfiltration

    Expected signal: HTTP GET request to /System/configurationFile with auth= parameter in proxy logs; if vulnerable, a binary configuration file download (often large, >100KB) in response

  3. Test 3Hikvision Default Credential Base64 Bypass

    Expected signal: Multiple HTTP GET requests to Hikvision ISAPI endpoints across one or more camera IPs with identical base64 auth parameter; sequential probing pattern visible in proxy logs

  4. Test 4RTSP Stream Access Post-Exploitation

    Expected signal: RTSP connection attempt to port 554 on camera IP with credentials in the URL; network logs show TCP session establishment on port 554 from non-standard client

Unlock Pro Content

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

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections