Defensive security · Lesson 1 of 2
Blue team basics: logs, alerts & detection
How defenders spot attacks: logs, SIEMs, alerts, true and false positives, and open-source tools like Zeek and Suricata, explained for beginners.
⏱ 16 min🎯 Beginner🧪 Hands-on✅ 4-question quiz✓ Completed
By the end, you’ll be able to…
- Explain what a SOC analyst does day to day
- Describe where security logs come from and how alerts are made
- Triage an alert: true positive, false positive or needs more information
Key words
- Blue team
- Defenders: the people who protect, monitor and respond.
- SOC
- Security Operations Centre: the team (or room) that watches for and responds to threats.
- SIEM
- Security Information and Event Management: a system that collects logs from many places and searches them.
- Alert
- A notification that something matched a rule and might be bad.
- False positive
- An alert that fired, but nothing bad actually happened.
- IDS
- Intrusion Detection System: watches network traffic for known attack patterns.
Defenders work with evidence
Attackers have to do things: log in, run programs, connect to servers, move files. Almost every action leaves a trace in a log. The blue team’s job is to collect those traces, notice the ones that matter, and respond quickly.
From raw logs to a decision
- Logscomputers, servers, firewalls, cloud
- SIEMcollects and searches everything
- Detection rules“10 failed logins in 1 minute”
- Alertlands in the analyst’s queue
- Triagereal or false alarm?
- Endpoint logs: what happened on a computer: logins, programs started, files changed. On Linux, you met
/var/log/auth.login the logs lesson. - Network logs: who talked to whom, when, and how much. Open-source Zeek turns raw traffic into tidy logs (connections, DNS lookups, HTTP requests).
- Detection systems: Suricata is an open-source IDS that compares traffic against rules describing known bad patterns.
- Identity and cloud logs: sign-ins to email and cloud apps, including where and from which device.
What a detection rule looks like
Suricata rules read almost like a sentence. Here’s a simplified example that alerts when a computer inside the network looks up a known-bad domain:
alertactiondnsprotocol$HOME_NET any -> any anywho → where(msg:"Known bad domain"; dns.query; content:"bad.example";)what to match + messageTriage: the most important skill
Most alerts are not attacks. Rules are written to catch suspicious things, and normal people do suspicious-looking things all the time. A good analyst asks:
- What exactly happened? Read the raw log, not just the alert title.
- Is it expected? Was the user travelling? Is there an approved change or a new tool?
- What happened next? A failed login is boring. A failed login followed by a success, a new user and a strange process is not.
- What’s the call? Close as a false positive, escalate as a true positive, or gather more information.
- The alert fired AND something bad happened
- Example: malware really did start running
- → escalate and respond
- The alert fired but it was harmless
- Example: an admin ran an approved scan
- → close it, and maybe tune the rule
A shared map: MITRE ATT&CK
MITRE ATT&CK is a free public catalogue of real attacker behaviour, grouped into goals like Initial Access, Persistence and Exfiltration. Defenders use it to describe what they saw (“this looks like a brute-force attempt”) and to check which behaviours they can and can’t detect yet.
Build the safe lab, then try Security Onion (a free platform bundling Zeek, Suricata and more) on your own lab network. Sites like CyberDefenders and TryHackMe also have free beginner blue-team challenges using recorded data.
🧪 Hands-on
Practice
You’re the analyst. Decide what each alert is, then read the explanation.
Want to dig through raw logs like an analyst? Try the log detective terminal.
✅ Check yourself
Quick quiz
Every answer comes with an explanation, right or wrong. Your best score is saved in this browser.
🔗 Go further
Trustworthy resources
- Zeek documentation Official docs for the Zeek network security monitor.
- Suricata documentation Official docs, including how rules work.
- MITRE ATT&CK The public catalogue of attacker techniques.
- Security Onion documentation A free platform for practising network monitoring in your lab.