DevOps.com

Where the world meets DevOps

  • Latest
    • Articles
    • Features
    • Most Read
    • News
    • News Releases
  • Topics
    • AI
    • Continuous Delivery
    • Continuous Testing
    • Cloud
    • Culture
    • DevSecOps
    • Enterprise DevOps
    • Leadership Suite
    • DevOps Practice
    • ROELBOB
    • DevOps Toolbox
    • IT as Code
  • DevOps Chats
  • Webinars
    • Upcoming
    • On-Demand Webinars
  • Library
  • Events
    • Virtual Summits
    • Conferences
  • Sponsored Communities
    • AWS Community Hub
    • CloudBees
    • IT as Code
    • Perforce DevSecOps
    • Rocket on DevOps.com
  • Related Sites
    • MediaOps
    • Container Journal
    • Security Boulevard
    • SweetCode.io
    • Digital Anarchist
    • DevOps TV on YouTube
    • DevOps Chat on SoundCloud
    • DevOps Connect
    • DevOps Dozen
  • Media Kit
  • Follow Us
    • Twitter
    • Google News
    • LinkedIn
    • Facebook
    • DevOps TV on YouTube
    • Email
  • AI
  • Cloud
  • Continuous Delivery
  • Continuous Testing
  • DevSecOps
  • Leadership Suite
  • Practices
  • ROELBOB
  • Low-Code/No-Code
  • IT as Code
  • More Topics
    • Application Performance Management/Monitoring
    • Culture
    • Enterprise DevOps

Home » Blogs » Developer’s Guide to Open Source Spring Cleaning

open source clean code

Developer’s Guide to Open Source Spring Cleaning

By: Robert Haynes on May 10, 2021 Leave a Comment

Spring is here, and after a year filled with record-setting digital transformation and its associated vulnerabilities, now is the right time to give the open source components in your codebase a refresh. For many development teams, today’s open source operations present a ‘mess’ that’s difficult to clean up; often, no one knows how many libraries, third-party components or modules are in use, not to mention their vulnerability status. This can create a significant source of risk and technical debt, making a spring cleaning that much more necessary.

Related Posts
    Related Categories
  • Blogs
  • DevOps and Open Technologies
  • DevOps Culture
  • DevSecOps
    Related Topics
  • codebase management
  • DevSecOps best practices
  • open source
Show more
Show less

The good news is that there are some simple strategies and tools that organizations can implement to jump-start the open source spring cleaning process. Once implemented, these systems will help ensure that your codebase is kept up-to-date and clear of vulnerabilities.

DevOpsConnect-RSAConference-Christopher-Krebs
Chris Krebs, former director of the U.S. Cybersecurity & Infrastructure Security Agency, discusses trying to uphold election integrity while battling disinformation during his fireside keynote chat at DevOpsConnect during @RSAC.

Organizing and Inventorying Open Source

When embarking on your open source clean-up mission, an ideal first step is to take stock of what’s there. Gathering a list of all the relevant libraries and packages in your codebase, along with version information and where in your code they are used, should be your top priority.

Decide to Keep or Toss

There is a strong possibility that some of the components in your library contain vulnerabilities. Be sure to use online databases for a published list of vulnerabilities to easily identify which items may be past their security sell-by date. Consider which ones to update and which to remove altogether if they’re riddled with unpatched flaws.

Polishing, Dusting and Refreshing

Polishing your physical surfaces not only makes them look shiny but also protects them from damage caused by light, water or other natural elements. Digitally polishing your open source security posture should involve keeping your code base defended in a similar manner, which means making repeat security assessments as frequently as possible while also keeping the inventory up-to-date so your teams are always aware of what’s being used.

As a last step in this process, consider dusting off any outdated or existing policy documentation. Give them a spring refresh, as well, so they can account for the changes not only in your open source database but for your entire development team. By ensuring developers are all on the same page regarding policies, responsibilities and best practices, you are effectively setting the stage for the next phase of operational success.

Keeping Your Open Source Code Clean

Sometimes a clean-up becomes more substantial than anticipated and requires some extra muscle. Implementing a dedicated tool to assist with this clean-up will not only make the process faster and easier, but it can also lead to fewer false positives and more accurate results based on your choice of reinforcements.

Software composition analysis (SCA) tools can parse your codebase and discover the libraries, modules or frameworks that are in use, and automatically compare all discovered components against a vulnerability database. Your SCA tool needs two key things to produce actionable results:

  • Access to a curated, high-fidelity vulnerability database. Your time is valuable. It’s well worth getting the most accurate data you can, despite what may be marked “vulnerable” or “safe” in the public domain.
  • Insight into your code. Just because you are using a vulnerable library does not automatically mean your code is vulnerable. What method in the library is vulnerable – are you even using it in your code? If you are using it, are you passing a static value or some input-derived variable? This is a function described as the ‘Exploitable Path’, and it is critical to focusing your clean-up efforts.

