CVE-2017-7921 CrowdStrike LogScale · LogScale

Detect Hikvision Improper Authentication Exploitation (CVE-2017-7921) in CrowdStrike LogScale

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

LogScale Detection Query

CrowdStrike LogScale (LogScale)
cql
#event_simpleName=NetworkConnectIP4
| dst_port in [80, 443, 8000, 8080, 8443]
| HttpPath = /\/(onvif|ISAPI|cgi-bin|SDK|snapshot)\//
| (
    HttpPath = /[?&]auth=/ OR
    HttpPath = /ismerge=1/ OR
    HttpPath = /configurationFile/ OR
    HttpPath = /\/Security\/users/ OR
    HttpPath = /userCheck/
  )
| eval suspicious_pattern=case(
    HttpPath = /auth=YWRtaW4/, "default-credential-bypass",
    HttpPath = /configurationFile/, "config-exfil-attempt",
    HttpPath = /ismerge=1/, "auth-bypass-param",
    "suspicious-hikvision-request"
  )
| eval risk_score=case(
    suspicious_pattern="default-credential-bypass", 90,
    suspicious_pattern="config-exfil-attempt", 85,
    suspicious_pattern="auth-bypass-param", 80,
    70
  )
| stats
    count() as request_count,
    max(risk_score) as max_risk_score,
    earliest(@timestamp) as first_seen,
    latest(@timestamp) as last_seen,
    values(HttpPath) as sample_paths
    by LocalAddressIP4, RemoteAddressIP4, suspicious_pattern
| sort max_risk_score desc
critical severity medium confidence

CrowdStrike Falcon LogScale CQL query identifying Hikvision CVE-2017-7921 authentication bypass patterns in outbound network connections from endpoints.

Data Sources

CrowdStrike Falcon Network EventsFalcon Sensor Network Telemetry

Required Tables

NetworkConnectIP4

False Positives & Tuning

  • Endpoint-based Hikvision iVMS client software communicating with authorized camera infrastructure
  • Security assessment tools installed on endpoints performing authorized camera scanning
  • Network monitoring agents capturing legitimate ONVIF traffic from managed camera systems

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