All courses / AI Platform and Security / Module 2 / Chapter 9
Learning objectives
After the lesson the participant can:
- Identify the three recurring failures behind the reviewed incidents and the control that contains each.
- Explain why provenance is necessary but not sufficient.
- Assess an existing pipeline stage by stage and map its risks to Annex A controls.
- Draft a stage-risk register entry with controls, evidence, key risk indicators and an owner.
Key concepts
- Mutable reference
- A name such as a Git tag or a registry alias that can be pointed at different content while consumers keep trusting the name. The containing control is pinning by digest and commit SHA, because tags are not versions.
- Rotate, do not rewrite
- The rule for a secret pushed to a repository: revoke or rotate first and verify that the old value is rejected. Rewriting history strips signatures and leaves the data reachable in forks.
- Limit of provenance
- Provenance confirms which pipeline built an artefact, not whether that pipeline behaved as intended. It stays valuable because it makes compromise attributable, but the pipeline needs the same protection as its artefacts.
- Unmanaged skills
- A risk class with four forms: private copies that never receive fixes, unreviewed instructions, connectors of unknown origin and poisoned shared skills. The treatment is the governed catalogue with signing and review.
- Risk register as code
- The loop's risk register kept in the platform repository. Each entry names the stage, the risk, the controls with their Annex A mapping, the evidence, an owner and key risk indicators computed from manifests and logs.
Interactive exercises
Do them here and get feedback at once. Choose a card and then where it belongs, or drag it.
Interactive exercise 1 · Match
Recurring failure and containing control
Match each recurring failure with the control the chapter's table says contains it.
Interactive exercise 2 · Scenario
A secret in the history
Apply the chapter's rule for secrets in source control to a finding in an organisation like yours.
Teaching plan
| 10 min | The teacher sets the frame: this lesson is for defenders, and every case is read for the control that failed and the control that would have contained it. |
| 25 min | Go through the stages with one documented case each; after each case participants name which of the three recurring failures it shows and the containing control. |
| 15 min | Cover unmanaged skills, the Annex A mapping, Nordvik Region's control 8.9 finding and Hansa Mutual's register entry HM-LOOP-04. |
| 30 min | Exercise: a tabletop on a reported compromised dependency, followed by writing the register entry for that stage. |
| 10 min | Debrief on the reconstruction test: could each group name every artefact version in a release from three months ago? |
Discussion
- A vulnerability with a modest severity score in a mirror turned out to matter greatly to the loop. Which component in your pipeline is more important than its score would suggest?
- An auditor at Nordvik Region saw a control verified as effective with findings. Why might a recorded and corrected deviation be worth more than an unbroken series of passes?
- Where in your pipeline do a tool, a credential and untrusted input meet in the same job, and who decided that they should?
Written exercise
Exercise · 30 minutes
Tabletop: a compromised dependency is reported
Run a tabletop on your own pipeline or on Hansa Mutual's claims assistant. The scenario: a package, action or base model the loop uses is reported compromised this morning. Using the chapter's response guide, write down who freezes promotion and where affected versions are blocked, how every consumer is found by name and digest, which signed manifest systems roll back to, which credentials are rotated and how revocation is verified, what evidence is preserved, and which reporting duties are assessed. Note for each step whether you could meet the guide's default times. Then write the stage-risk register entry for this stage in the form of HM-LOOP-04.
Deliverable: A response timeline with owners and achievable times per step, and one risk register entry with controls, evidence, key risk indicators, Annex A mapping and owner.
Self-test
Choose an answer to see whether it is right, or open the answer below each question.
Which three failures does the chapter say recur across the incidents of 2024 to 2026?
Show the answer
D. The mutable reference, the shared CI cache and the credential believed revoked but still valid
Immutable digests, isolated release workflows, signed provenance and verified revocation address all three; the synthesis is the author's interpretation of the cases.What does the May 2026 wave against the TanStack packages show, according to the chapter?
Show the answer
B. That provenance confirms which pipeline built an artefact, not whether it behaved as intended
The malicious packages were published through the project's own release workflow and carried valid build provenance, which shows the limit of provenance alone.Where should the risks of the delivery loop be recorded, according to the chapter?
Show the answer
C. In the organisation's information security risk register, treated through its selected Annex A controls
The loop's risks belong in the existing ISO/IEC 27001 register, not a separate AI register, and the register is held as code in the platform repository.