This process will provide a comprehensive list of the flawed modules in use and help you decide what needs to ultimately be kept and what needs immediate attention. With the right tools – and the right data – you can get an accurate, prioritized list of what open source components you should update or depreciate in your code.

While embedding an SCA tool into your development process and workflow alongside your other build and security-focused tools is essential to stop the accumulation of more risk and technical debt, maintaining the quality and freshness of the source vulnerability data is also extremely critical. While retaining an up-to-date list of vulnerable components seems like a full-time job, baking an open source hygiene process into your workflow can be a key component of your database’s overall maintenance.

Evaluating your open source components at build time – and then systematically scheduling reassessment scans to catch newly discovered vulnerabilities in previously ‘safe’ libraries – can bake an open source hygiene process into the developer workflow. This will serve to extend the “spring cleaning” mentality to a year-round endeavor. With the threat landscape continuing to rapidly evolve and vulnerabilities rising by the hour, implementing these simple practices could have a long-lasting impact on your open source infrastructure as it stands today.

Filed Under: Blogs, DevOps and Open Technologies, DevOps Culture, DevSecOps Tagged With: codebase management, DevSecOps best practices, open source

Sponsored Content
Featured eBook
The Automated Enterprise

The Automated Enterprise

“The Automated Enterprise” e-book shows the important role IT automation plays in business today. Optimize resources and speed development with Red Hat® management solutions, powered by Red Hat Ansible® Automation. IT automation helps your business better serve your customers, so you can be successful as you: Optimize resources by automating ... Read More
« SAST, DAST, SCA: What’s Best For AppSec Testing?
ServiceNow to Acquire Lightstep, Combining Next-Generation Observability with the World’s Leading Enterprise Digital Workflow Platform »

TechStrong TV – Live

Watch latest episodes and shows
christopher-krebs-rsa-conference

Upcoming Webinars

Is IAST the Next Big Thing in AppSec?
Thursday, May 13, 2021 - 1:00 pm EDT
Branch Disrupting the Insurance Market with Tyk API Management and GraphQL
Thursday, May 13, 2021 - 3:00 pm EDT
Digital Transformation - Escaping the Event Horizon
Tuesday, May 18, 2021 - 11:00 am EDT

Top Stories of the Week

  • View DevOps.com Privacy Policy

Upcoming Webinars

Wed 12

How Worldpay Protects Cardholder Data with Sysdig & Red Hat OpenShift

Wed, May 12, 1:00 pm - 2:00 pm EDT
Thu 13

Is IAST the Next Big Thing in AppSec?

Thu, May 13, 1:00 pm - 2:00 pm EDT
Thu 13

Branch Disrupting the Insurance Market with Tyk API Management and GraphQL

Thu, May 13, 3:00 pm - 4:00 pm EDT

More Webinars

Past Webinars

Latest from DevOps.com

Vulcan Cyber Research Reveals Most Enterprise Cybersecurity Teams Lack the Ability to Remediate Risk
May 12, 2021 | DevOps.com
What Data Catalogs Don’t Reveal
May 12, 2021 | Shevek
Consider Telemetry When Rearchitecting Applications
May 12, 2021 | Stephen Withers
SecDevOps is the Solution to Cybersecurity
May 12, 2021 | Marc Hornbeek
Appian Extends Low-Code Approach to Aggregating Data
May 11, 2021 | Mike Vizard

Most Read on DevOps.com

Empowering Developers Through Lean Code
May 7, 2021 | Gleb Polyakov
The Basics of DevSecOps Adoption
May 7, 2021 | Pavan Belagatti
How IT Ops Can Exceed Service Level Objectives in Digital Tr...
May 7, 2021 | Isaac Sacolick
Seven Reasons You Shouldn’t Hire a DevOps Engineer
May 11, 2021 | Bill Doerrfeld
Why You Must Lead With AI
May 7, 2021 | Alyssa Rochwerger

On-Demand Webinars

DevOps.com Webinar ReplaysDevOps.com Webinar Replays

Download Free eBook

The State of the CI/CD/ARA Market: Convergence
https://library.devops.com/the-state-of-the-ci/cd/ara-market
  • Home
  • About DevOps.com
  • Meet our Authors
  • Write for DevOps.com
  • Media Kit
  • Sponsor Info
  • Copyright
  • TOS
  • Privacy Policy

© 2021 ·MediaOps Inc.All rights reserved.

Our website uses cookies. By continuing to browse the website you are agreeing to our use of cookies. For more information on how we use cookies and how you can disable them, please read our Privacy Policy.