Compliance engineering: CRA and AI Act on Kubernetes hands-on
You ship your own product with an AI feature the way the CRA and the AI Act require – with an SBOM, VEX, signed updates, security advisories, logs, human oversight and a test bench – and finally take a reported and an exploited vulnerability all the way to the final report and the declaration of conformity.
- Free · no subscription
- 17 days · 90–180 min each
- 111 drills · with expected output
# on werk1
$ kubectl get svc -A
Expected
NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE default kubernetes ClusterIP 10.43.0.1 <none> 443/TCP 29m kube-system kube-dns ClusterIP 10.43.0.10 <none> 53/UDP,53/TCP,9153/TCP 29m kube-system metrics-server ClusterIP 10.43.46.109 <none> 443/TCP 29m lotse lotse NodePort 10.43.146.193 <none> 8080:30080/TCP 26m lotse ollama ClusterIP 10.43.238.68 <none> 11434/TCP 26m
As a book
The whole course to take with you, for reading away from the screen. Reading online stays free.
What you'll be able to do
- Classify the CRA and AI Act obligations for your own product on Kubernetes and back them with article and annex – no legal advice, but straight from the regulation
- Generate SBOMs with Syft, rate vulnerabilities with Grype and Trivy, prove with VEX what does not affect you, and sign releases with Cosign and attach the evidence
- Disclose a reported vulnerability in a coordinated way (security.txt, CSAF) and walk through an exploited vulnerability under Article 14 CRA and Article 73 AI Act with deadlines, evidence and reports
- Equip a high-risk AI system with logs, human oversight, a test bench against prompt injection and group comparisons, technical documentation and post-market monitoring
What you need
LabTwo VMs with Ubuntu 24.04, SSH access and sudo on a shared network – the first with at least 4 vCPU/11 GB/80 GB (registry, builds and the language model on the CPU), the second with 2 vCPU/7 GB/30 GB
BackgroundLinux in the terminal, Kubernetes basics (pods, deployments, kubectl), building containers, reading Python
InternetInternet access from the VMs for the downloads (k3s, tools, images and the language model); no GPU, no cloud account, nothing is sent to authorities
Prior knowledgeThe course is self-contained: cluster, registry, the Bewerbungslotse product with its language model and every failure are built in the course. It is for developers, platform engineers and security leads at manufacturers who have to implement the CRA and the AI Act technically. No legal advice.
Set up your labKubernetes locally · Lab VMs
Training plan
One day = one sitting. Every day ends with a checkpoint and a challenge. About 35 hours in total.
Training days
- Preparation The factory – two VMs, one cluster and the first productset up access to two VMs, run your own container registry, build a Kubernetes cluster with two nodes, and build, ship and use for the first time the product of this course – the Bewerbungslotse with a small language model 120 min
- Day 1 What the CRA wants from the product – classification, support period, attack surfacecapture your own product the way the Cyber Resilience Act sees it: what is shipped, what it consists of, where it can be reached, which category it falls into and how long the factory must deliver security updates – recorded in a product profile in Git 90 min
- Day 2 The parts list – SBOM with Syft, comparison with Trivy, finding gapsgenerate a machine-readable software bill of materials (SBOM) for the Bewerbungslotse and the bought-in Ollama image, read it with jq, cross-check it with a second tool, name its gaps and put it under version control next to the code 100 min
- Day 3 Finding and assessing vulnerabilities – Grype, Trivy, CVSS, EPSS, KEV, false positivesmatch the parts list against vulnerability databases with two scanners, classify the findings by severity, likelihood of exploitation and actual exploitation, recognise false positives and measurement errors, and record a decision for each group 120 min
- Day 4 VEX – proving "does not affect us"record for version 1.0.0, machine-readable and with justification, which findings do not affect the product, which one does and which one is still being investigated – as an OpenVEX document in Git that Grype and Trivy evaluate when scanning 100 min
- Day 5 Secure by defaultship the Bewerbungslotse so that it runs securely without any action by the operator – no default password, no open port, no root, a read-only file system, Ollama reachable only by the Lotse – and prove it with a configuration scan 120 min
- Day 6 The recallship version 1.0.1 as a security update – libraries at the minimum versions, Debian fixes applied, the image signed with Cosign, parts list and VEX attached as signed evidence, rolled out in the cluster by digest, with a rehearsed way back 130 min
- Day 7 Coordinated disclosureset up a point of contact for security reports (SECURITY.md, security.txt), accept a real researcher's report, reproduce and assess it, fix the vulnerability in 1.0.2 and publish the security advisory as a CSAF document 140 min
- Day 8 Exploited – the notification under Article 14recognise an actively exploited vulnerability, secure the traces, calculate the deadlines under Article 14 CRA, write the early warning notification, the vulnerability notification and the final report as a re-enactment, inform users in machine-readable form and update the affected installation 120 min
- Day 9 Technical documentation and conformitybuild the technical documentation under Annex VII CRA, write the risk assessment with evidence, seal test reports, put the user information under Annex II into the chart, draft the EU declaration of conformity and attach a signed "type plate" to the image 120 min
- Day 10 Classifying under the AI Act – is the Lotse a high-risk system?check whether the Bewerbungslotse is an AI system, classify it under Annex III AI Act, test the exception under Article 6(3) with an experiment, record roles and deadlines and label the AI output in machine-readable form 100 min
- Day 11 The tachograph – logs, retention, data protectiongive the Lotse an event log under Article 12 AI Act that works without names, keep it for at least six months and delete it automatically afterwards, and build in an access log that can be switched off for the CRA gap in point 2(l) 110 min
- Day 12 Human oversight – suggestion instead of decision, stop button, release 1.1.0turn the model's score into a suggestion that a human decides on, log the override, build in a stop button under Article 14(4)(e) AI Act, measure its response time and release version 1.1.0 signed 130 min
- Day 13 Accuracy and robustness – test set, hit rate, prompt injection, group comparisonbuild a test bench that evaluates a fixed test set with exactly the Lotse's code, measure the hit rate and group pairs, find and fend off a successful prompt injection, secure the defence with a regression run and record everything in an AI test report 140 min
- Day 14 The file for the authority – Annex IV, instructions for use, post-market monitoringfix the open finding from Day 13 and back it up with a regression run, ship version 1.1.1 signed, enter the prompt injection as a vulnerability of its own in VEX and the vulnerability list, write the technical documentation according to Annex IV and the instructions for use according to Article 13, and start post-market monitoring according to Article 72 with real figures from the log 160 min
- Day 15 One incident, two reporting routes – Article 14 CRA and Article 73 AI Actreproduce a customer on 1.1.0, exploit the prompt injection BW-2026-003 from outside, take the deployer's report, secure the evidence, check both reporting routes for the same incident, calculate the deadlines and write both reports (without sending them), then secure the customer 130 min
- Day 16 Final case – a report on Friday, everything through to the endaccept and reproduce a new researcher's report, decide without a reporting obligation, harden the rule, ship release 1.1.2 completely (signature, parts list, VEX, test bench), write a security advisory for two vulnerabilities, close the incident from Day 15 with the final report and round off the type file with risk management and a single declaration of conformity 180 min
Ready? Preparation takes 120 min.
Reading works without an account. A free account saves your progress.
Related courses
More on this topic: Security engineering courses