Detection Engineering & Incident Response: CVE-2025-68613
Respond to an n8n workflow-expression RCE compromise (CVE-2025-68613). Reconstruct the timeline from the n8n audit and execution logs, see how an expression calling require()/child_process escaped the sandbox and ran as the n8n process, find the attacker's rogue scheduled-workflow persistence, engineer a detection rule for dangerous expressions, then contain by restricting editing, eradicate, upgrade, verify and report - including rotating stored credentials.
Skills you will practice
- n8n audit and execution-log correlation
- Timeline reconstruction
- Code-injection IOCs
- Sandbox-escape analysis
- Scheduled-workflow persistence hunting
- Detection engineering
- Containment and eradication
- Credential rotation
- Incident reporting
Certifications this lab maps to
This lab builds hands-on skills that appear on these certification exams. thinQtank Learning runs instructor-led training camps for each — click one to see upcoming classes.
The scenario
A self-hosted n8n server (CVE-2025-68613 open) logged a workflow editor saving an expression that references require()/child_process, then the n8n process spawned a shell. You are the responder. Classify it.
What you will do
- Open and classify the incident4 steps
Open the incident · Read the alert · Read the ticket · Classify it
- Reconstruct the timeline3 steps
Pull the attacker’s actions · Correlate the execution log · What made RCE possible?
- Impact and persistence3 steps
Inspect the rogue workflow · What persistence? · Record IOCs
- Engineer a detection rule4 steps
Study the sample · Write a rule · Test and tune · Why not flag the word "process"?
- Contain, eradicate, verify5 steps
Contain: restrict workflow editing · Eradicate the persistence · Upgrade n8n · Verify the host · …
- Report2 steps
Write the report · What must also be rotated?
How this lab works
A real Linux-style console. Commands run against real files, so hashes, hex dumps and comparisons give real results.
A file browser where you can place evidence into the lab, either the file provided or one of your own.
Reset a single step, a whole task or the entire lab. The environment is rebuilt so you can try again cleanly.
Progress saves after every step. Close the tab and come back later; your files and answers are waiting.