CVE-2017-7921 IBM QRadar · QRadar

Detect Hikvision Improper Authentication Exploitation (CVE-2017-7921) in IBM QRadar

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

QRadar Detection Query

IBM QRadar (QRadar)
sql
SELECT
  sourceip,
  destinationip,
  destinationport,
  URL,
  "HTTP Method",
  "HTTP Response Code",
  QIDNAME(qid) as event_name,
  logsourcename(logsourceid) as log_source,
  COUNT(*) as request_count,
  MIN(starttime) as first_seen,
  MAX(starttime) as last_seen
FROM events
WHERE
  LOGSOURCETYPENAME(devicetype) IN ('Web Proxy', 'Palo Alto PA Series', 'Check Point Firewall')
  AND destinationport IN (80, 443, 8000, 8080, 8443)
  AND (
    URL ILIKE '%/onvif/%'
    OR URL ILIKE '%/ISAPI/%'
    OR URL ILIKE '%/cgi-bin/%'
    OR URL ILIKE '%/SDK/%'
  )
  AND (
    URL ILIKE '%auth=%'
    OR URL ILIKE '%ismerge=1%'
    OR URL ILIKE '%configurationFile%'
    OR URL ILIKE '%/Security/users%'
    OR URL ILIKE '%userCheck%'
  )
  AND starttime > NOW() - 86400000
GROUP BY sourceip, destinationip, destinationport, URL, "HTTP Method", "HTTP Response Code"
HAVING request_count >= 1
ORDER BY request_count DESC
LAST 24 HOURS
critical severity medium confidence

QRadar AQL query identifying Hikvision CVE-2017-7921 authentication bypass attempts by matching known exploit URL patterns across proxy and firewall log sources.

Data Sources

Web ProxyFirewallIDS/IPS

Required Tables

events

False Positives & Tuning

  • Authorized network management systems performing ONVIF discovery and device enumeration
  • Legitimate Hikvision management software (iVMS-4200) communicating with cameras over ISAPI
  • Vulnerability scanners operating under an approved scanning schedule

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