Unit 1: How a SOC works · Lesson 1 of 5 · 14 min

Your first shift

Open the workstation, read the night shift's handover and count what is waiting in the queue.

mission

You are
A new tier 1 analyst on the Quillon Logistics SOC.
Situation
Quillon runs freight out of Leeds. On Tuesday 20 October the day shift was one analyst short and most alerts were never worked. Every log from that day is on your workstation, and the queue is yours.
Goal
Find out what the night shift left you and how big the queue is.
Hand in
The number of new alerts and the alert the night shift left half done.

Who does what in a SOC

  1. Tier 1: triagework the queue, close the noise, escalate the real ones
  2. Tier 2: investigationscope an incident across hosts, accounts and time
  3. Incident responsecontain, eradicate, recover
  4. Detection engineeringtune rules using what tier 1 learned
Tier 1 decides which alerts deserve anyone else's time. Every closed false positive is feedback for the people who write the rules.
01

Open the Terminal

Your desktop has a Terminal, a Files window, a text editor, Wireshark and CyberChef. notes.txt opens on its own when the machine starts: it says where every log lives. Double-click Terminal. It starts in your home folder, /home/analyst.

you should see A prompt that ends in analyst@soc-ws07:~$

02

Read the handover

Shifts hand over in writing so nothing is lost at 07:00. cat prints a file to the screen.

analyst@soc-ws07
cat soc/handover-2026-10-20-night.txt
Night shift handover, Tue 20 Oct 2026, 07:00 UTC
=================================================

From: nightshift   To: day shift

Closed
  QL-1201 SSH brute force on bastion01 from 198.51.100.23. 237 failures, no success.
          Benign true positive. Address added to the edge blocklist.

In progress
  QL-1202 Password spray against Entra ID from 198.51.100.77, two rounds at 02:05 and 02:25.
          Blocked the address at 02:40. I have not checked yet whether any account got the
          password right. Please finish this one first.

Not looked at
  Anything after 03:00. The queue was quiet when I left, but check the identity alerts.

Notes
  - Leeds is on BST (UTC+1) until Sunday. Users report times in local time.
  - The 192.0.2.44 Suricata alert fired again overnight. Still the CDN, still noise.

you should see One alert closed, one in progress, and a warning that nobody looked at anything after 03:00.

cat
Prints the contents of one or more files. Built into Linux and macOS.
03

Count the queue

The queue is a JSON Lines file: one alert per line, each line a complete JSON object. wc -l counts lines, so it counts alerts.

analyst@soc-ws07
wc -l siem/alerts.jsonl
66 siem/alerts.jsonl
wc
Counts lines, words and bytes. Built into Linux and macOS.
04

Count by status

jq reads JSON. jq -r .status prints the status field of every alert as plain text. sort | uniq -c then counts each value. You will use this pattern all course.

analyst@soc-ws07
jq -r .status siem/alerts.jsonl | sort | uniq -c
     46 closed
      1 in_progress
     19 new

you should see Most alerts are closed history from the last week. The ones marked new are today's work.

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.
05

Find the half-finished alert

select() keeps only the alerts where the test is true. -c prints each one on a single line.

analyst@soc-ws07
jq -c 'select(.status == "in_progress")' siem/alerts.jsonl
{"id":"QL-1202","created":"2026-10-20T02:31:44Z","rule":"Password spray against Entra ID","source":"entra","severity":"high","status":"in_progress","assignee":"nightshift","disposition":null,"host":null,"user":null,"src_ip":"198.51.100.77","count":97,"summary":"97 failed sign-ins across 48 accounts from one address"}

you should see QL-1202: the password spray the night shift had not finished checking.

defender tip Finish what the last shift started before you pick anything new. Half-worked alerts are where incidents get lost.

What a defender takes away

  1. 1Tier 1 is triage: decide fast, write down why, pass the real ones on.
  2. 2Start every shift with the handover, then the queue.
  3. 3jq plus sort and uniq -c answers most what-is-in-here questions.

Questions

0 of 2 solved

Answer each one from what you find on your lab machine.

  1. Show hint

    jq -r .status, then sort and uniq -c.

  2. Show hint

    select(.status == "in_progress")