Triaging an alert in ten minutes
Ten minutes. No framework says so, and some alerts take forty. But it’s the budget I give myself to get out of an alert with a decision I can defend, and having a budget changes everything. Without one you open a tab, then another, chase a lead that’s interesting and useless, and twenty-five minutes later you still haven’t answered the only question that matters: does someone need to act right now?
In April 2025 NIST replaced its 2012 incident response guide with SP 800-61 Rev. 3, now written as a Cybersecurity Framework 2.0 profile. It’s a good document for organising a team. It won’t tell you what to do in the ten minutes after an alert lands in your queue. This post will.
To keep it concrete, I’ll reuse an alert this blog already knows: “PowerShell launched with an encoded command”, from the previous post’s rule. The queries are KQL for Defender XDR, but the reasoning carries over to any SIEM.

Minutes 0–2: actually read it
Sounds silly. It isn’t. Half the triage mistakes I know of start with an alert skimmed too fast: wrong account, wrong host, a UTC timestamp read as local time.
Write down four answers before clicking anywhere else: which account, which host, which exact command, what time. Then one reflex question: what is this machine? A developer laptop, a file server, a domain controller? The same event weighs very differently on each.
// Minutes 0-2: who, what, from where?
let machine = "ws-0042.contoso.com";
let alertTime = datetime(2026-10-21T09:14:00Z);
DeviceProcessEvents
| where DeviceName == machine
| where Timestamp between ((alertTime - 5m) .. (alertTime + 5m))
| where FileName in~ ("powershell.exe", "pwsh.exe")
| project Timestamp, AccountName, ProcessCommandLine,
InitiatingProcessFileName, InitiatingProcessParentFileName, ProcessUniqueId
Hang on to ProcessUniqueId. Unlike a PID, which Windows recycles, it points at this exact process and no other. It’s the thread you pull in the next step.
Minutes 2–5: up the tree, then down
Parent first. InitiatingProcessFileName and InitiatingProcessParentFileName give you two generations at once. Encoded PowerShell from a deployment agent and the same thing spawned by winword.exe or wmiprvse.exe are different stories.
Then: what did the process do? This is the step I see skipped most often, and it’s usually the one that settles it. One pass gets you child processes and network connections in chronological order:
// Minutes 2-5: what did this process do? (children + network)
let machine = "ws-0042.contoso.com";
let uid = "1234567890123"; // ProcessUniqueId from the previous step
union
(DeviceProcessEvents
| where DeviceName == machine and InitiatingProcessUniqueId == uid
| project Timestamp, What = "process", Detail = ProcessCommandLine),
(DeviceNetworkEvents
| where DeviceName == machine and InitiatingProcessUniqueId == uid
| project Timestamp, What = "network", Detail = strcat(RemoteIP, ":", RemotePort, " ", RemoteUrl))
| sort by Timestamp asc
Empty result? That’s information too. A PowerShell process that spawns nothing and talks to nobody is quite likely a local admin script. A connection to a never-seen public IP three seconds after launch is not.
Minutes 5–7: widen
Most alerts are won or lost here. The question: does this command exist anywhere else in the estate?
// Minutes 5-7: has this happened elsewhere? (30-day prevalence)
let cmd = "powershell.exe -nop -w hidden -enc VwByAGkAdABl...";
DeviceProcessEvents
| where Timestamp > ago(30d)
| where ProcessCommandLine == cmd
| summarize Hosts = dcount(DeviceName), Accounts = dcount(AccountName),
First = min(Timestamp), Last = max(Timestamp)
You’ll keep running into three shapes. Same command on two hundred hosts for a year under the same service account: an internal tool, and the alert is noise to document. One host, once, today: zero prevalence isn’t proof of anything malicious, but it removes your main reason to close. And the one that should make you sit up: nothing for weeks, then five hosts in twenty minutes.
One limitation I’ll own: exact equality on the command line misses a variant that differs by a single character. For a first triage pass that’s fine. For an investigation, compare the binary’s hash or the decoded payload instead.
Minute 7–8: decide
One minute. No more. If I can’t decide in a minute with what I have, the answer is “escalate”, and that’s a perfectly respectable answer.

Two things about that tree. “Contain” depends on what your runbook lets you do at your tier: in some teams tier 1 isolates a host directly, in others they call someone who will. What matters is knowing which one you’re in before the incident, not during it.
And “close” is never the end of it. An alert closed as a false positive with no exclusion proposal will be back tomorrow, and the day after. The proposal has to be narrow: this account, this command, this parent. Not “exclude powershell.exe”.
Minutes 8–10: write it down
The triage note is the most underrated part of the job. Someone without your context will read it, maybe at 3 a.m., maybe you in six months. My structure never changes:
- Finding: what the alert says, in one sentence.
- Checked: what I looked at and what came back (parent, children, network, prevalence).
- Not checked: what I couldn’t look at, and why. People forget this line, and it’s the most useful one for whoever picks the case up.
- Decision: closed, escalated or contained, and on what basis.
Here’s what that looks like for this example, with the lab’s made-up values:
Finding. PowerShell launched with
-encon ws-0042 by j.doe at 09:14 UTC.Checked. Parent:
cmd.exe, itself started byexplorer.exe, so something done in the user’s session. No child processes. No network connections from the process. Decoded payload:Write-Output "purple test". 30-day prevalence: one host, once.Not checked. No 4104 events on this host (Script Block Logging is off), so I can’t rule out a second stage loaded some other way. User not reached yet.
Decision. Escalated, low priority: nothing malicious observed, but an encoded command run by hand by a non-technical user deserves a question. Queries attached.
Five lines, and whoever picks it up knows what was done, what’s missing, and why the call was made. Paste the queries in too; the next person reruns them instead of rewriting them.
And if nothing is clear by minute ten? You don’t open an eleventh query. You escalate with what you have and say so. An honest, incomplete escalation beats an alert that sits in the queue while someone “digs a bit more”.
What I don’t do in those ten minutes
Unwrap a payload three layers deep by hand. Hunt for attribution. Detonate the file in a sandbox if the EDR hasn’t already. Read everything ever written about the malware family I think it might be. All of that has its place, in the investigation that follows an escalation, not in triage.
That discipline is probably the hardest part. Interesting leads are, by definition, interesting. When I hit one, I don’t follow it: it goes in the “Not checked” line so the next person knows it’s there.
A note on the queries
I didn’t have a Defender tenant for this post. So I validated all three queries with Microsoft’s official KQL parser (the Kusto.Language library) against the DeviceProcessEvents and DeviceNetworkEvents schemas as documented on Microsoft Learn. Syntax, column names and types check out; results on real data, I haven’t verified.

References
- NIST, SP 800-61 Rev. 3, Incident Response Recommendations and Considerations for Cybersecurity Risk Management, April 2025
- Microsoft, DeviceProcessEvents and DeviceNetworkEvents
- Microsoft, Kusto.Language (KQL parser)