Beyond the Code / SBOM: Supply Chain Security

Bsides London 2023

09 December 2023

Beyond the Code / SBOM: Supply Chain Security

VIDEO

Slides

OUTLINE

Supply Chain security is the new buzzword of the town and everyone is gaga about it. After the executive order and SSDF / SLSA documents being released, every single vendor has added SBOM capabilities and declared the problem solved. The problem is its not solved, Supply chain security is not a new problem and sbom is not the final solution. This talk wants to throw lights on supply chain security overview and then address following points.

  1. How supply chain security is a age old concept.
  2. What has changed in last few year and how that affects this problem space
  3. At a broader level how SLSA / SSDF are trying to address the problem.
  4. What is still missing in market and what is needed to be done beyond buying tools.

We will start by exploring how software supply chain problems have existed in past already, We will then talk about sbom’s what they really are and what they can do. we then focus on the shortcomings of the formats and especially where gaps occur (for example the place to record which compiler version was used to compile the code). After we have looked at sbom we will explore different scenarios where current sbom would not have helped in any ways (this includes solarwind if you are wondering) We then explore how different bodies have attempted to tackle it from npm’s trying to isolate packages, to debian trying to control central repositories, pros and cons on each side. We will then focus on how paradigm shift such as IaC and provinence tools could be of help what they can do and can’t do. we will then conclude the talk around SSDF / SLSA as frameworks to start tackling the problems but also to give people a clear idea where tooling can help and where policies and process would be helpful.

This talk is especially useful for practitioners who want to understand what is going on and how to start looking at these frameworks to put some protection in the environment.

AI Generated Summary

AI Generated Content Disclaimer

Note: This summary is AI-generated and may contain inaccuracies, errors, or omissions. If you spot any issues, please contact the site owner for corrections. Errors or omissions are unintended.

This presentation at BSides London 2023 provides a comprehensive examination of software supply chain security and the role of the Software Bill of Materials (SBOM). The session traces the history of supply chain risks from a 1974 research paper through modern incidents like SolarWinds and CodeCov, critically evaluates what SBOMs can and cannot solve, compares centralized (vetted) versus decentralized (isolated) approaches to dependency management, and outlines actionable frameworks (SLSA, NIST SSDF, CSF) and tooling for producers and consumers of software. A recurring theme from the live talk: we end up solving problems that we created a few years or months ago, an industry pattern of reactive solutions to self-inflicted complexity.

Summary

The talk frames supply chain security as trust in the entire process from raw materials to end user, mapping four primary entities (producers, consumers, infrastructure providers, end users) and six building blocks from developers and repositories through CI/CD systems, containers, dependencies, and service providers, each a potential attack surface.

The history is emphatic: this is not a new problem. A 1974 Air Force document discussed compiler backdoors, Ken Thompson’s 1984 “Reflections on Trusting Trust” showed a backdoored compiler, and OWASP has tracked the issue since 2004, evolving through “Using Known Vulnerable Components” to “Vulnerable and Outdated Components” (A06:2021). The pointed observation: vendors call it new because they finally have something to sell. What changed was the convergence of SolarWinds, CodeCov credentials leaked via a Docker image, and Colonial Pipeline, plus the US Executive Order that produced NIST SSDF and Google SLSA, and the buzzwords SBOM and provenance.

SBOM is a recipe book of ingredients: name, version, checksum, license information, and dependencies one level deep, serving inventory management on the principle that you cannot protect assets you do not know. 80% of typical application code is imported, yet organizations import 100% of a library to use 10% of its functionality. The limitations are blunt: no visibility into compilers, ML models, SaaS services, the CI/CD system that built the software, or operating systems, and no way to tell whether a vulnerable function is reachable in your code path. CycloneDX’s VEX targets that reachability gap, and SolarWinds happened because the CI system was compromised, which SBOM would not have prevented.

Centralized (vetted) models like Debian maintain packages with dedicated volunteers and push security fixes centrally but track a limited set and delay features; decentralized models like npm and Python venv give flexibility but no centralized security response, which matters in Log4Shell-type scenarios, and npm audit identifies vulnerabilities without saying what to do. Provenance is proof of authenticity: if the download link and its checksum share a domain, compromising it invalidates both, so true provenance needs a separate trusted third party for signing and storage. Frameworks covered: SLSA (which removed Level 4 reproducible builds as too ambitious and is nontransitive), NIST SSDF’s four pillars, and NIST CSF v2’s new Govern function, with tooling from OpenSSF Scorecard, Sigstore/Cosign, SafeDep Vet, and StackLock.

The Q&A layers prioritization: code coverage analysis, CVSS, EPSS, and KEV, with Semgrep determining whether a vulnerable function is actually called, and most real bugs sitting in 2nd/3rd level transitive dependencies. Three questions to ask SBOM vendors close the talk: what do I do with the SBOM, do you validate vulnerabilities or just spot them, and do you offer alternatives for vulnerable libraries.

Key Themes

Notable Points

Notable Quotes

“When a vendor says software supply chain is a very big problem, it’s a very new problem… it has existed for a very long time. It’s just that people didn’t have something to sell us, so they had something to talk about. So now when they have something that they can sell us, now they’re talking about it.” 7:08

“We end up solving problems that we created a few years or a few months ago.” 10:38

“If you don’t know your assets, you cannot protect them.” 17:35

“You’re leveraging a library for 10% of functionality, but you’re importing that library with 100% of its code.” 9:56

“Even if SBOM was there, even if provenance was set for SBOM files, SolarWinds could not have been prevented. SolarWinds hack happened because CI system got compromised.” 21:13

“Test coverage is never going to happen.” 16:01

“If their answer is you don’t need to do anything, this is all you needed, you need to just find your shoes and run from that place.” 40:42

“You can’t just tell the developer hey these are 2,000 vulnerabilities fix them all. They will ask for top 10 because their entity or their say mandate is not to fix bugs, their mandate is features.” 47:11