AI for security operations
Use AI in the SOC, and measure what it finds and what it misses.
How to use the lab files
The zip keeps the files of each lesson apart, and the lessons work in one flat folder. After you unzip it, sh kr-lab.sh LESSON FOLDER builds that folder as it stands after a lesson, for example sh kr-lab.sh 00-set-up-your-lab ~/krlab/ai-for-secops.
You need
A computer with Linux, macOS, or Windows with WSL. No GPU, no cloud account and no paid tool.
Next course
- 00Set up your lab for AI for security operationsCreate the lab folder and a virtual environment with the pinned librariesSet-up25 min
- 01Measure a week of alerts and choose the tasks for an AI helperTurn a week of alerts into workload numbers35 min
- 02Triage alerts with a model and measure what auto-closing costsTrain a classifier on four weeks of labelled alerts and score a new week40 min
- 03Summarise a log for an investigation note and check the factsWrite a rule-based summary of a log and find its key facts with code45 min
- 04Find unusual logins with a z-score and an isolation forestBuild a simple statistical detector and an isolation forest on login sessions40 min
- 05Classify suspicious messages and test the model on new wordingTrain a text classifier on messages and add a domain feature that does not depend on wording45 min
- 06Answer threat questions from an intel base and check every sourceRetrieve the reports that match a question and show their sources45 min
- 07Spot signs of AI-enhanced attacks in your data and hold risky requestsSay what changes for a defender when attackers use AI, and what does not50 min
- 08Test which of your signals still work when attackers use AISay for each family of AI-assisted attack what changes for the defender and which signal still works50 min
- 09Automate enrichment, tickets and a pipeline gate where AI only suggestsWrite an enrichment script and a ticket updater that a gate controls55 min
- 10Gate a change with scanners, tests and a pipelineRun a rule checker, a composition scan, tests and a model test on a program with planted faults60 min
- 11Check an AI review and control the AI helpersCheck each finding of an AI review against the code and count the true, the invented and the missed55 min
- 12Check the output of AI tools for threats, tests and paymentsCheck a threat list against your own list of data flows50 min
- 13Run a triage copilot with human review and measure its errorsBuild a copilot loop that proposes a verdict with evidence and waits for a person50 min
- 14Build a triage copilot and report its errors on the fixed weekCombine the classifier, the enrichment and a review rule into one copilotBuild55 min
- 15Evaluate a colleague's triage copilot on a new week and set its limitsMeasure what a copilot misses on a week with a new pattern, from the labelsTest90 min
Work roles
Work roles this course supports
The course helps you to prepare for these roles of the NICE Workforce Framework for Cybersecurity (NIST SP 800-181 Rev. 1). No single course covers a whole role, and KaliRange is not a certification body.
- Defensive Cybersecurity
PD-WRL-001a main skill of the roleYou triage alerts with a model and measure what auto-closing misses. - Data Analysis
IO-WRL-001a supporting skillYou build classifiers and anomaly detectors on security data and measure their errors. - Threat Analysis
PD-WRL-006a supporting skillYou answer threat questions from an intel base and check every source.