Series 1: Open-Source Security Episode 2: Do You Have a Software Bill of Materials? “Oh, I didn’t realise we were exposed to as I didn’t think that application was using .” I often heard such comments during the initial stages of our application security uplift. There was a lack of visibility on what open-source components applications relied on. Developers were often surprised, and sometimes in disbelief, as most of these vulnerable software components weren’t listed as application dependencies; they were transitive dependencies. In this episode we're diving into a crucial topic: "Do You Have a Software Bill of Materials?" Get ready for an enlightening episode as we explore why SBOMs are essential in today's software landscape. The Visibility Problem The Open-Source Reality What is an SBOM? The Benefits of SBOMs Keeping SBOMs Up-to-Date Recent Developments in SBOM Adoption This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit appsecunlocked.substack.com
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00Welcome to AppSec Unlocked, the podcast that demystifies application security one episode at a time. My name is Edwin Kwan and I'm your host for today. We're diving into a crucial topic. Do you have a software build of materials? Get ready for an enlightening episode as we explore why SBOMs are essential in today's software landscape.
SPEAKER_00The visibility problem. Let's start with a scenario I've encountered far too often. Oh, I didn't realize we were exposed to this vulnerability as I didn't think that our application was using this open source component. Sounds familiar? During the early stages of many application security uplift projects, I've heard this phrase time and time again. It highlights a significant problem,
SPEAKER_00a lack of visibility into the open source components our applications rely on. Developers are often surprised and sometimes even in disbelief when they discover vulnerable components in their applications. Why? Because most of these problematic software components aren't listed as direct dependencies.
SPEAKER_00They are what we call transitive dependencies. Dependencies of dependencies lurking in the shadows of our codebase. Let me give you a real world example. Many years ago, I was working with a large financial institution. They pride themselves on their security practice. But when we ran a dependency analysis on one of their core applications,
SPEAKER_00we found it was using a version of Apache Struts. with a known critical vulnerability. The development team was shocked. They had no idea Struts was even in their application. It turned out to be a transitive dependency of another library they were using. This situation isn't unique. It's a common problem across the industry,
SPEAKER_00and it's one of the key reasons why we need software build of materials. The open source reality. Now, let's talk about the elephant in the room, or should I say the open source elephant. In the previous episode, we discussed how modern applications are predominantly composed of open source components. We're talking about a staggering 98%.
SPEAKER_00If you missed that episode, you can find the link in our show notes. But what does this 98% really mean in practice? Let's break it down. That application is made up of four different things. The first one is direct dependencies. These are the libraries and frameworks you explicitly include in your project. They might make up about 20 to 30% of your code base.
SPEAKER_00The second items are transitive dependencies. These are dependencies of your dependencies, and they often account for 60 to 70% of your code base. The third items are your core language libraries. These are the standard libraries that come with your programming language and they make up another five to 10%. And the last item is the custom code.
SPEAKER_00It's your own handwritten code. And in many modern applications, this is often just two to 5% of the total code base. Given this reality, it's clear that we need a way to keep track of all these dependencies for every application we build and maintain. And that's where we use the software build of Materials.
SPEAKER_00So what is an SBOM? Think of an SBOM as the ingredients list on the back of a food product. Just as that list tells you exactly what's in your food, an SBOM tells you exactly what's in your software. Here's a fun analogy. Imagine a bottle of purified water. You think it just contains water, right? But if it had the ingredients list like our software does,
SPEAKER_00you might be surprised at what else is in there. Our applications are a lot like bottles of water. There's often more in them than meets the eye. And a typical SBOM would include five items. First one is the component name, which is the name of each software component. You then have the version number. Next, you have the license information.
SPEAKER_00followed by the dependencies, which is the other components that that component relies on. And last you have a hash, which is a unique identifier for the exact versions of that component. What are the benefits of SBOMs? Now that we know what an SBOM is, let's talk about why it's so crucial. First, it helps with tracking open source usage.
SPEAKER_00SBOM provides a clear picture of what open source components your applications are using. This visibility is crucial for maintaining and updating your software effectively. Next, vulnerability assessments. They help you to quickly understand your organization's exposure to any newly discovered open source vulnerabilities. This is invaluable for your incident response team.
SPEAKER_00When the next big vulnerability like lock for shell hits, you know immediately if and where you're affected. Next is standardization. SBOMs enable your organization to standardize its open source usage. Instead of having multiple components that do similar things, you can make informed decisions to pick the best quality components. This not only improves security, but can also reduce maintenance overhead.
SPEAKER_00Next is compliance. Managing our software supply chain is so critical that it was explicitly mentioned in a White House executive order for improving cybersecurity. Many industries are starting to require SBOM as part of their compliance regulations. Next is faster development. With a clear understanding of what's in your software, you can make faster,
SPEAKER_00more informed decisions about updates and changes. And lastly, better procurement. When acquiring new software, you can request an SBOM to understand what you're really getting and assess any potential risks. Keeping SBOMs up to date. Having an SBOM is great, but it's only useful if it's current. Here are five key points to remember.
SPEAKER_00Number one, automate SBOM generation. The preferred method is to automate SBOM generation as part of your software development lifecycle, your SDLC. This ensures that your SBOM is always up to date with the latest changes. Number two, generate at the right stage. SBOMs should contain information about your production applications,
SPEAKER_00generating them during the release or deployment stages, not earlier in the process. This ensures that your SBOM reflects what's actually running in production. Number three, avoid repository-level generation. Some organizations generate SBOMs at the code repository level. This can lead to misleading information as the application running in production
SPEAKER_00might not always be the latest version in the repository. Number four, regular audits. Even with automation, it's a good idea to periodically audit your SBOMs to ensure they're accurate and complete. And the last one, number five, version control. Keep track of changes to your SBOM over time. This can help you understand how your dependencies have evolved and identify any potential issues.
SPEAKER_00Recent developments in SBOM adoption. The importance of SBOM has been gaining recognition across the industry and in government circles. Let's look at some recent developments. The first one is the executive order in May 2021, where the US government issued an executive order on improving the nation's cybersecurity. This order explicitly calls for the use of SBOM in federal software procurement.
SPEAKER_00Number two, the National Telecommunications and Information Administration has defined a minimum set of elements that should be included in an SBOM. This is helping to standardize SBOM formats across the industry. The next one is industry adoption. Major tech companies like Google, Microsoft, and IBM have been vocal about their support for SBOMs and are incorporating them
SPEAKER_00into their development practices. Number four, tools and standards. There's been a proliferation of tools for generating and managing SBOMs. as well as standards like SPDX and Cyclone DX for SBOM formats. So here are the key takeaways. As we wrap up, let's recap on the main points. Number one, every application should have a software bill of materials and SBOM.
SPEAKER_00Number two, SBOMs can help standardize open source component usage within your organization. Number three, they provide a quick way to identify your organization's exposure to open source vulnerabilities. Number four, Information in SBOMs must reflect applications running in production, not just what's in your code repository. Number five, automating SBOM generation and keeping them up to date is crucial.
SPEAKER_00And number six, SBOMs are becoming increasingly important for compliance and supply chain security. There you have it folks, a comprehensive look at software build of Materials. Remember, in the world of application security, knowledge is power. By implementing SBOMs, you're shining a light on the hidden components in your software and taking a crucial step towards better security.
SPEAKER_00Thank you for tuning in to AppSec Unlocked. This is your host, Edwin Kwan. And until next time, keep unlocking those AppSec mysteries.
Welcome to the last article in this series on Training & Awareness. We're going to finish off the season by looking ahead to the future of security training and awareness. Over the past eleven episodes, we've covered...
In this article we're looking at a challenge that's become increasingly critical: security training for remote teams. We'll explore how to build and maintain a strong security culture when your team is distributed...
In this article we'll be talking about cloud security awareness and exploring why traditional security thinking falls apart in the cloud, and how to build a new security mindset for the cloud era. THE CLOUD SECURITY...
Welcome to AppSec Unlocked. In this article we’ll look into Secure Development Lifecycle training, or SDL. We're going to explore how to build security into every phase of your development process - from initial...
Welcome to AppSec Unlocked. In this article we'll be diving deep into what many consider the most persistent security threat: social engineering. We'll explore why humans are often called the weakest link in security -...