Red-team your own AI system
Scope, method, tools, evidence and the report, for a system that you own.
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/red-team-your-ai.
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 to red-team an AI systemCreate the lab folder and the target system that every lesson of the course testsSet-up20 min
- 01Scope the test and write the rules of engagementWrite a scope file that says what may be tested, when, and how much40 min
- 02Map what the target offers and what it can reachList the endpoints that the target answers, inside the scope only45 min
- 03Turn the threat model into a table of test casesWrite test cases with an input, a safe behaviour and a judge that code can apply40 min
- 04Automate the tests with a small harnessSend every test case to the target and record each answer in a JSON lines file45 min
- 05Test retrieval and tool use by hand and keep notesProbe a retrieval step and a tool call one change at a time45 min
- 06Test the infrastructure around the modelCheck which ports of the lab listen, and on which address45 min
- 07Score findings and collect evidence that another person can repeatGive a finding a severity from its impact and its measured likelihood with a fixed table45 min
- 08Write the report, fix the findings and retestGenerate a Markdown report from the scope, the findings and the counts50 min
- 09Run a full assessment of the lab target from scope to reportRun every stage of an assessment with one script and read its output60 min
- 10Test a client's booking assistant and report what you foundTest a system that a client supplies, inside a signed scope and nowhere elseTest90 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.
- Software Security Assessment
DD-WRL-005a main skill of the roleYou scope, test and report on the security of an AI application that you own. - Systems Testing and Evaluation
DD-WRL-007a supporting skillYou turn a threat model into test cases and run them with a harness. - Vulnerability Analysis
PD-WRL-007a supporting skillYou find exposed ports, debug pages and keys in logs around a model.