Unit 1: How a SOC works · Lesson 2 of 5 · 14 min
Anatomy of an alert
Pull one alert apart field by field and list the queue in a form you can scan.
mission
- You are
- The tier 1 analyst opening an alert for the first time.
- Situation
- QL-1203 says an MFA push flood ended in an approval. Before you decide anything you need to know exactly what the alert is telling you, and what it is not.
- Goal
- Read every field of one alert and list the whole queue compactly.
- Hand in
- The source address of QL-1203 and how many of today's alerts came from Suricata.
What every alert carries
- 1
QL-1203ID: what you quote in tickets - 2
MFA push flood followed by approvalrule: the pattern that matched - 3
entrasource: which log it came from - 4
lpatel@... 203.0.113.140entities: who and where - 5
count 12evidence: how many events - 6
newstatus: where it is in the lifecycle
Print one alert in full
Without -c, jq pretty-prints each object over several lines, which is easier to read. The test compares the id field with a string.
jq 'select(.id == "QL-1203")' siem/alerts.jsonl
{
"id": "QL-1203",
"created": "2026-10-20T03:25:10Z",
"rule": "MFA push flood followed by approval",
"source": "entra",
"severity": "high",
"status": "new",
"assignee": null,
"disposition": null,
"host": null,
"user": "lpatel@quillon.example.com",
"src_ip": "203.0.113.140",
"count": 12,
"summary": "11 MFA failures then a success within 15 minutes"
}
you should see Null fields are normal. An identity alert has a user and a source address but no host.
jq- Picks fields out of JSON and reshapes it. Install with sudo apt install jq, or brew install jq on a Mac.
List the new alerts as a table
[.id, .source, .severity, .rule] builds a small list for each alert and @tsv prints it as tab-separated columns. One line per alert is how you scan a queue.
jq -r 'select(.status == "new") | [.id, .source, .severity, .rule] | @tsv' siem/alerts.jsonl
QL-1203 entra high MFA push flood followed by approval
QL-1204 entra medium New MFA method registered
QL-1205 entra medium Impossible travel
QL-1206 entra medium Impossible travel
QL-1207 suricata medium Suricata: watchlisted DNS lookup
QL-1208 suricata high Suricata: executable over plain HTTP
QL-1209 suricata medium Suricata: TLS to watchlisted name
QL-1210 suricata low Suricata: TLS to intel-listed address
QL-1211 hayabusa high Script interpreter run from a temp or archive folder
QL-1212 mail medium User reported phishing
QL-1213 hayabusa high Local account created and added to Administrators
QL-1214 hayabusa high Service installed with binary in a user profile
QL-1215 siem high NTLM password spray against a domain controller
QL-1216 mail medium User reported phishing
QL-1217 mail medium User reported phishing
QL-1218 mail low User reported phishing
QL-1219 linux high SSH login from an external address
QL-1220 auditd medium Crontab changed by an interactive session
QL-1221 mail low User reported phishing
Count new alerts by source
Pipe the source field into the counting pattern. Sources tell you which tools you will need today.
jq -r 'select(.status == "new") | .source' siem/alerts.jsonl | sort | uniq -c | sort -rn
5 mail
4 suricata
4 entra
3 hayabusa
1 siem
1 linux
1 auditd
you should see Identity, endpoint, network, mail and Linux alerts all at once: one incident can light up several sources.
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.
What the summary should say
rule: Suspicious activity summary: anomaly detected
No entity, no evidence, no time window.
rule: MFA push flood followed by approval
user: lpatel src: 203.0.113.140
summary: 11 MFA failures then a success
within 15 minutesYou know who, from where, how many and what to check next.
What a defender takes away
- 1An alert is a claim. Its fields tell you where to look for proof.
- 2Learn the fields once: ID, rule, source, entities, evidence, status.
- 3Scan queues one line per alert with @tsv.
Questions
0 of 2 solved
Answer each one from what you find on your lab machine.