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

Securing AI infrastructure

Model servers, gateways, keys, pipelines and cost controls.

12 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-infrastructure.

You will build

Build a production readiness check for the whole lab system

You need

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

Next course

All the courses

  1. 00Set up your lab for Securing AI infrastructureCreate the lab folder and a virtual environment with pinned librariesSet-up25 min
  2. 01Draw the reference architecture of a model service and check itName the parts of a model service and the zone of each one35 min
  3. 02Serve a model behind an API and test its good and bad requestsLoad a trained model from a file that cannot run code40 min
  4. 03Put a gateway in front of the model service and test each controlBuild a gateway that checks an API key, a rate limit and a body size before it forwards45 min
  5. 04Manage keys and secrets and rotate a key without a breakKeep keys as hashes at rest and as files of mode 600 in use40 min
  6. 05Isolate the model service and audit the isolation settingsLimit what the service can read, write and use with file modes and ulimit40 min
  7. 06Build a release script that promotes a model only when every gate passesRun unit tests, an evaluation and a security scan as gates before a releaseBuild45 min
  8. 07Detect data drift in production and decide what to doMeasure drift of a feature with a population stability index and a two-sample test40 min
  9. 08Control cost and capacity with budgets, load shedding and a capacity estimateGive each client a daily budget in requests and tokens40 min
  10. 09Write access rules for the model service as code and test themWrite access rules as data that say who may call which model, from where, with which data class45 min
  11. 10Build a production readiness check for the whole lab systemTurn a launch checklist into one script that prints PASS or FAIL for each itemBuild45 min
  12. 11Review a model service before launch and prove that it is readyRun the readiness check on a system that a team wants to launch and read each failureTest90 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.