Unit 1: How a SOC works · Lesson 3 of 5 · 16 min
The alert lifecycle
Follow an alert from new to closed and use last week's dispositions to see which rules are noisy.
mission
- You are
- The tier 1 analyst learning how alerts end.
- Situation
- Last week's alerts are still in the file, closed. Each one ended with a disposition. Those dispositions are the SOC's memory of which rules can be trusted.
- Goal
- Learn the lifecycle and the three dispositions, then measure which rule wastes the most time.
- Hand in
- The number of false positives last week and the noisiest rule.
From new to closed
Three ways an alert can end
- True positivethe rule was right and it was malicious
- Benign true positivethe rule was right, but the activity was allowed
- False positivethe rule matched something that was not what it looks for
Count dispositions
Closed alerts carry a disposition. Count them the same way you counted statuses.
jq -r 'select(.status == "closed") | .disposition' siem/alerts.jsonl | sort | uniq -c
15 benign_true_positive
28 false_positive
3 true_positive
jq- Picks fields out of JSON and reshapes it. Install with sudo apt install jq, or brew install jq on a Mac.
sort- Sorts lines of text. Built into Linux and macOS.
uniq- Collapses repeated neighbouring lines. With -c it counts them. Built into Linux and macOS.
Rank rules by outcome
Print rule and disposition together, count each pair, then sort -rn puts the biggest counts first.
jq -r 'select(.status == "closed") | [.rule, .disposition] | @tsv' siem/alerts.jsonl | sort | uniq -c | sort -rn
12 Suricata: TLS to intel-listed address false_positive
9 Impossible travel false_positive
7 SSH brute force benign_true_positive
5 User reported phishing false_positive
5 New MFA method registered benign_true_positive
2 User reported phishing true_positive
2 Suricata: watchlisted DNS lookup false_positive
2 SSH login from an external address benign_true_positive
1 User reported phishing benign_true_positive
1 Password spray against Entra ID true_positive
you should see Two rules account for most of the false positives.
Read why they were closed
The summary on a closed alert is the analyst's reason. Reasons that repeat are rules waiting to be tuned.
jq -r 'select(.rule == "Impossible travel" and .status == "closed") | .summary' siem/alerts.jsonl | sort | uniq -c
9 Second sign-in came from the corporate VPN egress in Frankfurt
you should see Every impossible travel alert last week was the corporate VPN. Remember that when today's two arrive.
defender tip A rule that is always a false positive trains people to stop reading it. Send the pattern to detection engineering instead of closing it forever.
What a defender takes away
- 1New, in progress, escalated or closed: every alert moves through the same states.
- 2True positive, benign true positive, false positive: pick one and say why.
- 3Closed alerts are data. Use them to spot noisy rules.
Questions
0 of 2 solved
Answer each one from what you find on your lab machine.