Detection Engineering as Code

Write, test, tune and ship detections the way software teams ship code.

Time
14 h 8 min
Lessons
55
Machine
Ubuntu 24.04 LTS

What you earn

  • RootCertificateDetection Engineering as Code, certificate of completion
  • CompTIACySA+CompTIA Cybersecurity Analyst
  • MicrosoftSC-200Security Operations Analyst Associate

*Comparable to CompTIA Cybersecurity Analyst and Security Operations Analyst Associate.

Start the course

You will be able to

  1. Measure coverage against a threat profile with ATT&CK STIX data and Navigator layers
  2. Check that log sources carry the fields your rules need
  3. Write Sigma rules with modifiers, conditions, filters and correlations
  4. Convert rules to SPL, Lucene, EQL, ES|QL, KQL and LogQL with sigma-cli and custom pipelines
  5. Test rules on EVTX attack samples and pcaps with Chainsaw and Suricata, and files with YARA

Units and lessons

Unit 04 · 1 h 32 min

Convert rules to real backends

Turn Sigma rules into Splunk, Elastic, Microsoft and Loki queries with sigma-cli, choose processing pipelines, write your own pipeline for Kestrel's log lake and handle rules a backend cannot convert.

  1. 1Backends and processing pipelines14 min · machine
  2. 2Convert for Splunk15 min · machine
  3. 3Convert for Elastic16 min · machine
  4. 4Convert for Microsoft and Grafana Loki15 min · machine
  5. 5Write a pipeline for your own logs18 min · machine
  6. 6Convert the whole rule set14 min · machine

Unit 05 · 1 h 14 min

Test rules against attack data

Run the rule set over real attack recordings with Chainsaw, read the team's test harness, debug a rule that never fires, widen a rule that misses variants and add tests that prove rules stay quiet on normal data.

  1. 1Run every rule over the attack samples13 min · machine
  2. 2Read and run the test harness14 min · machine
  3. 3Debug a rule that never fires18 min · machine
  4. 4Widen a rule to catch variants14 min · machine
  5. 5Prove rules stay quiet on normal data15 min · machine

Unit 06 · 1 h 32 min

Suricata and YARA rules

Write and test Suricata rules for DNS, HTTP and TLS against packet captures, control alert volume with thresholds, and write YARA rules for script attachments with tests on goodware.

  1. 1Read and load a Suricata rule13 min · machine
  2. 2Test a DNS rule against a capture17 min · machine
  3. 3Write an HTTP rule15 min · machine
  4. 4Control alert volume with thresholds15 min · machine
  5. 5Write a YARA rule for script attachments16 min · machine
  6. 6Add a rule and test it on goodware16 min · machine

Join the detection team at Kestrel Freight and work its rule repository on a real desktop. Map rules to MITRE ATT&CK, check your log sources, write Sigma, Suricata and YARA rules, convert them for Splunk, Elastic and Microsoft, test them on real attack recordings, tune out false positives, run everything through CI and measure what your rules are worth.

* Root is not affiliated with these issuers. See our terms.

Start Detection Engineering as Code

Start learning