[{"data":1,"prerenderedAt":989,"buildId":990},["ShallowReactive",2],{"blog-software-supply-chain-attacks":3},{"id":4,"title":5,"body":6,"cluster":977,"date":978,"description":979,"draft":980,"extension":981,"keyword":982,"meta":983,"navigation":984,"path":985,"seo":986,"stem":987,"__hash__":988},"blog\u002Fblog\u002Fsoftware-supply-chain-attacks.md","Software supply chain attacks and how builds stop them",{"type":7,"value":8,"toc":952},"minimark",[9,13,16,21,24,53,56,67,80,84,93,98,101,126,130,141,144,148,151,172,176,179,186,190,193,197,201,216,219,249,252,256,275,297,300,304,325,342,345,349,363,375,378,386,390,393,461,464,467,489,515,528,536,558,561,565,574,616,619,623,638,641,645,654,688,691,739,742,746,754,774,782,785,792,795,799,807,937,940,948],[10,11,12],"p",{},"A software supply chain attack does not break into your application. It breaks into something your application trusts: a package, a maintainer account, a build server, a CI action, an image in a registry. Your pipeline then delivers the attacker's code to production for them, signed and versioned like any other release.",[10,14,15],{},"Software supply chain security is the work of checking each of those trust points so that what runs in production is provably what you meant to ship. This guide covers how the attacks work, four incidents that shaped current practice, and the build controls that stop them.",[17,18,20],"h2",{"id":19},"what-the-software-supply-chain-is","What the software supply chain is",[10,22,23],{},"Every release passes through four hops:",[25,26,27,35,41,47],"ol",{},[28,29,30,34],"li",{},[31,32,33],"strong",{},"Source."," Developers commit code to a repository. Reviews, branch rules and commit signing decide what gets in.",[28,36,37,40],{},[31,38,39],{},"Build."," A CI runner checks out the source, pulls dependencies from package registries, runs third-party actions or plugins, and compiles the result.",[28,42,43,46],{},[31,44,45],{},"Package."," The output is stored as an artifact: a container image, a wheel, a tarball, a binary in a registry.",[28,48,49,52],{},[31,50,51],{},"Deploy."," Something pulls that artifact and runs it in production.",[10,54,55],{},"Dependencies enter at the build hop, and they bring their own supply chains with them. Each dependency has its own source, build and publish steps, run by people you have never met.",[10,57,58,59,66],{},"The ",[60,61,65],"a",{"href":62,"rel":63},"https:\u002F\u002Fslsa.dev\u002Fspec\u002Flatest\u002Fthreats-overview",[64],"nofollow","SLSA framework"," maps this into threats lettered A to I, from the producer and the source repository through the build process, artifact publication and the distribution channel, to package selection and usage. Dependency threats are the same list applied recursively to every package you pull. It is a useful checklist when you ask \"where could someone change what we ship?\"",[10,68,69,70,74,75,79],{},"The fastest way to see these trust boundaries is to follow one commit end to end. Our free lab (open from 12 January 2027) ",[60,71,73],{"href":72},"\u002Fcourses\u002Fdevsecops\u002Flabs\u002Ftrace-one-commit-from-push-to-production-and","Trace one commit from push to production"," has you do exactly that on a Git server, CI runner, registry, package index and production host, marking who can change what at each hop. It opens free on 12 January 2027; ",[60,76,78],{"href":77},"\u002Fcourses\u002Fdevsecops#join","join the launch list"," to get it first.",[17,81,83],{"id":82},"how-software-supply-chain-attacks-work","How software supply chain attacks work",[10,85,86,87,92],{},"OWASP groups the dependency side of this under ",[60,88,91],{"href":89,"rel":90},"https:\u002F\u002Fowasp.github.io\u002Fwww-project-top-10-ci-cd-security-risks\u002FCICD-SEC-03-Dependency-Chain-Abuse",[64],"CICD-SEC-3, Dependency Chain Abuse",": flaws in how workstations and build environments fetch code dependencies. The build and artifact side has its own entries. Together they give five classes worth knowing.",[94,95,97],"h3",{"id":96},"dependency-confusion","Dependency confusion",[10,99,100],{},"Your build pulls internal packages from a private index but can also reach a public one. An attacker publishes a public package with the same name as one of your internal packages and a higher version number. If the package manager merges both sources and picks the highest version, your build installs the attacker's package.",[10,102,103,104,109,110,115,116,120,121,125],{},"Alex Birsan made this widely known in ",[60,105,108],{"href":106,"rel":107},"https:\u002F\u002Fmedium.com\u002F@alex.birsan\u002Fdependency-confusion-4a5d60fec610",[64],"February 2021",", when he used it against more than 35 organisations, including Apple, Microsoft and PayPal, under their bug bounty programmes. pip's own documentation now ",[60,111,114],{"href":112,"rel":113},"https:\u002F\u002Fpip.pypa.io\u002Fen\u002Fstable\u002Fcli\u002Fpip_install\u002F",[64],"warns"," that using ",[117,118,119],"code",{},"--extra-index-url"," to find private packages is unsafe for this reason. We cover the mechanics in detail in ",[60,122,124],{"href":123},"\u002Fblog\u002Fdependency-confusion","Dependency confusion: how a public package hijacks a private build",".",[94,127,129],{"id":128},"typosquatting-and-install-scripts","Typosquatting and install scripts",[10,131,132,133,136,137,140],{},"Typosquatting relies on a typo. A package called something one keystroke away from a popular name waits for a developer, or an AI assistant, to get it wrong. The damage comes from install scripts: npm runs ",[117,134,135],{},"preinstall"," and ",[117,138,139],{},"postinstall"," hooks the moment a package is installed, so the attacker gets code execution on the laptop or the CI runner before anyone imports anything.",[10,142,143],{},"Install scripts are also what turn a single compromised package into a worm, as the npm incidents below show.",[94,145,147],{"id":146},"compromised-maintainers","Compromised maintainers",[10,149,150],{},"Here the package name is right, and so is the publisher account. The attacker has taken over the maintainer, through phishing, a stolen token or years of patient social engineering, and publishes a malicious version through the normal channel. OWASP calls this dependency hijacking.",[10,152,153,154,157,158,161,162,165,166,171],{},"In September 2025, the maintainer of ",[117,155,156],{},"chalk",", ",[117,159,160],{},"debug"," and other widely used npm packages was phished through an email from a lookalike ",[117,163,164],{},"npmjs.help"," domain, and malicious versions carrying a browser crypto stealer were published to npm (",[60,167,170],{"href":168,"rel":169},"https:\u002F\u002Fwww.theregister.com\u002F2025\u002F09\u002F08\u002Fdev_falls_for_phishing_email",[64],"The Register","). Nothing about the package name looked wrong.",[94,173,175],{"id":174},"compromised-build-systems-and-third-party-actions","Compromised build systems and third-party actions",[10,177,178],{},"The build hop runs code from many owners: the CI platform, the runner image, every third-party action or plugin a workflow calls, and every tool those actions download. Compromise any of them and your build runs the attacker's code with your secrets in memory.",[10,180,181,182,185],{},"Tags make this worse. A workflow that says ",[117,183,184],{},"uses: some\u002Faction@v4"," trusts whoever controls that tag today, and tags can be moved to point at a different commit.",[94,187,189],{"id":188},"artifact-tampering-between-build-and-deploy","Artifact tampering between build and deploy",[10,191,192],{},"Once an artifact leaves the build, it sits in caches, artifact stores and registries. If a low-trust job can write to a cache that a release job reads, or if anyone with registry write access can push a new image under an existing tag, production can end up running something the pipeline never built. OWASP lists this as CICD-SEC-9, Improper Artifact Integrity Validation.",[17,194,196],{"id":195},"real-supply-chain-attacks-and-what-each-one-broke","Real supply chain attacks and what each one broke",[94,198,200],{"id":199},"the-xz-utils-backdoor-cve-2024-3094","The xz-utils backdoor (CVE-2024-3094)",[10,202,203,204,209,210,215],{},"On 29 March 2024, Andres Freund ",[60,205,208],{"href":206,"rel":207},"https:\u002F\u002Fwww.openwall.com\u002Flists\u002Foss-security\u002F2024\u002F03\u002F29\u002F4",[64],"reported to oss-security"," that xz\u002Fliblzma versions 5.6.0 and 5.6.1 contained a backdoor. He found it because SSH logins on a Debian sid machine were using unusual CPU and producing valgrind errors. CISA ",[60,211,214],{"href":212,"rel":213},"https:\u002F\u002Fwww.cisa.gov\u002Fnews-events\u002Falerts\u002F2024\u002F03\u002F29\u002Freported-supply-chain-compromise-affecting-xz-utils-data-compression-library-cve-2024-3094",[64],"issued an alert"," the same day.",[10,217,218],{},"Two details matter for builders:",[220,221,222,234],"ul",{},[28,223,224,227,228,233],{},[31,225,226],{},"The attacker was a maintainer."," Russ Cox's ",[60,229,232],{"href":230,"rel":231},"https:\u002F\u002Fresearch.swtch.com\u002Fxz-timeline",[64],"timeline"," traces the account \"Jia Tan\" from a harmless first patch in October 2021 to maintainer status in late 2022, helped along by other accounts pressuring the original maintainer. The malicious releases came through the project's normal process.",[28,235,236,239,240,243,244,248],{},[31,237,238],{},"The backdoor was not all in git."," Part of it sat in obfuscated test files in the repository, and the part that activated it, a modified ",[117,241,242],{},"build-to-host.m4",", existed only in the release tarballs. Freund's post notes that line \"is ",[245,246,247],"em",{},"not"," in the upstream source of build-to-host.\"",[10,250,251],{},"Hash pinning would not have helped here: the tarball was the official release, so its hash was the official hash. What helps is building from the tagged source rather than a hand-made tarball, and having provenance that records which source a release was built from, so the difference between \"what is in git\" and \"what was shipped\" is visible.",[94,253,255],{"id":254},"the-tj-actionschanged-files-compromise-cve-2025-30066","The tj-actions\u002Fchanged-files compromise (CVE-2025-30066)",[10,257,258,259,262,263,268,269,274],{},"In March 2025, the ",[117,260,261],{},"tj-actions\u002Fchanged-files"," GitHub Action, used in over 23,000 repositories, was compromised. According to the ",[60,264,267],{"href":265,"rel":266},"https:\u002F\u002Fgithub.com\u002Fadvisories\u002FGHSA-mrrh-fwg8-r2c3",[64],"GitHub advisory",", the attacker retroactively pointed existing version tags at a malicious commit that dumped secrets from the runner's memory into the build log. In public repositories those logs are readable by anyone. ",[60,270,273],{"href":271,"rel":272},"https:\u002F\u002Fwww.stepsecurity.io\u002Fblog\u002Fharden-runner-detection-tj-actions-changed-files-action-is-compromised",[64],"StepSecurity"," detected it on 14 March when a workflow called an unexpected network endpoint.",[10,276,277,282,283,286,287,292,293,296],{},[60,278,281],{"href":279,"rel":280},"https:\u002F\u002Fwww.cisa.gov\u002Fnews-events\u002Falerts\u002F2025\u002F03\u002F18\u002Fsupply-chain-compromise-third-party-tj-actionschanged-files-cve-2025-30066-and-reviewdogaction",[64],"CISA's alert"," links it to a second compromise, ",[117,284,285],{},"reviewdog\u002Faction-setup"," (CVE-2025-30154). Palo Alto's ",[60,288,291],{"href":289,"rel":290},"https:\u002F\u002Funit42.paloaltonetworks.com\u002Fgithub-actions-supply-chain-attack\u002F",[64],"Unit 42 analysis"," traces the chain further back: a token leaked from one project's ",[117,294,295],{},"pull_request_target"," workflow, used to move a tag in reviewdog, which then leaked the token of the bot account that maintained tj-actions. Unit 42 also found the attack started as a targeted attempt on a Coinbase repository, which failed.",[10,298,299],{},"This is the clearest case for pinning actions to a full commit SHA. Workflows that referenced a known-good SHA kept running the known-good code when the tags moved.",[94,301,303],{"id":302},"solarwinds-orion-and-the-sunspot-build-implant","SolarWinds Orion and the SUNSPOT build implant",[10,305,306,307,312,313,318,319,324],{},"In December 2020, FireEye (now Mandiant) ",[60,308,311],{"href":309,"rel":310},"https:\u002F\u002Fcloud.google.com\u002Fblog\u002Ftopics\u002Fthreat-intelligence\u002Fevasive-attacker-leverages-solarwinds-supply-chain-compromises-with-sunburst-backdoor",[64],"disclosed"," that a digitally signed SolarWinds Orion component carried a backdoor, SUNBURST. CISA issued ",[60,314,317],{"href":315,"rel":316},"https:\u002F\u002Fwww.cisa.gov\u002Fnews-events\u002Fdirectives\u002Fed-21-01-mitigate-solarwinds-orion-code-compromise",[64],"Emergency Directive 21-01"," on 13 December 2020, ordering federal agencies to disconnect affected Orion versions. In its ",[60,320,323],{"href":321,"rel":322},"https:\u002F\u002Fwww.sec.gov\u002FArchives\u002Fedgar\u002Fdata\u002F1739942\u002F000162828020017451\u002Fswi-20201214.htm",[64],"8-K filing",", SolarWinds said fewer than 18,000 customers may have installed an affected version.",[10,326,327,328,333,334,337,338,341],{},"The source repository was not where the backdoor lived. CrowdStrike's ",[60,329,332],{"href":330,"rel":331},"https:\u002F\u002Fwww.crowdstrike.com\u002Fen-us\u002Fblog\u002Fsunspot-malware-technical-analysis\u002F",[64],"analysis of SUNSPOT"," shows malware on the build server that watched for ",[117,335,336],{},"MsBuild.exe",", swapped one source file for a backdoored version during compilation, and restored the original afterwards. It wrapped the injected code in ",[117,339,340],{},"#pragma warning"," directives to keep it out of build logs.",[10,343,344],{},"The release was signed, and the signature was valid. Signing proves who produced an artifact, not that the build was clean. Defending against this class needs a build platform the build steps themselves cannot persistently change, which is what SLSA Build Level 3 asks for, and ideally an independent rebuild to compare against.",[94,346,348],{"id":347},"self-spreading-npm-worms-shai-hulud","Self-spreading npm worms: Shai-Hulud",[10,350,351,352,356,357,362],{},"In September 2025, a worm named Shai-Hulud spread through npm. ",[60,353,281],{"href":354,"rel":355},"https:\u002F\u002Fwww.cisa.gov\u002Fnews-events\u002Falerts\u002F2025\u002F09\u002F23\u002Fwidespread-supply-chain-compromise-impacting-npm-ecosystem",[64]," describes it authenticating to the registry as each compromised developer, injecting code into their other packages and publishing new versions. It compromised over 500 packages and stole GitHub tokens and cloud API keys. GitHub responded with a ",[60,358,361],{"href":359,"rel":360},"https:\u002F\u002Fgithub.blog\u002Fsecurity\u002Fsupply-chain-security\u002Four-plan-for-a-more-secure-npm-supply-chain\u002F",[64],"plan to tighten npm publishing",": trusted publishing, short-lived granular tokens and stronger 2FA.",[10,364,365,366,371,372,374],{},"A second wave, Shai-Hulud 2.0, appeared in November 2025. ",[60,367,370],{"href":368,"rel":369},"https:\u002F\u002Fsecuritylabs.datadoghq.com\u002Farticles\u002Fshai-hulud-2.0-npm-worm\u002F",[64],"Datadog Security Labs"," counted at least 796 backdoored packages. It ran from a ",[117,373,135],{}," script, stole cloud and CI credentials, and registered the victim machine as a self-hosted GitHub Actions runner the attacker could use later.",[10,376,377],{},"A worm like this needs three things: a long-lived publish token on the machine, an install script that runs automatically, and builds that pick up new versions without review. Remove any one and it stops spreading through you.",[10,379,380,381,385],{},"Our written lesson ",[60,382,384],{"href":383},"\u002Fcourses\u002Fdevsecops#syllabus","Case studies: xz-utils, the tj-actions compromise and self-spreading package worms"," walks each incident hop by hop against the pipeline model above.",[17,387,389],{"id":388},"controls-that-stop-software-supply-chain-attacks","Controls that stop software supply chain attacks",[10,391,392],{},"No single control covers every class. The table shows where each one bites.",[394,395,396,409],"table",{},[397,398,399],"thead",{},[400,401,402,406],"tr",{},[403,404,405],"th",{},"Control",[403,407,408],{},"Stops or limits",[410,411,412,421,429,437,445,453],"tbody",{},[400,413,414,418],{},[415,416,417],"td",{},"Lockfiles and hash pinning",[415,419,420],{},"Dependency confusion, typosquats and malicious new versions entering silently",[400,422,423,426],{},[415,424,425],{},"Actions pinned to a commit SHA",[415,427,428],{},"Moved tags on third-party actions",[400,430,431,434],{},[415,432,433],{},"SBOM",[415,435,436],{},"Not knowing what you shipped when the next advisory lands",[400,438,439,442],{},[415,440,441],{},"Signing and verify before deploy",[415,443,444],{},"Artifacts swapped or pushed outside the pipeline",[400,446,447,450],{},[415,448,449],{},"SLSA provenance",[415,451,452],{},"Artifacts built from the wrong source, workflow or builder",[400,454,455,458],{},[415,456,457],{},"Ephemeral, isolated runners",[415,459,460],{},"Persistence on the build machine, poisoned caches",[94,462,417],{"id":463},"lockfiles-and-hash-pinning",[10,465,466],{},"A lockfile records the exact version of every direct and transitive dependency. Hash pinning goes further: the build refuses any file whose hash does not match. Together they mean a new release on a public registry, malicious or not, cannot reach your build until someone updates the lockfile in a reviewed change.",[10,468,469,470,473,474,481,482,484,485,488],{},"For npm, install from the lockfile and fail if it does not match ",[117,471,472],{},"package.json",". ",[60,475,478],{"href":476,"rel":477},"https:\u002F\u002Fdocs.npmjs.com\u002Fcli\u002Fv10\u002Fcommands\u002Fnpm-ci",[64],[117,479,480],{},"npm ci"," \"will never write to ",[117,483,472],{}," or any of the package-locks\". Adding ",[117,486,487],{},"--ignore-scripts"," stops install hooks from running, though some packages with native builds need their scripts, so test before enforcing it everywhere.",[490,491,496],"pre",{"className":492,"code":493,"language":494,"meta":495,"style":495},"language-bash shiki shiki-themes github-dark","npm ci --ignore-scripts\n","bash","",[117,497,498],{"__ignoreMap":495},[499,500,503,507,511],"span",{"class":501,"line":502},"line",1,[499,504,506],{"class":505},"svObZ","npm",[499,508,510],{"class":509},"sU2Wk"," ci",[499,512,514],{"class":513},"sDLfK"," --ignore-scripts\n",[10,516,517,518,523,524,527],{},"For pip, ",[60,519,522],{"href":520,"rel":521},"https:\u002F\u002Fpip.pypa.io\u002Fen\u002Fstable\u002Ftopics\u002Fsecure-installs\u002F",[64],"hash-checking mode"," requires every requirement to be pinned with ",[117,525,526],{},"=="," and every dependency to carry a hash:",[490,529,534],{"className":530,"code":532,"language":533,"meta":495},[531],"language-text","# requirements.txt\nrequests==2.32.3 \\\n    --hash=sha256:\u003Chash of the published file>\n","text",[117,535,532],{"__ignoreMap":495},[490,537,539],{"className":492,"code":538,"language":494,"meta":495,"style":495},"pip install --require-hashes -r requirements.txt\n",[117,540,541],{"__ignoreMap":495},[499,542,543,546,549,552,555],{"class":501,"line":502},[499,544,545],{"class":505},"pip",[499,547,548],{"class":509}," install",[499,550,551],{"class":513}," --require-hashes",[499,553,554],{"class":513}," -r",[499,556,557],{"class":509}," requirements.txt\n",[10,559,560],{},"Lockfiles do not help if the version you locked was already malicious, as with xz-utils. They do turn \"the build quietly picked up something new\" into \"a pull request changed a hash\", which is a review you can do.",[94,562,564],{"id":563},"pin-third-party-actions-to-a-full-commit-sha","Pin third-party actions to a full commit SHA",[10,566,567,568,573],{},"GitHub's ",[60,569,572],{"href":570,"rel":571},"https:\u002F\u002Fdocs.github.com\u002Fen\u002Factions\u002Freference\u002Fsecurity\u002Fsecure-use",[64],"secure use reference"," says to pin actions to a full-length commit SHA, and to check the SHA comes from the action's own repository rather than a fork. A tag can be moved; a commit SHA cannot.",[490,575,579],{"className":576,"code":577,"language":578,"meta":495,"style":495},"language-yaml shiki shiki-themes github-dark","steps:\n  # Pin to the full 40-character commit SHA, keep the tag as a comment\n  - uses: actions\u002Fcheckout@\u003Cfull commit SHA>  # v4\n","yaml",[117,580,581,591,598],{"__ignoreMap":495},[499,582,583,587],{"class":501,"line":502},[499,584,586],{"class":585},"s4JwU","steps",[499,588,590],{"class":589},"s95oV",":\n",[499,592,594],{"class":501,"line":593},2,[499,595,597],{"class":596},"sAwPA","  # Pin to the full 40-character commit SHA, keep the tag as a comment\n",[499,599,601,604,607,610,613],{"class":501,"line":600},3,[499,602,603],{"class":589},"  - ",[499,605,606],{"class":585},"uses",[499,608,609],{"class":589},": ",[499,611,612],{"class":509},"actions\u002Fcheckout@\u003Cfull commit SHA>",[499,614,615],{"class":596},"  # v4\n",[10,617,618],{},"The same page now describes workflow dependency lockfiles, which record the exact commit for every action a workflow depends on, including transitive ones. Either way, the rule is the same: the code your build runs should be named by content, not by a label someone else controls. Dependabot and Renovate can keep pinned SHAs up to date so pinning does not freeze you on old versions.",[94,620,622],{"id":621},"sbom-a-bill-of-materials-for-every-release","SBOM: a bill of materials for every release",[10,624,625,626,631,632,637],{},"A software bill of materials lists every component in an artifact. CISA ",[60,627,630],{"href":628,"rel":629},"https:\u002F\u002Fwww.cisa.gov\u002Fsbom",[64],"describes it"," as \"a nested inventory, a list of ingredients that make up software components.\" The NTIA published ",[60,633,636],{"href":634,"rel":635},"https:\u002F\u002Fwww.ntia.gov\u002Freport\u002F2021\u002Fminimum-elements-software-bill-materials-sbom",[64],"minimum elements"," in July 2021 under Executive Order 14028, and CISA has since updated them.",[10,639,640],{},"An SBOM does not stop an attack. It answers the first question of every incident: \"do we ship the affected version, and where?\" With an SBOM stored for every release, that becomes a query instead of a week of digging through images. Generate it in the pipeline (Syft writes CycloneDX and SPDX), store it next to the artifact, and attach it as a signed attestation so it cannot be swapped.",[94,642,644],{"id":643},"sign-artifacts-and-verify-before-deploy","Sign artifacts and verify before deploy",[10,646,647,648,653],{},"Signing only helps if something checks the signature, and that check has to happen at deploy time, not as a step people can skip. With ",[60,649,652],{"href":650,"rel":651},"https:\u002F\u002Fdocs.sigstore.dev\u002Fcosign\u002Fverifying\u002Fverify\u002F",[64],"cosign",", a deploy step verifies the image digest against your public key:",[490,655,657],{"className":492,"code":656,"language":494,"meta":495,"style":495},"cosign verify --key cosign.pub registry.example.com\u002Facme\u002Fapp@sha256:\u003Cdigest>\n",[117,658,659],{"__ignoreMap":495},[499,660,661,663,666,669,672,675,679,682,685],{"class":501,"line":502},[499,662,652],{"class":505},[499,664,665],{"class":509}," verify",[499,667,668],{"class":513}," --key",[499,670,671],{"class":509}," cosign.pub",[499,673,674],{"class":509}," registry.example.com\u002Facme\u002Fapp@sha256:",[499,676,678],{"class":677},"snl16","\u003C",[499,680,681],{"class":509},"diges",[499,683,684],{"class":589},"t",[499,686,687],{"class":677},">\n",[10,689,690],{},"With keyless signing, the CI job's OIDC identity replaces the long-lived key, and you verify the identity of the workflow that signed it:",[490,692,694],{"className":492,"code":693,"language":494,"meta":495,"style":495},"cosign verify \\\n  --certificate-identity-regexp '^https:\u002F\u002Fgithub\\.com\u002Facme\u002Fapp\u002F\\.github\u002Fworkflows\u002Frelease\\.yml@refs\u002Fheads\u002Fmain$' \\\n  --certificate-oidc-issuer https:\u002F\u002Ftoken.actions.githubusercontent.com \\\n  registry.example.com\u002Facme\u002Fapp@sha256:\u003Cdigest>\n",[117,695,696,705,715,725],{"__ignoreMap":495},[499,697,698,700,702],{"class":501,"line":502},[499,699,652],{"class":505},[499,701,665],{"class":509},[499,703,704],{"class":513}," \\\n",[499,706,707,710,713],{"class":501,"line":593},[499,708,709],{"class":513},"  --certificate-identity-regexp",[499,711,712],{"class":509}," '^https:\u002F\u002Fgithub\\.com\u002Facme\u002Fapp\u002F\\.github\u002Fworkflows\u002Frelease\\.yml@refs\u002Fheads\u002Fmain$'",[499,714,704],{"class":513},[499,716,717,720,723],{"class":501,"line":600},[499,718,719],{"class":513},"  --certificate-oidc-issuer",[499,721,722],{"class":509}," https:\u002F\u002Ftoken.actions.githubusercontent.com",[499,724,704],{"class":513},[499,726,728,731,733,735,737],{"class":501,"line":727},4,[499,729,730],{"class":509},"  registry.example.com\u002Facme\u002Fapp@sha256:",[499,732,678],{"class":677},[499,734,681],{"class":509},[499,736,684],{"class":589},[499,738,687],{"class":677},[10,740,741],{},"Verify by digest, not by tag. On Kubernetes, move the check into an admission policy so the cluster itself refuses unsigned images. Remember SolarWinds, though: a signature on a tampered build is still a valid signature. Signing protects the hop after the build, not the build itself.",[94,743,745],{"id":744},"slsa-build-levels-and-provenance","SLSA build levels and provenance",[10,747,748,753],{},[60,749,752],{"href":750,"rel":751},"https:\u002F\u002Fslsa.dev\u002Fspec\u002Flatest\u002Fbuild-track-basics",[64],"SLSA"," (Supply-chain Levels for Software Artifacts, currently v1.2) defines build levels that describe how much you can trust an artifact's origin:",[220,755,756,762,768],{},[28,757,758,761],{},[31,759,760],{},"Build L1, provenance exists."," The package has provenance showing how it was built. Useful against mistakes, but easy to forge.",[28,763,764,767],{},[31,765,766],{},"Build L2, hosted build platform."," Provenance is generated and signed by a hosted build platform. This \"prevents tampering after the build through digital signatures.\"",[28,769,770,773],{},[31,771,772],{},"Build L3, hardened builds."," The build platform isolates builds from each other and keeps signing material away from user-defined build steps. Forging provenance now requires exploiting a vulnerability in the platform.",[10,775,776,781],{},[60,777,780],{"href":778,"rel":779},"https:\u002F\u002Fslsa.dev\u002Fspec\u002Flatest\u002Fbuild-provenance",[64],"Provenance"," is an in-toto attestation that records the builder, the build type, the external parameters such as repository, ref and workflow, and the resolved dependencies. At deploy time you verify it: was this artifact built by our builder, from our repository, on the main branch, by the release workflow? An artifact built on a laptop, or from a fork, fails that check even if someone managed to sign it.",[94,783,457],{"id":784},"ephemeral-isolated-runners",[10,786,787,788,791],{},"A runner that is reused between jobs is a place to leave things behind: a modified tool on the ",[117,789,790],{},"PATH",", a poisoned cache, a process that waits for the next job's secrets. GitHub's guidance is that self-hosted runners \"should almost never be used for public repositories\" and that they \"can be persistently compromised by untrusted code in a workflow\". It recommends just-in-time runners that perform at most one job before they are removed.",[10,793,794],{},"Give every job a fresh, isolated environment that is destroyed when the job ends, keep caches per trust level so a pull request job cannot write what a release job reads, and restrict runner egress to the hosts a build actually needs. The tj-actions compromise was caught because a build called a host it never normally calls.",[17,796,798],{"id":797},"practise-each-attack-and-control","Practise each attack and control",[10,800,801,802,806],{},"Reading about a moved tag is one thing; watching your own pinned workflow ignore it is another. Each of these is a hands-on lab in our course ",[60,803,805],{"href":804},"\u002Fcourses\u002Fdevsecops","DevSecOps: CI\u002FCD Pipeline Security",", run in the browser against a real Git server, CI runner, registry and package index:",[394,808,809,819],{},[397,810,811],{},[400,812,813,816],{},[403,814,815],{},"Topic",[403,817,818],{},"Lab",[410,820,821,831,841,852,863,874,885,895,905,915,926],{},[400,822,823,825],{},[415,824,97],{},[415,826,827],{},[60,828,830],{"href":829},"\u002Fcourses\u002Fdevsecops\u002Flabs\u002Fdependency-confusion-against-a-private-package-index","Dependency confusion against a private package index",[400,832,833,835],{},[415,834,129],{},[415,836,837],{},[60,838,840],{"href":839},"\u002Fcourses\u002Fdevsecops\u002Flabs\u002Ftyposquatting-and-install-scripts-that-run-on-install","Typosquatting and install scripts that run on install",[400,842,843,846],{},[415,844,845],{},"Lockfiles, hash pinning, pinned actions",[415,847,848],{},[60,849,851],{"href":850},"\u002Fcourses\u002Fdevsecops\u002Flabs\u002Flockfiles-hash-pinning-and-pinning-third-party-actions","Lockfiles, hash pinning and pinning third-party actions to a commit",[400,853,854,857],{},[415,855,856],{},"SBOM and scanning",[415,858,859],{},[60,860,862],{"href":861},"\u002Fcourses\u002Fdevsecops\u002Flabs\u002Fbill-of-materials-vulnerability-scanning-and-deciding-what","Bill of materials, vulnerability scanning and deciding what actually blocks a release",[400,864,865,868],{},[415,866,867],{},"Cache and artifact tampering",[415,869,870],{},[60,871,873],{"href":872},"\u002Fcourses\u002Fdevsecops\u002Flabs\u002Fpoison-the-build-cache-and-a-shared-artifact","Poison the build cache and a shared artifact",[400,875,876,879],{},[415,877,878],{},"Runner persistence",[415,880,881],{},[60,882,884],{"href":883},"\u002Fcourses\u002Fdevsecops\u002Flabs\u002Fpersist-on-a-self-hosted-runner-and-wait","Persist on a self-hosted runner and wait for the next job",[400,886,887,890],{},[415,888,889],{},"Ephemeral runners",[415,891,892],{},[60,893,457],{"href":894},"\u002Fcourses\u002Fdevsecops\u002Flabs\u002Fephemeral-isolated-runners",[400,896,897,899],{},[415,898,441],{},[415,900,901],{},[60,902,904],{"href":903},"\u002Fcourses\u002Fdevsecops\u002Flabs\u002Fsign-images-and-verify-before-deploy-with-cosign","Sign images and verify before deploy with cosign",[400,906,907,909],{},[415,908,449],{},[415,910,911],{},[60,912,914],{"href":913},"\u002Fcourses\u002Fdevsecops\u002Flabs\u002Fprovenance-attestations-prove-which-pipeline-built-this-artifact","Provenance attestations: prove which pipeline built this artifact",[400,916,917,920],{},[415,918,919],{},"Keyless signing",[415,921,922],{},[60,923,925],{"href":924},"\u002Fcourses\u002Fdevsecops\u002Flabs\u002Fkeyless-signing-with-a-local-sigstore-stack","Keyless signing with a local Sigstore stack",[400,927,928,931],{},[415,929,930],{},"Admission control",[415,932,933],{},[60,934,936],{"href":935},"\u002Fcourses\u002Fdevsecops\u002Flabs\u002Fadmit-only-signed-images-on-a-single-node","Admit only signed images on a single-node Kubernetes cluster",[10,938,939],{},"Every defence lab ends the same way: you replay the attack and watch it fail.",[10,941,942,943,947],{},"If you want a list to work through on your own pipeline first, the ",[60,944,946],{"href":945},"\u002Fchecklist","CI\u002FCD pipeline hardening checklist"," maps these controls to the OWASP CI\u002FCD risks.",[949,950,951],"style",{},"html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html pre.shiki code .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .s4JwU, html code.shiki .s4JwU{--shiki-default:#85E89D}html pre.shiki code .s95oV, html code.shiki .s95oV{--shiki-default:#E1E4E8}html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}html pre.shiki code .snl16, html code.shiki .snl16{--shiki-default:#F97583}",{"title":495,"searchDepth":593,"depth":593,"links":953},[954,955,962,968,976],{"id":19,"depth":593,"text":20},{"id":82,"depth":593,"text":83,"children":956},[957,958,959,960,961],{"id":96,"depth":600,"text":97},{"id":128,"depth":600,"text":129},{"id":146,"depth":600,"text":147},{"id":174,"depth":600,"text":175},{"id":188,"depth":600,"text":189},{"id":195,"depth":593,"text":196,"children":963},[964,965,966,967],{"id":199,"depth":600,"text":200},{"id":254,"depth":600,"text":255},{"id":302,"depth":600,"text":303},{"id":347,"depth":600,"text":348},{"id":388,"depth":593,"text":389,"children":969},[970,971,972,973,974,975],{"id":463,"depth":600,"text":417},{"id":563,"depth":600,"text":564},{"id":621,"depth":600,"text":622},{"id":643,"depth":600,"text":644},{"id":744,"depth":600,"text":745},{"id":784,"depth":600,"text":457},{"id":797,"depth":593,"text":798},"supply-chain","2026-11-26","How software supply chain attacks work, from dependency confusion to tampered builds, what xz-utils and tj-actions taught, and the controls that stop them.",false,"md","software supply chain security",{},true,"\u002Fblog\u002Fsoftware-supply-chain-attacks",{"title":5,"description":979},"blog\u002Fsoftware-supply-chain-attacks","kjN0t9gjV4bixCnoRMOFDaKf25q40zemAIWJzBCNTcI",1795688863060,"486f93ba-69c2-419b-a828-addbe3303942"]