Skip to content

Latest commit

 

History

History
 
 

whitesource

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
title layout sidebar permalink folder
Managing Open-source security and license with WhiteSource
page
vsts2
/labs/vstsextend/whitesource/
/labs/vstsextend/whitesource/

Overview

WhiteSource{:target="_blank"} is the leader in continuous open source software security and compliance management. WhiteSource integrates into your build process, irrespective of your programming languages, build tools, or development environments. It works automatically, continuously, and silently in the background, checking the security, licensing, and quality of your open source components against WhiteSource constantly-updated definitive database of open source repositories.

WhiteSource provides WhiteSource Bolt, a lightweight open source security and management solution developed specifically for integration with Azure DevOps and Azure DevOps Server. It works per project and does not offer real-time alert capabilities like the Full platform which is generally recommended for larger development teams, wanting to automate their open source management throughout the entire software development lifecycle (from the repositories to post-deployment stages) and across all projects and products.

What's covered in this lab

This lab shows how you can use WhiteSource Bolt with Azure DevOps to automatically detect alerts on vulnerable open source components, outdated libraries, and license compliance issues in your code. You will be using WebGoat, a deliberately insecure web application, maintained by OWASP designed to teach web application security lessons.

Azure DevOps integration with WhiteSource Bolt will enable you to:

  1. Detect and remedy vulnerable open source components.
  2. Generate comprehensive open source inventory reports per project or build.
  3. Enforce open source license compliance, including dependencies’ licenses.
  4. Identify outdated open source libraries with recommendations to update.

Before you begin

  1. Refer the Getting Started page before you follow the exercises.

  2. Use Azure DevOps Demo Generator{:target="_blank"} to provision the WhiteSource project on your Azure DevOps Organization.

Exercise 1: Activate WhiteSource Bolt

In your Azure DevOps Project, under Pipelines section, go to White Source Bolt tab, provide your Work Email, Company Name and click Get Started button to start using the Free version.

Dev_Essentials

Upon activation, the below message is displayed.

14daystrial

Exercise 2: Trigger a build

You have a Java code provisioned by the Azure DevOps demo generator. You will use WhiteSource Bolt extension to check the vulnerable components present in this code.

  1. Go to Builds section under Pipelines tab, select the build definition WhiteSourceBolt and click on Queue to trigger a build.

    build-def

  2. To view the build in progress status, click on ellipsis and select View build results.

    inprogress_build

    queue-build

  3. While the build is in progress, let's explore the build definition. The tasks that are used in the build definition are listed in the table below.

    Tasks Usage
    npm npm Installs and publishes npm packages required for the build
    maven Maven builds Java code with the provided pom xml file
    whitesourcebolt WhiteSource Bolt scans the code in the provided working directory/root directory to detect security vulnerabilities, problematic open source licenses
    copy-files Copy Files copies the resulting JAR files from the source to the destination folder using match patterns
    publish-build-artifacts Publish Build Artifacts publishes the artifacts produced by the build
  4. Once the build is completed, you will see the summary which shows Test results, Build artifacts etc. as shown below.

    build_summary

  5. Navigate to White Source Bolt tab under Pipelines section and wait for the report generation of the completed build to see the vulnerability report.

    report

Exercise 3: Analyze Reports

WhiteSource bolt automatically detects OpenSource components in the software including transitive dependencies and their respective licenses.

Security Dashboard

The security dashboard shows the vulnerability of the build. This report shows the list of all vulnerable open source components with Vulnerability Score, Vulnerable Libraries, Severity Distribution.

Security

You can see the opensource license distribution and a detailed view of all components and links to their metadata and licensed references.

Outdated Libraries

WhiteSource Bolt also tracks outdated libraries in the project, getting all the detailed information and links to newer versions and recommendations.

outdatedlibraries

Summary

With Azure DevOps and WhiteSource Bolt integration, you can shift-left your open source management. The integration allows you to have alerts in real time, on vulnerabilities and other issues to help you take immediate action.