Course
Software Supply-Chain Security
Dependency confusion, typosquats, maintainer takeovers, lockfiles, SBOMs, SLSA, and sigstore — what the npm and PyPI incidents proved about the threat model and the practices that close each door.
Keep reading
Related articles from the SudoSecurity blog.
Buying Time: Package Managers Are Adding Delay as a Security Control
Composer 2.11 shipped a cooldown that refuses to install a version until it has aged. vlt now holds npm publishes until their dependencies actually exist, because 22% of new npm versions land broken. And Ruby Central's reviewers threw out 90% of what an AI scanner flagged.
Your npm Install Just Ran Someone Else's Code: Why Dependency Security Has to Start Before CI
A pull request checkout, a poisoned GitHub Actions cache, and an OIDC token pulled straight out of runner memory. That's how 84 malicious versions of TanStack's packages hit npm in six minutes.
CVE-2025-62718: Critical Axios SSRF Vulnerability Explained
A critical SSRF flaw in Axios was used in a North Korean supply chain attack. Here's what it does and how to patch it today.
What is Supply Chain Security? Dependencies, SBOMs, and the Attack That Hit 2.6 Billion npm Downloads
Your application is only as secure as every package it depends on. In September 2025, attackers compromised 27 npm packages with 2.6 billion weekly downloads by phishing one maintainer.
Reviews
Enrolled members can rate this course.
No reviews yet.
How Packages Become Payloads
The install path itself: lifecycle scripts, flat namespaces, resolver precedence, maintainer accounts, and the xz tarball.
- 01Install Time Is Run Timenpm lifecycle scripts and pip's setup.py execute package code with your credentials before your app ever imports it.13mOpen
- 02Typosquats: Names Are a NonceFlat registries serve whoever registered the confusable name first — how to verify the artifact instead of the vibes.12mOpen
- 03Dependency Confusion: The Registry Outranks YouResolvers pick the highest version across every configured index, so an unpublished internal name is a public landing zone.14mOpen
- 04The Maintainer Is the Attack Surfaceevent-stream to node-ipc: accounts get phished, handed off, expired, and turned — re-derive trust on every update.14mOpen
- 05xz: The Build Is the ArtifactCVE-2024-3094 shipped only in release tarballs via disguised test fixtures — the git repo everyone reviewed was clean.15mOpen
Lockfiles and Determinism
What your lockfile guarantees, where it stops, and how hashes and vendoring close the rest.
- 01The Lockfile Is the Build ContractSemver ranges are resolution inputs; package-lock.json is the output — npm ci enforces it, npm install rewrites it.11mOpen
- 02What the Lockfile Doesn't CoverIntegrity hashes protect the tarball you got, git deps still move, resolved hosts are editable — lint and review the diff.12mOpen
- 03Hashes, Vendoring, and Not Trusting the Networkpip --require-hashes, go.sum's transparency log, and vendoring move trust from the channel to the bytes.13mOpen
Provenance: SBOMs, SLSA, and Sigstore
Inventory, attestations, and keyless signatures — proving what shipped and who built it.
- 01SBOMs Are an Incident Tool, Not PaperworkLog4Shell proved the SBOM's job is answering 'do we ship it' in minutes — generate per artifact, keep it queryable.12mOpen
- 02SLSA: Who Built This, From WhatProvenance is a signed in-toto claim about the build — SLSA levels decide whether that claim is worth trusting.13mOpen
- 03Sigstore: Signatures Without Key FilesOIDC-bound ephemeral certs, Fulcio, and the Rekor transparency log make 'this workflow built these bytes' verifiable.14mOpen
Running It
Hardened CI, dependency vetting at the registry chokepoint, and the response playbook for when a package goes bad.
- 01Your CI Is the Attacker's ComputeMutable action tags, pull_request_target, and over-privileged tokens hand your secrets to anyone who can open a PR.14mOpen
- 02Adding a Dependency Is Adding a MaintainerScorecard, deps.dev, cooldowns, and a pull-through proxy turn trust decisions from laptop folklore into a gate.13mOpen
- 03When a Package Goes BadScope with the SBOM, rotate what the install env held, rebuild clean, then fix the door it entered through.13mOpen