· by · 7 min read

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.

Five-step timeline over ten minutes. Minutes 0 to 2, read: who, what, where, when. Minutes 2 to 5, walk up and down the process tree and check network activity. Minutes 5 to 7, widen with prevalence. Minutes 7 to 8, decide: close, escalate or contain. Minutes 8 to 10, write the note.
The ten-minute budget, broken down. Diagram: PurpleLog.

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.

Decision tree at minute eight. Contain if malicious activity is in progress: live outbound connection, encryption, lateral movement; isolate the host, then escalate. Escalate if it’s suspicious but unresolved: payload not decoded, odd parent, zero prevalence; full note to tier 2. Close if it’s explained: known tool, expected service account, same command on 200 hosts for a year; close and propose a precise exclusion.
Three possible exits, and what tips you toward each. Diagram: PurpleLog.

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 -enc on ws-0042 by j.doe at 09:14 UTC.

Checked. Parent: cmd.exe, itself started by explorer.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.

Output of kql_check.ps1: the three queries in this post (minutes 0-2, 2-5 and 5-7) pass Kusto.Language 12.4.1 with no errors.
All three queries run through the official Kusto.Language parser with the Defender XDR schema. Real output, capture: PurpleLog.

References

How I check the rules and queries published here →