What you'll be able to do
What you'll practice and build
Each lesson ends in work you keep. By the end of the course you have:
- A detection library of tested rules in KQL, SPL and Sigma, each with its specification, its test set and the bar it is held to
- A detection repository with a pipeline that validates every rule file and tests every rule on labeled data on each pull request
- Tuning records that show what each change removed, and that the attack it exists to catch is still caught
- Health checks for rules that go silent and sources that stop sending, and a coverage report built from tests rather than tags
- A detection program for one intrusion, from a phishing message to a forwarding rule, five rules that cover it between them
Who this course is for
SOC analysts moving into detection engineering, security engineers who own a SIEM's rule set, threat hunters who want hunts to become rules, and detection engineers moving between Sentinel and Splunk. It assumes you have written a query before and no detection engineering experience; every concept, and every query language feature a lesson uses, is explained where it first appears. The Module 0 preview includes a Course Fit Check that shows where you sit.
Before you start
Course Syllabus
Every module and every lesson. The first three modules are open; the rest open on a click.
Download the full syllabus (PDF) Download the lab pack
Orientation
Module 0 of Threat Detection Engineering: the foundations every later module builds on, from judging a rule and mapping a technique to telemetry, rule languages, correlation, production, endpoint, identity and network detection, testing, tuning and rules as code.
Show 10 lessonsHide lessons
- 0.10.1 What a Detection Is, and How It Is JudgedPreview
- 0.20.2 From a Technique to Something You Can ObservePreview
- 0.30.3 Telemetry and the Shape of Log DataPreview
- 0.40.4 The Rule Languages: KQL, SPL and SigmaPreview
- 0.50.5 Correlation and Multi-Stage AttacksPreview
- 0.60.6 Running Rules in ProductionPreview
- 0.70.7 Endpoint Foundations: Windows and LinuxPreview
- 0.80.8 Identity, Cloud and NetworkPreview
- 0.90.9 Testing and TuningPreview
- 0.100.10 Rules as Code and Rules Written by AIPreview
Phase 1: Detection Engineering Foundations
Module 1 of Threat Detection Engineering: reading a detection rule by its claim, its needs and its logic, the three roles that read an alert, a rule's life from request to retirement, judging a detection's quality by measurement, and an assessment of five existing rules.
Show 6 lessonsHide lessons
- 1.11.1 Reading a Detection: What It Claims, What It Needs, What Fires It
- 1.21.2 One Alert Seen by Monitoring, Hunting and Engineering
- 1.31.3 The Life of One Rule, From Request to Retirement
- 1.41.4 Judging a Detection's Quality
- 1.51.5 Assessing Five Existing Detections
- 1.6Module Summary and Knowledge Check
Module 2 of Threat Detection Engineering: turning an ATT&CK technique page into observable behavior, a threat report into detection requirements, a threat model of the estate into a decision about what to detect first, and one intrusion into an ATT&CK mapping and three hypotheses.
Show 5 lessonsHide lessons
Module 3 of Threat Detection Engineering: what Windows, Linux, identity, cloud, network and email telemetry record of real attacks, what switches each source on and what it leaves out, the latency, retention and loss that silence a rule, and a coverage assessment for three attacks.
Show 7 lessonsHide lessons
- 3.13.1 What Windows Records When Encoded PowerShell Runs
- 3.23.2 What Linux Records When an SSH Password Is Guessed
- 3.33.3 What Identity and Cloud Logs Record When an Application Gains a Secret
- 3.43.4 What Network and Email Telemetry Show About a Beacon
- 3.53.5 Latency, Retention and Loss: the Gaps That Silence a Rule
- 3.63.6 Assessing Telemetry Coverage for Three Attacks
- 3.7Module Summary and Knowledge Check
Module 4 of Threat Detection Engineering: parse a source that arrives as text, normalize four authentication sources under ASIM, enrich an alert with user, device, asset and intelligence, resolve one person across five sources, and find the duplicates, late arrivals and schema drift that keep a rule from seeing what happened.
Show 6 lessonsHide lessons
- 4.14.1 Parsing a Firewall Log: CEF, Syslog and Field Extraction
- 4.24.2 Normalizing Authentication Events with ASIM
- 4.34.3 Enriching an Alert with User, Device, Asset and Intelligence
- 4.44.4 Resolving One User Across Five Sources
- 4.54.5 Duplicates, Late Arrivals and Schema Drift
- 4.6Module Summary and Knowledge Check
Phase 2: Detection Development and Query Engineering
Module 5 of Threat Detection Engineering: a use case turned into a hypothesis, the events and preconditions it needs, its logic, its stated assumptions, its test cases and acceptance criteria, and three detection specifications written to that standard.
Show 8 lessonsHide lessons
- 5.15.1 From Use Case to Hypothesis
- 5.25.2 Required Events, Fields and Preconditions
- 5.35.3 Sequences, Thresholds and Baselines
- 5.45.4 Severity, Confidence and Stated Assumptions
- 5.55.5 Test Cases and Acceptance Criteria
- 5.65.6 Naming and Metadata
- 5.75.7 Writing Three Detection Specifications
- 5.8Module Summary and Knowledge Check
Module 6 of Threat Detection Engineering: the query techniques detections are built from, in KQL with each in SPL beside it. Decode an encoded PowerShell command, aggregate a password spray across accounts and windows, join a replayed session to the mailbox it read, measure a beacon as a time series, and schedule each rule with a frequency, lookback and cost you can defend.
Show 6 lessonsHide lessons
- 6.16.1 Filtering and Parsing: Decoding an Encoded PowerShell Command
- 6.26.2 Aggregation: A Spray Across Many Accounts From One Address
- 6.36.3 Joins: A Replayed Session, and the Mailbox It Read
- 6.46.4 Time Series: A Beacon That Never Sleeps
- 6.56.5 Scheduled Rule Behavior: Frequency, Lookback, Cost and Ingestion Delay
- 6.6Module Summary and Knowledge Check
Module 7 of Threat Detection Engineering: detections written once in Sigma and converted for each SIEM. Write a rule for a scheduled task, use selections and modifiers on LSASS access, correlate SSH guessing with sudo, convert with sigma-cli and pySigma and measure what each backend keeps, then validate and manage five portable rules.
Show 6 lessonsHide lessons
- 7.17.1 A Sigma Rule for a Logon Task in a Temp Folder
- 7.27.2 Selections and Modifiers: LSASS Access Without the Crash-Dump Look-Alike
- 7.37.3 A Correlation Rule: SSH Guessing Followed by Sudo
- 7.47.4 Converting With sigma-cli and pySigma, and What Conversion Loses
- 7.57.5 Validating and Managing Five Portable Rules
- 7.6Module Summary and Knowledge Check
Module 8 of Threat Detection Engineering: detections built from signals too common to alert on alone. Correlate endpoint activity with a risky sign-in, order cloud events that arrive late, set thresholds against each account's own history, compare an account with its peer group, and add weak signals up into a risk score for one account.
Show 6 lessonsHide lessons
- 8.18.1 Endpoint Activity, Then a Risky Sign-in on the Same Account
- 8.28.2 Order and Arrival Delay: A Key Created, Then the Trail Stopped
- 8.38.3 Thresholds Against Each Entity's Own History
- 8.48.4 Peer Groups: A Privilege Nobody Else on the Team Holds
- 8.58.5 Risk-Based Alerting: Weak Signals Added Up on One Account
- 8.6Module Summary and Knowledge Check
Module 9 of Threat Detection Engineering: putting detections into Microsoft Sentinel and Defender XDR. Configure a scheduled rule and a custom detection, map entities and group alerts into incidents, promote a rule with a deployment record, and diagnose six deployed rules that fail in six different ways from their health records.
Show 6 lessonsHide lessons
- 9.19.1 A Sentinel Scheduled Rule: Query, Schedule, Lookback and Threshold
- 9.29.2 A Defender XDR Custom Detection and Its Response Action
- 9.39.3 Entity Mapping, Custom Details and Alert Grouping
- 9.49.4 Promoting a Rule: Environments, Deployment Record and Rollback
- 9.59.5 Troubleshooting a Rule That Never Fires
- 9.6Module Summary and Knowledge Check
Phase 3: Threat-Focused Detection Engineering
Module 10 of Threat Detection Engineering: detections for five Windows techniques, each against its look-alike. Encoded PowerShell that survives renaming, signed binaries used to fetch and run code, a logon task that runs, LSASS dumped and the crash dump that looks like it, and Defender turned off, ending with a lab that tests the five as one pack.
Show 7 lessonsHide lessons
- 10.110.1 Office Starting Hidden, Encoded PowerShell
- 10.210.2 Living Off the Land: rundll32, mshta and certutil
- 10.310.3 A Logon Task Running From a Temp Folder
- 10.410.4 LSASS Memory Access, and the Crash Dump That Looks Like It
- 10.510.5 Defender Exclusions and Cleared Logs
- 10.610.6 Testing a Windows Detection Pack
- 10.7Module Summary and Knowledge Check
Module 11 of Threat Detection Engineering: detections for Linux servers from Syslog and auditd. A web account running a downloaded script, SSH guessing that succeeds and goes to root, a crontab for an account that never had one, audit rules removed and data sent to a new address, ending with a lab that reviews the audit rules these detections need.
Show 6 lessonsHide lessons
- 11.111.1 A Web Server Account Downloading and Running a Script
- 11.211.2 SSH Guessing That Succeeds, Then sudo to Root
- 11.311.3 A Crontab for an Account That Never Had One
- 11.411.4 Log Tampering and an Unusual Outbound Connection
- 11.511.5 Writing the Audit Rules Linux Detections Depend On
- 11.6Module Summary and Knowledge Check
Module 12 of Threat Detection Engineering: detections for the identity and control planes. Password spraying from one address and from many, a replayed session cookie, consent to an application that reads mail, a secret added to a service principal, Owner on a subscription for a new guest, and a leaked AWS key that creates an administrator, assembled and tested together in the module summary.
Show 7 lessonsHide lessons
- 12.112.1 Password Spraying from One Address and from Many
- 12.212.2 A Replayed Session Cookie
- 12.312.3 Consent to an Application That Reads Mail
- 12.412.4 A Secret Added to a Service Principal
- 12.512.5 Owner on the Subscription for a New Guest
- 12.612.6 A Leaked AWS Key That Creates an Administrator
- 12.7Module Summary and Knowledge Check
Module 13 of Threat Detection Engineering: detections for the traffic between machines. Generated domains and a DNS tunnel, a beacon with jitter on a server no endpoint source records, a sweep of the office subnet followed by remote administration, and a large upload to a destination nobody uses, assembled and tested together in the module summary.
Module 14 of Threat Detection Engineering: a detection chain from a phishing message to the minutes before encryption. Code run soon after mail from a new sender, a mailbox rule that hides warnings, shadow copies and backups removed, and a share encrypted from another machine, each with its Sigma form, joined into one campaign in the module lab.
Show 5 lessonsHide lessons
Phase 4: Detection Validation, Automation and Operations
Module 15 of Threat Detection Engineering: testing detections properly. A test suite built against a rule's conditions, the labels a replay dataset needs, Atomic Red Team runs captured in a test workspace, the course's fixed measures including detection latency, and a validation report for three rules.
Show 5 lessonsHide lessons
Module 16 of Threat Detection Engineering: changing rules that are already running. A false positive traced to its cause, a threshold rebuilt on a baseline that moves with the estate, an exclusion written on fields an attacker can't set, what each rule costs to run, and a regression check on labeled data and the lab.
Module 17 of Threat Detection Engineering: the course's six production rules moved into a repository. One file per rule with a schema and owners, validation of what Sentinel would refuse, tests run as the scheduler runs each rule, a deployment with a federated credential and an approval gate, and production read against the repository for its audit trail, rollback and drift.
Show 5 lessonsHide lessons
Module 18 of Threat Detection Engineering: the course's detection library run as a program. An inventory joining the repository to what production runs, with owners and states from evidence; sources watched against their own rhythm, and the rules each silence blinds; coverage counted by tests rather than tags; precision, recall and time to detect for the program, library beside production; and a dashboard with the governance that keeps it read.
Show 5 lessonsHide lessons
- 18.118.1 The Detection Inventory: Owners, States and Retirement
- 18.218.2 A Rule That Went Silent: Detection and Telemetry Health
- 18.318.3 Coverage That Was Tested, Against Coverage That Was Mapped
- 18.418.4 Precision, Recall and Time to Detect as Program Measures
- 18.518.5 Governance and the Coverage and Health Dashboard
Phase 5: Advanced Detection Engineering
Module 19 of Threat Detection Engineering: the course's methods at the edges of a rule. Anomaly functions tested before they are trusted, with seasonality and peer groups; a library reviewed for what its rules trust; a rule an AI assistant drafted, reviewed in full; the abuse of an AI service detected on both planes; and a risk model compared with fixed rules on the same labeled data.
Show 5 lessonsHide lessons
- 19.119.1 Anomaly Detection: Distributions, Seasonality and Peer Groups
- 19.219.2 Rules That Survive Evasion: Renamed Binaries, Variants and Logging Gaps
- 19.319.3 Reviewing a Detection an AI Assistant Wrote
- 19.419.4 Abuse of an AI Service: Model Access and API Keys
- 19.519.5 A Risk Model Against Fixed Thresholds on the Same Labeled Data
Resources
One sheet per module of Threat Detection Engineering, each entry a question, the KQL and SPL query a lesson ran to answer it on the course month, what to read in the result and what the result does not prove.
Show 20 lessonsHide lessons
- 1Sources and the Course Month
- 2Introduction to Detection Engineering
- 3Adversary Behaviors and Threat Modeling
- 4Security Telemetry and Logging Fundamentals
- 5Security Data Engineering and Normalization
- 6Detection Hypothesis and Rule Design
- 7KQL for Detection Engineering
- 8Sigma and Portable Detection Rules
- 9Correlation and Behavioral Analytics
- 10SIEM and XDR Detection Implementation
- 11Windows Endpoint Detection Engineering
- 12Linux Endpoint Detection Engineering
- 13Identity and Cloud Detection Engineering
- 14Network Detection Engineering
- 15Email, Ransomware and Multi-Stage Attack Detection
- 16Detection Testing and Adversary Emulation
- 17Detection Tuning and Performance Optimization
- 18Detection-as-Code and CI/CD
- 19Detection Operations, Quality and Coverage Management
- 20Advanced and Emerging Techniques
Four runbooks for the detection engineering lifecycle on the course's estate: an advisory to a rule specification, a specification to a rule in production, a noisy rule to a tuned one, and a rule retired without losing coverage.
Show 4 lessonsHide lessons
What Threat Detection Engineering runs on and how to run it yourself: the course corpus, its label key and the tools; the detection repository and its tests on your own machine; and an optional Sentinel workspace.
Show 3 lessonsHide lessons
Six worked cases on the course corpus, each from a published threat report or vendor page to a validated rule: AiTM session replay, an illicit consent grant, a leaked AWS key, a DNS tunnel, remote encryption over SMB, and SSH guessing followed by cron.
Four playbooks, one for each way a working detection stops working on the course's estate: a rule gone silent, a noise spike, a source that stopped sending, and a field that changed under the rules.
Show 4 lessonsHide lessons
Where to practice in Threat Detection Engineering: the runnable queries in every lesson, the graded exercises and challenge sets, the four tools, and the downloads.
Show 4 lessonsHide lessons
Every rule in the Threat Detection Engineering library as it stands at the end of Module 18: the rule file, its test set and acceptance bar, the repository's own test result, the query its lesson ran over the month in KQL and SPL, and its Sigma form where it has one.
Show 7 lessonsHide lessons
The sources behind Threat Detection Engineering, arranged by the question each answers: the tables and events, normalization, how the platform runs a rule, the query languages, the attacks, how each source is configured, the commands and APIs, detection design, and further reading.
Show 9 lessonsHide lessons
- 1Which table or event records it, and what do its fields mean
- 2How is the data parsed, normalized and enriched
- 3How does the platform run a rule
- 4How do I write the query
- 5How does the attack work, and how is it classified
- 6How is the source configured, and what does it log when it is
- 7Which command, cmdlet or API does the job
- 8How do I design and judge a detection
- 9Where can I read further
Project
The Threat Detection Engineering project: one intrusion from the course's month, a Friday afternoon that runs from a mailbox to a laptop to an identity and back to the mailbox, built into a detection program of five complementary rules with their tests, a tuning record, a repository, investigation guides and a coverage page. No submission, no grading.
Show 1 lessonHide lessons
Course Completion
Threat Detection Engineering end-of-course exam: nineteen tasks, one per teaching module, each answered by writing KQL against the course corpus month and checked on the server.
Show 1 lessonHide lessons
Course overview
A detection makes three claims at once: what behavior it detects, what data it needs, and which events match. Each can be wrong on its own, and a rule that is wrong in any of them looks exactly like a rule that is quiet because nothing happened. This course teaches detection engineering as the discipline of proving those claims: the telemetry and data engineering a rule depends on, how a rule is designed before it is written, the languages it is written in, and detections for each surface an attacker crosses.
It is taught on one fictional company, through a month of its endpoint, identity, cloud, mail and network activity in which real attacks sit beside the ordinary administration that resembles them, and a key that labels which is which. Every rule in the course is scored on that key, so what it catches, what it misses and what it costs the analysts who triage it are results rather than opinions. The course ends where most detection training stops: testing, tuning, detection as code, and running the library as a program.
How this course works
Every rule is tested on labeled data. Each detection is scored against the attacks it must catch and the look-alikes it must leave alone, then run over the month the way Sentinel's scheduler would run it, so arrival delays and lookbacks are part of the result.
Three languages, one rule. Every detection is written in KQL for Microsoft Sentinel and Defender XDR and in SPL for Splunk, and from Module 14 onward in Sigma as well, so it works on whichever platform your organization runs.
Every result is real. Every query in the course runs in the page against the corpus, and every number in a lesson came from running it. Graded exercises, a challenge set in each module and four detection tools check your work the same way.
What you will learn
What this course does not cover
SIEM administration such as connectors, sizing and licensing, offensive tradecraft beyond the evidence an attack leaves, running attack techniques against real systems, incident response after an alert fires, and building machine learning models. The languages, Sigma and detection as code each have a course of their own on the platform for readers who want more depth in one of them.
Things you need to know
What are the prerequisites?
Some query experience in any language. Module 0 is free and sets out the company's estate, the evidence the course reads and how a rule is judged before the first detection lesson.
Do I need a SIEM or a lab?
No. Every query runs in the page against the course's corpus, and the detection repository and its tests run on your own machine from a download. A Sentinel workspace of your own is optional; the lab setup pages show what it needs and how to deploy a course rule into it.
How is the course assessed?
By a practical exam: nineteen tasks, one per teaching module, each answered by writing KQL against the course corpus and checked on the server. A score of 70 or more earns the Threat Detection Engineering certificate with CPE credit. The Project, separate from the exam, builds a detection program for one intrusion from the course month.
What will I be able to do after this course?
You'll be able to turn threat intelligence into detections in KQL, SPL and Sigma, test each one against data where the answer is known, tune it without losing the attack, and run it in a library with tests, health checks and coverage you can prove. You finish with a project that takes one detection through every stage.
Usage rights and disclaimer
Course materials: Licensed for individual professional development. You may use the rules and tools you build in your own environment. You may not redistribute course content or share account credentials.
Attack techniques: Attacks are taught to the depth a defender needs to detect them, against fictional evidence. Running them against systems you do not own or have permission to test is illegal.
Fictional environment: All scenarios use Northgate Engineering. Any resemblance to real organizations is coincidental.
End of Course Exam
Complete the course, then write the queries: nineteen tasks answered against the course corpus month, no time limit. Pass mark: 70. Earn your certificate with CPE credits.
Answers are checked on the server. Certificate issued on pass.