Revisit the weakest model supply-chain control
Jump & context
Week 18: Targeted Remediation of Weakest Controls & Clean-Room Final Acceptance Runs (Projects 1 & 2)
The five hours
- 01
Concepts & system design
60 min· read · map the mechanismR11 — HF Hub security
R12 — Safetensors
R36 — Syft/Grype
R37 — SLSA/Sigstore
Read the assigned sections; map the mechanism, threat model and trade-offs.
- 02
Project implementation
120 min· build · integrate · debugInspect your weakest model supply-chain control across
P1–P3(artifact source verification,trust_remote_codeblocking, transitive dependency pinning, SHA-256/signature verification, or safe tensor loading) and harden it.Build, integrate, debug and improve the increment in the active project.
- 03
Security lab
60 min· attack your own systemWrite a new negative supply-chain test in
D12that would have bypassed your earlier implementation and verify it now fails closed.Test the abuse case, failure path, authorization bypass or resource limit.
- 04
Verification & evidence
30 min· test · record evidenceHardened
D12supply-chain control and new regression test.Add or run regression tests; record the 9-point evidence record.
- 05
Deliberate practice & Socratic review
30 min· explain aloud · update gapsAnswer the 8 Socratic questions without notes: What? Why? How? What if? Why not? How can I prove it? Where can it break? What have I learned?
Re-explain the hardest concept aloud, inspect one edge case, update the gap log.
- total5 h
Read today · inside the concepts block
R11 R12 R36 R37Model cards, tokenizer/config files, embedding usage, and repository commit-hash revision pinning.
Zero-copy safe tensor format overview vs. unsafe pickle deserialization risks.
CycloneDX/SPDX SBOM generation, container image scanning, dependency vulnerability detection, and scanner limits.
Supply-chain Levels for Software Artifacts (SLSA), build provenance attestations, and Cosign artifact signing.
Read only the named sections needed for today's task. Reading sits inside the 60-minute concepts block; it is not extra time.
Free resources for this day
5 curated- docsHugging Face · Format docsSafetensors
The assigned reading on the zero-copy tensor format: a JSON header plus raw tensor bytes, with no object graph to reconstruct, which is precisely why it closes the pickle load-time execution path.
R12checked 2026-11-11 - videoSANS Internet Storm Center · News segmentSANS Stormcast Tuesday Feb 19th: ModelScan AI Model Security; OpenSSH Vuln; Juniper Patches; De…
A short segment on inspecting AI models for deserialization attacks, naming the scanner and the class of payload it looks for — the artifact-verification step for your weakest supply-chain control.
R11R36checked 2026-11-11 - videoConf42 DevSecOps (Emmy Eide) · Conference talkYour SBOM Stops at the model
Argues that package-level SBOMs go clean while the model artifact carries the most capability, and covers unsafe deserialization, trust_remote_code, and tensor-level tampering as separate controls.
R36R37checked 2026-11-11 - articleThe Layman Security · 15 min readAI Supply Chain Security: Pickle, Safetensors, ML-BOM
Includes a harmless tested pickle demo that executes on load, the JFrog findings, and the concrete defence list (safetensors-only, source allowlist, scan before load, ML-BOM), matching the controls you are hardening.
R12moved 2026-11-11 - repoProtect AI (GitHub) · Apache-2.0 CLI + Python APImodelscan
Scans model files byte by byte without deserializing them, so it inspects pickle, SavedModel, H5, and Keras Lambda layers for unsafe calls — the CI gate you can drop in front of any loader.
R36checked 2026-11-11
Evidence record · 9-point standard
A lab is complete only when it produces evidence. Installing PyRIT, Garak, Presidio or TransformerLens is not completion. Saved on this device only.
Day notes
emptyThe two source formulations
verbatim · nothing summarisedProject & Deliverable Target
All Projects | `D12` (AI Supply-Chain SBOM Scanner) | M1
Core Implementation
Inspect your weakest model supply-chain control across P1–P3 (artifact source verification, trust_remote_code blocking, transitive dependency pinning, SHA-256/signature verification, or safe tensor loading) and harden it.
Security Lab
Write a new negative supply-chain test in D12 that would have bypassed your earlier implementation and verify it now fails closed.
Verification & Evidence
Hardened D12 supply-chain control and new regression test.
Read Today (60m Concepts Block)
R11 (HF Hub security), R12 (Safetensors), R36 (Syft/Grype), R37 (SLSA/Sigstore).
---