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.

See all 127 words in the glossary →

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

  1. Logscomputers, servers, firewalls, cloud
  2. SIEMcollects and searches everything
  3. Detection rules“10 failed logins in 1 minute”
  4. Alertlands in the analyst’s queue
  5. Triagereal or false alarm?
This is the core loop of a Security Operations Centre.
  • Endpoint logs: what happened on a computer: logins, programs started, files changed. On Linux, you met /var/log/auth.log in 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 + message
A simplified Suricata rule. Real rules add more options, but the shape is the same: action, protocol, direction, then what to look for.

Triage: 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:

  1. What exactly happened? Read the raw log, not just the alert title.
  2. Is it expected? Was the user travelling? Is there an approved change or a new tool?
  3. What happened next? A failed login is boring. A failed login followed by a success, a new user and a strange process is not.
  4. What’s the call? Close as a false positive, escalate as a true positive, or gather more information.
✅ True positive
  • The alert fired AND something bad happened
  • Example: malware really did start running
  • → escalate and respond
🙃 False positive
  • The alert fired but it was harmless
  • Example: an admin ran an approved scan
  • → close it, and maybe tune the rule
Too many false positives cause “alert fatigue”, which is how real attacks get missed.

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.

Want to try real blue-team tools?

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.

🤔 Something not clicking?

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

Q1. What does a SIEM do?
Q2. An alert fires, but the activity was an approved admin task. What is it?
Q3. Which open-source tool turns network traffic into detailed logs like connections and DNS lookups?
Q4. Why are too many false positives a problem?

What’s next

Up nextIncident response: what to do when things go wrong →The incident response lifecycle explained for beginners, plus a step-by-step plan for when your own account or device gets hacked.⏱ 15 min