Series 1: Open-Source Security Episode 3: How Secure Are Your Open Source Software Get ready for an eye-opening episode that could change the way you think about the building blocks of modern applications. The Open-Source Paradox The Security Controls Gap The Open-Source Enigma The Due Diligence Disparity The Cost of Insecure Open Source Best Practices for Secure Open-Source Usage 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. And we're diving into a critical question. How secure is open source software? Get ready for an eye-opening episode that could change the way you think about the building blocks of modern application. The open source paradox.
SPEAKER_00Open source software is the backbone of modern applications. From web frameworks to encryption tools, these readily available components offer developers a wealth of functionality and accelerate development cycles. But as we've discussed in previous episodes, you're probably using more open source than you realize. And that convenience comes with hidden costs and potential security vulnerabilities.
SPEAKER_00If you haven't checked out our episodes on you're using more open source than you realize and why your application needs a software bill of materials, highly recommend giving those a listen. You can find the links in our show notes. The security controls gap. Let's start by looking at the security controls most organizations have in place for their in-house code.
SPEAKER_00It's typically a multi-layered approach. Layer one, you've got the secure development environment. This includes endpoint protection, two-factor authentication, and restricted administrative privileges. Next, you've got developer training. Organizations invest in training developers on secure coding practices like the OWASP Top 10. Now, next.
SPEAKER_00Next, you have rigorous testing. This includes unit testing, integrated and regression testing, and practices like test-driven development, TDD. And lastly, you've got change control, which includes code reviews and mandatory pull requests to help catch security flaws before the code hits production. These controls create a secure development environment for in-house code.
SPEAKER_00But does open source software benefit from the same level of security? The open source enigma. The open source community thrives on collaboration and transparency. However, this very nature presents some unique security challenges. The first one is variable security practices. Open source projects often lack the resources to implement rigorous security
SPEAKER_00practices found in commercial environments. Second challenge is volunteer dependence. Security expertise within open source projects can be scarce, with vulnerabilities relying on the community to identify and patch. And the last one, motivation mismatch. The activities required to create secure projects, such as careful testing and code reviews,
SPEAKER_00might not be as exciting or motivating to volunteers. Let me share some sobering statistics from the State of Software Supply Chain report. The first one is that only 19% of open source projects perform code reviews. You've heard it, 19%. And the other, a staggering 18.6% of open source projects were abandoned last year.
SPEAKER_00These factors make it difficult to guarantee a consistent level of security in open source software. The due diligence disparity. Now let's talk about the elephant in the room. The disparity in due diligence between procured commercial software and open source components. When organizations buy commercial software, they typically do a few things.
SPEAKER_00One, they send out security questionnaires. Two, they might conduct penetration testing. Three, they scrutinize vendor security practices. And four, they perform a TARA contract review. But when it comes to open source software, the approach is often much less stringent. many organizations simply download open source components without thoroughly investigating their security posture.
SPEAKER_00relying on the software's popularity as a proxy for security. There's also the challenge of version control. Keeping track of the latest secure versions of open source software can be a complex task, often resulting in outdated and vulnerable versions lingering in projects. This disparity in due diligence exposes organizations to significant security risks
SPEAKER_00when using open source software. The cause of insecure open source. Let's take a moment to reflect on some major security breaches caused by vulnerabilities in open source libraries. First, you had the Equifax breach in 2017, where a critical vulnerability in the Apache Struts framework remained unpatched, allowing attackers to steal personal information from over 143 million people.
SPEAKER_00Next, you got the SolarWinds supply chain attacks in 2020, where attackers compromised the popular SolarWinds Orion library, injecting malicious code that infiltrated numerous government agencies and private companies. And you've got the Spring for Shell vulnerability in 2022. And this is a critical vulnerability in the widely used Spring Core Java framework,
SPEAKER_00which expose applications to remote code execution attacks. These breaches highlight the potential devastating consequences of using insecure open source libraries. Best practices for secure open source usage. So how can we harness the power of open source while mitigating the risks? Here are some best practices. Number one, implement a software bill of materials or SBOMs so that you can keep track of all
SPEAKER_00open source components in your applications. Number two, use a software composition analysis tool or an SCA, as these can help identify known vulnerabilities in your open source dependencies. Number three, establish an open source policy. Define guidelines for selecting, using, and maintaining open source components. number four contribute back to the community by actively participating in open
SPEAKER_00source projects you can help improve their security number five keep dependencies up to date Regularly update your open source components to ensure you have the latest security patch. And lastly, perform your own security assessment. Don't rely solely on the open source community. Conduct your own security reviews of critical components.
SPEAKER_00So how secure is open source software? The answer, as with many things in security, is it depends. Open source doesn't have to be a security gamble. With the right strategies and a proactive approach, it can be a powerful tool for building secure and innovative software. Remember, the key is awareness and active management. know what open source components you're using,
SPEAKER_00understand their security implications, and take steps to mitigate the risk. Thank you for tuning in to AppSec Unlock. This is your host, Edwin Kwan. And remember, in the world of application security, what you don't know can hurt you. Stay curious, stay vigilant, and keep unlocking those AppSec mysteries. Until next time.
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 -...