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

KaliRange / Advanced

Detection and incident response for AI

What to log, what to detect, and how to contain and recover from an AI incident.

11 lessons · about 9 hours · every command tested

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-detection-response.

You will build

Build a detection and response kit with one command

You need

A computer with Linux, macOS, or Windows with WSL. No GPU, no cloud account and no paid tool.

Next course

AI for security operations

  1. 00Set up your lab for Detection and incident response for AICreate the lab folder of the courseSet-up15 min
  2. 01Decide what to log, keep secrets out and protect the logChoose the fields of one log record for an AI assistant45 min
  3. 02Detect injection and abuse in the logsWrite four detection rules that read only the log file45 min
  4. 03Watch confidence and drift, and share the evidence without naming anyoneTurn token probabilities into one confidence score for an answer60 min
  5. 04Watch rate and cost and alert on a spikeCount requests per user and per hour and compute the cost of each request from its tokens45 min
  6. 05Spot model extraction by its query patternName the features of an extraction run that the log can show45 min
  7. 06Write incident playbooks for AI and check them with codeWrite a playbook for each of five AI incident types40 min
  8. 07Contain an AI incident, roll back and prove the recoveryContain an incident with the smallest action that stops it45 min
  9. 08Audit an AI system for accuracy, access and biasMeasure accuracy and hallucination on a labelled sample and state how sure the result is50 min
  10. 09Build a detection and response kit with one commandJoin the log writer, the detectors, the cost watcher, the playbook checker and the rollback check in one kitBuild40 min
  11. 10Find the incident in a week of logs, contain it and report itFind an injection that led to a tool misuse, a slow extraction and a cost spike in one week of logsTest90 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.

Role names and codes are NIST's (Components 2.2.0, 2026-04-28); the choice of roles is our own reading of the role descriptions. The NICE Framework at NIST has the full description of each role.