CVE-2025-68613 Sumo Logic CSE · Sumo

Detect n8n Improper Control of Dynamically-Managed Code Resources (CVE-2025-68613) in Sumo Logic CSE

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

Sumo Detection Query

Sumo Logic CSE (Sumo)
sql
_sourceCategory=*/sysmon OR _sourceCategory=*/linux/audit OR _sourceCategory=endpoint/process
| json auto
| where (%"ParentImage" matches "*node*" OR %"parent_process_name" matches "*node*")
| where (%"Image" matches "*bash*" OR %"Image" matches "*sh" OR %"Image" matches "*cmd.exe*"
    OR %"Image" matches "*powershell*" OR %"Image" matches "*wget*" OR %"Image" matches "*curl*"
    OR %"Image" matches "*python*" OR %"Image" matches "*perl*" OR %"Image" matches "*nc*"
    OR %"CommandLine" matches "*whoami*" OR %"CommandLine" matches "*/etc/passwd*"
    OR %"CommandLine" matches "*base64*" OR %"CommandLine" matches "*chmod +x*"
    OR %"CommandLine" matches "*net user*" OR %"CommandLine" matches "*certutil*")
| eval risk = if(%"CommandLine" matches "*/etc/passwd*" OR %"CommandLine" matches "*/etc/shadow*", "CRITICAL",
    if(%"CommandLine" matches "*base64*" OR %"CommandLine" matches "*powershell*", "HIGH", "MEDIUM"))
| count by _sourceHost, %"ParentImage", %"Image", %"CommandLine", %"User", risk
| sort by risk, _count desc
| fields _sourceHost, %"ParentImage", %"Image", %"CommandLine", %"User", risk, _count
critical severity medium confidence

Sumo Logic query detecting n8n-spawned suspicious child processes via process event logs, with risk scoring based on command characteristics indicating CVE-2025-68613 exploitation.

Data Sources

Sumo Logic Cloud SIEMSysmon via Sumo LogicLinux Audit via Sumo Logic

Required Tables

_sourceCategory=*/sysmon_sourceCategory=*/linux/audit

False Positives & Tuning

  • Authorized n8n workflows executing shell commands for legitimate automation
  • n8n running integration tests that spawn child processes
  • DevOps pipeline n8n instances managing build and deployment tasks
  • n8n with custom plugin nodes that shell out to system utilities

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