Module 23 · DevSecOps & Application Security · Lesson 69 of 75
Software supply chain security
How attackers poison dependencies and build systems, and the defences: SBOMs, pinned and verified dependencies, signed artefacts, SLSA levels and hardened CI.
In this lesson · about 35 minutes
- Describe supply chain attacks such as typosquatting and build compromise
- Explain SBOMs, artefact signing and SLSA
- Harden a CI/CD system and its secrets
How supply chains are attacked
- Typosquatting and look-alike packages:
reqeustsinstead ofrequests, carrying malware that steals environment variables. - Dependency confusion: a public package with the same name as a company's internal one, at a higher version, gets installed instead.
- Compromised maintainers: a stolen maintainer account or a long-term social-engineering campaign plants a backdoor (as in the 2024 xz Utils case, caught days before it spread widely).
- Build system compromise: attackers modify the build so signed, trusted updates contain malware (the SolarWinds Orion attack, 2020).
- Vulnerable components: one flaw in a ubiquitous library (Log4Shell, 2021) affects thousands of products at once.
- Poisoned CI: a malicious pull request that runs in CI with access to secrets.
Defences
| Defence | What it gives you |
|---|---|
| SBOM (SPDX or CycloneDX) | An ingredient list for every release, so you can find affected products fast |
| Lock files and pinned versions with hashes | The exact, verified packages are installed every time |
| Private registry or proxy, scoped package names | Stops dependency confusion; vets new packages |
| Artefact signing (Sigstore cosign, signed commits) | Proof of who built it and that it has not changed |
| Provenance and SLSA | A signed record of how and where an artefact was built; SLSA levels 1 to 3 describe increasingly tamper-resistant builds |
| OpenSSF Scorecard | A health score for open-source projects you depend on |
| VEX documents | State whether a CVE in a component actually affects your product |
Hardening CI/CD
- Short-lived credentials via OIDC federation instead of long-lived cloud keys stored in CI.
- Do not expose secrets to builds triggered by pull requests from forks.
- Pin third-party CI actions to a commit hash, not a moving tag.
- Protected branches, required reviews, and signed commits for release branches.
- Ephemeral, isolated build runners; least-privilege tokens.
Decision scenario
A new critical library vulnerability
You lead application security for a company with 60 services.
At 08:00 a critical remote-code-execution flaw is announced in a popular logging library. The CEO asks by 10:00: "Are we affected, and where?"
What do you recommend?
0 of 3 options explored. Try the others to see how each would play out.
Check your understanding0 of 3 correct
Flashcards
Module 23 flashcards
0 of 10 known
Say the answer out loud, flip the card, then be honest: cards you miss come back at the end.
Practice exam
Module 23 checkpoint
10 questions, 12 minutes.
- 10 questions · 12 minutes
- No feedback until you submit. Flag questions to come back to them.
- Aim for 85% or better before you move on. The real exam's 750 out of 900 is roughly 80–83%.
Quiz score: 0 of 3
Written by Noviq Academy in its own words. All labs are simulations: no real systems are touched, and every name, address, password and hash is made up. The offensive techniques taught here are for defending systems and for authorised testing only; never scan, access or test a system without the owner's written permission. Tool and product names belong to their owners, and command output may differ slightly from yours. Read-aloud uses your device's built-in voices.