Courses3 levels
Level 1 · Foundations11 courses
Level 2 · Core5 courses
Level 3 · Advanced5 courses
Labs8 topics
Library Practice exams AI Range Pricing Start free

Foundations / Security operations basics

Security operations basics cheat sheet

Read logs (lesson 1)

TaskCommand
Count lines of the logswc -l data/*
Count lines that matchgrep -c "Failed password" data/auth.log
Lines that do not matchgrep -v "CRON" data/syslog
Address of a failed login (fourth field from the end)grep "Failed password" data/auth.log | awk '{print $(NF-3)}'
Count equal lines, biggest firstsort | uniq -c | sort -rn
Status of a web request (field 9), size (field 10)awk '{print $9}' data/access.log
Requests larger than 1,000,000 bytesawk '$10 > 1000000 {print $7}' data/access.log

Make events (lesson 2)

TaskCommand
Parse the logs of a host into events, in UTCpython3 logparse.py data 2026 events.jsonl
Same, for a host whose clock runs 5 hours behind UTCpython3 logparse.py ironwood 2026 out.jsonl -5
Count events by action and outcomepython3 count_events.py
Fields of every eventts source host process action outcome user ip port method path status bytes agent msg ref

Detection rules (lesson 3)

TaskCommand or key
Run the rules over the eventspython3 rules.py events.jsonl rules.json
Condition: equal, contains, at leastwhere, contains, at_least
Count for each address in a windowgroup_by, count, window_s
Skip known-good valuesallow
Public rule format (lessons 7 and 8) and attack knowledge baseSigma, MITRE ATT&CK (T1110.001 password guessing, T1110.003 password spraying)
Read a URL code in a web path%27 is ', %20 is a space, %3B is ;, %3D is =

Triage (lesson 4)

TaskCommand or idea
Triage the alerts of a daypython3 triage.py events.jsonl rules.json CONTEXT_FOLDER
The four questionsWho is it? Is it expected? Did it work? What first?
Context filesassets.csv, staff.csv, known_bad.csv, changes.csv
PrioritiesP1 impact, P2 medium, P3 low, P4 false positive

Windows events (lesson 5)

TaskCommand or idea
Export the 100 newest events as XML (on Windows)wevtutil qe Security /f:xml /e:Events /c:100 /rd:true
Parse and count the events of an exportpython3 winevents.py data/win/export.xml
Find a guessed password, an odd logon and a cleared logpython3 win_hunt.py data/win/export.xml
Fields of every parsed eventid ts computer channel record data
Namespace of the tags{http://schemas.microsoft.com/win/2004/08/events/event}
Events that keep their fields in UserData1102, 104
IDWhat it saysFields to read
4624Logon session createdLogonType, TargetUserName, IpAddress, TargetLogonId
4625Logon failedStatus, SubStatus, LogonType, TargetUserName, IpAddress
4672Sensitive privileges for a new logonSubjectUserName, PrivilegeList
4688Process createdNewProcessName, ParentProcessName, CommandLine
4720, 4722, 4726Account created, enabled, deletedTargetUserName, SubjectUserName
4732Member added to a local groupTargetUserName (group), MemberSid
4698Scheduled task createdTaskName, TaskContent
1102Security log clearedSubjectUserName
104Another log cleared (System)Channel
7045Service installed (System log)ServiceName, ImagePath
4104PowerShell script blockScriptBlockText
4768, 4769, 4776Kerberos ticket, Kerberos service ticket, NTLM check (a wrong Kerberos password is 4771)TargetUserName, Status (0x0 is success)
Logon typeMeaning
2, 3Keyboard, network
4, 5Batch job, service
7, 11Unlock, cached credentials
8, 9Network with cleartext password, new outbound credentials
10Remote Desktop
Failure codeMeaning
0xC0000064No such user
0xC000006ABad password
0xC000006DGeneric logon failure
0xC0000234, 0xC0000072Account locked out, account disabled

Endpoint alerts (lesson 6)

TaskCommand or idea
Score and explain the alerts of a setpython3 endpoint_triage.py data/edr
Print the ticket of one alertpython3 endpoint_triage.py data/edr E01
Odd pairsOffice program starts a shell; server program starts a shell; regsvr32 with /i:http; rundll32 with a DLL in AppData or Temp
Decode -EncodedCommandbase64.b64decode(text).decode("utf-16-le")
Decisions5 or more true positive, 3 or 4 needs review, 2 or less false positive
RequestsIsolate the host, disable the account, collect a triage package; the owner decides for a host of criticality 4 or 5
Ticket partsTitle, seen, command, evidence, decision, asked, not known yet

Sigma rules (lessons 7 and 8)

TaskCommand or idea
Run one Sigma rule over events in JSON linespython3 sigma_lite.py RULE.yml EVENTS.jsonl
Write the events of a Windows export as JSON linespython3 win_jsonl.py data/win/export.xml win-events.jsonl
Test every rule of a folder against its samples (exit code 0 or 1)python3 sigma_test.py detections
Samples of the rule NAME.ymltests/NAME/match.jsonl (all must match), tests/NAME/nomatch.jsonl (none may match)
Convert rules with the real tool (not in this lab)sigma convert --target splunk --pipeline splunk_windows ./rules
Part of a ruleMeaning
title, logsource, detectionThe mandatory parts: the name, which logs (category, product, service), the search
id, status, description, author, date, referencesA UUID; experimental, test, stable, deprecated or unsupported; the facts for the team
levelinformational, low, medium, high, critical
tagsLower case, with a namespace: attack.t1110, attack.credential-access
Map in a selectionEvery entry must fit (AND)
List of valuesOne item must fit (OR); with |all every item
|contains, |startswith, |endswithThe value is anywhere, at the start, at the end; case does not matter
|re, |cidr, |gt, |gte, |lt, |lteRegular expression, address in a network, comparisons of numbers
*, ?Any text, one character
conditionselection and not filter, 1 of selection_*, all of selection_*, and, or, not, brackets
Count in a time span (a correlation rule, not run in this lab)type: event_count, rules, group-by, timespan: 5m, condition: gte: 10; other types: value_count, temporal, temporal_ordered, and in 2.1.0 value_sum, value_avg, value_percentile

Vulnerabilities and patching (lessons 9 and 10)

TaskCommand or idea
NamesCVE (which flaw), CWE (what kind), CVSS (how bad), KEV (exploited now), EPSS (likely next 30 days)
Bands of a CVSS scoreNone 0.0, Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9, Critical 9.0 to 10.0
Join severity and exploitation datapython3 vulns.py
Rank the findingspython3 patchrank.py inventory.csv installed.csv
Compare versions as numberstuple(int(p) for p in "4.10.0".split("."))

Incidents (lessons 11 to 13)

TaskCommand or idea
Classify incidents, check an incident logpython3 incident.py incidents.json phase_log.csv
States, in orderdetected, analysing, contained, eradicated, recovered, closed
Seal evidence, with hashes and custody notespython3 evidence.py seal data auth.log access.log syslog
Verify the sealed copiespython3 evidence.py verify
Check the manifest with the standard tool(cd case/evidence && sha256sum -c ../manifest.sha256)
Lists to block and disablepython3 contain.py events.jsonl rules.json CONTEXT_FOLDER
Timeline of one addresspython3 timeline.py ADDRESS events.jsonl
Incident report from the facts and your notespython3 report.py case.json events.jsonl rules.json
Check the shape of a runbookpython3 runbook_check.py runbook.txt

The tool (lesson 14)

TaskCommand
Logs in, ranked alerts outpython3 analyse.py --logs data --context . --year 2026 --offset 1 --rules rules.json
Exit codes0 nothing urgent, 1 at least one priority 1, 2 input cannot be read or holds no events
Outputsranked.csv, summary.txt

Safety habits