CVE-2025-68613 IBM QRadar · QRadar

Detect n8n Improper Control of Dynamically-Managed Code Resources (CVE-2025-68613) in IBM QRadar

Detects exploitation of CVE-2025-68613, a critical vulnerability in n8n workflow automation platform where improper control of dynamically-managed code resources (CWE-913) allows attackers to execute arbitrary code. This vulnerability is actively exploited in the wild (CISA KEV). Attackers can abuse n8n's Code node or expression evaluation engine to break out of intended sandboxing and execute arbitrary system commands on the underlying host.

MITRE ATT&CK

Tactic
Execution Lateral Movement Impact

QRadar Detection Query

IBM QRadar (QRadar)
sql
SELECT
  DATEFORMAT(starttime, 'YYYY-MM-dd HH:mm:ss') AS event_time,
  sourceip,
  destinationip,
  username,
  "Process Name" AS process_name,
  "Parent Process Name" AS parent_process,
  "Command" AS command_line,
  logsourcename(logsourceid) AS log_source,
  magnitude
FROM events
WHERE
  LOGSOURCETYPENAME(devicetype) IN ('Microsoft Windows Security Event Log', 'Linux OS', 'SysMon')
  AND (
    ("Parent Process Name" ILIKE '%node%' OR "Parent Process Name" ILIKE '%n8n%')
    AND (
      "Process Name" ILIKE '%bash%' OR "Process Name" ILIKE '%sh%'
      OR "Process Name" ILIKE '%cmd.exe%' OR "Process Name" ILIKE '%powershell%'
      OR "Process Name" ILIKE '%wget%' OR "Process Name" ILIKE '%curl%'
      OR "Process Name" ILIKE '%python%' OR "Process Name" ILIKE '%perl%'
      OR "Command" ILIKE '%whoami%' OR "Command" ILIKE '%/etc/passwd%'
      OR "Command" ILIKE '%base64%' OR "Command" ILIKE '%chmod%'
      OR "Command" ILIKE '%net user%' OR "Command" ILIKE '%certutil%'
    )
  )
  AND LOGSOURCE_LAST(600000)
LAST 3600 SECONDS
critical severity medium confidence

QRadar AQL query detecting suspicious process spawning from n8n Node.js parent processes, focusing on shell escapes and reconnaissance commands indicative of CVE-2025-68613 exploitation.

Data Sources

QRadar SIEMWindows Security EventsLinux SyslogSysmon

Required Tables

events

False Positives & Tuning

  • n8n Execute Command nodes running authorized administrative scripts
  • Legitimate DevOps automation workflows in n8n environments
  • n8n instances with custom nodes that invoke system utilities
  • Security orchestration n8n workflows triggering threat response actions

Other platforms for CVE-2025-68613


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 1n8n Code Node Shell Command Execution

    Expected signal: Sysmon Event ID 1 showing node process spawning sh or bash child process with command arguments containing 'id', 'whoami', 'hostname'

  2. Test 2n8n Expression Evaluator File Write to Temp Directory

    Expected signal: Sysmon Event ID 11 (FileCreate) showing node process creating a .sh file in /tmp, followed by Event ID 1 showing chmod +x execution

  3. Test 3n8n Code Node Reverse Shell Simulation (Netcat)

    Expected signal: Sysmon Event ID 1 showing node.js spawning nc/ncat process with -e flag and IP/port arguments; Sysmon Event ID 3 showing network connection from node process to 127.0.0.1:4444

  4. Test 4n8n Credential Exfiltration Simulation via HTTP

    Expected signal: Sysmon Event ID 1 showing node spawning bash then curl with base64-encoded data arguments; Sysmon Event ID 3 showing network connection from curl to external host on port 9999

Unlock Pro Content

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

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections