CVE-2026-21643 IBM QRadar · QRadar

Detect Fortinet FortiClient EMS SQL Injection Exploitation (CVE-2026-21643) in IBM QRadar

Detects exploitation attempts targeting a SQL injection vulnerability in Fortinet FortiClient EMS (CVE-2026-21643). This KEV-listed vulnerability allows unauthenticated or authenticated attackers to inject malicious SQL statements into FortiClient EMS, potentially enabling data exfiltration, authentication bypass, or remote code execution via database-level commands such as xp_cmdshell.

MITRE ATT&CK

Tactic
Initial Access Credential Access Privilege Escalation

QRadar Detection Query

IBM QRadar (QRadar)
sql
SELECT
  sourceip,
  destinationip,
  destinationport,
  URL,
  username,
  "eventCount" AS attempt_count,
  MIN(starttime) AS first_seen,
  MAX(starttime) AS last_seen,
  logsourcename(logsourceid) AS log_source
FROM events
WHERE
  (
    logsourcetypename(devicetype) ILIKE '%fortinet%'
    OR logsourcetypename(devicetype) ILIKE '%forticlient%'
    OR destinationport IN (443, 8013, 8014)
  )
  AND (
    URL ILIKE '%'' OR %'
    OR URL ILIKE '%UNION SELECT%'
    OR URL ILIKE '%xp_cmdshell%'
    OR URL ILIKE '%WAITFOR DELAY%'
    OR URL ILIKE '%SLEEP(%'
    OR URL ILIKE '%1=1%'
    OR URL ILIKE '%DROP TABLE%'
    OR "utf8(payload)" ILIKE '%xp_cmdshell%'
    OR "utf8(payload)" ILIKE '%UNION SELECT%'
  )
  AND LOGSOURCETIME(devicetime) > NOW() - 1 HOURS
GROUP BY sourceip, destinationip, destinationport, URL, username, logsourceid
ORDER BY attempt_count DESC
LAST 1 HOURS
critical severity medium confidence

QRadar AQL query that searches for SQL injection patterns in traffic destined for FortiClient EMS ports, including payload inspection for xp_cmdshell and UNION SELECT exploitation signatures.

Data Sources

QRadar SIEMFortinet log sourceNetwork flow dataIDS/IPS events

Required Tables

events

False Positives & Tuning

  • Security scanner traffic from authorized vulnerability assessment tools
  • Encoded legitimate API parameters that superficially match SQL injection patterns
  • WAF or IPS devices that log and forward blocked SQL injection attempts as new events
  • Internal application integrations using SQL-like query syntax in API calls

Other platforms for CVE-2026-21643


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 1FortiClient EMS SQL Injection - Error-Based Detection

    Expected signal: IIS log entry with 500 status code and SQL injection characters in cs-uri-query field; MSSQL Event ID 8152 or syntax error in ERRORLOG

  2. Test 2FortiClient EMS SQL Injection - UNION SELECT Data Extraction Simulation

    Expected signal: IIS POST log with UNION SELECT in request body (cs-bytes > 0); MSSQL log showing column mismatch error if column count incorrect

  3. Test 3FortiClient EMS SQL Injection - xp_cmdshell RCE Simulation (Endpoint Telemetry)

    Expected signal: Windows Security Event ID 4688 showing cmd.exe or whoami.exe spawned from sqlservr.exe; MSSQL audit log showing xp_cmdshell execution; CrowdStrike ProcessRollup2 event for cmd.exe with parent sqlservr.exe

  4. Test 4FortiClient EMS SQL Injection - Time-Based Blind Injection (WAITFOR DELAY)

    Expected signal: IIS log showing POST request with 5+ second response time (sc-time-taken > 5000); network connection held open for duration of delay; no error response body

Last updated: 2026-06-19 Research depth: standard
References (2)

Unlock Pro Content

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

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections