Close Menu
  • Home
  • AI
  • Big Data
  • Cloud Computing
  • iOS Development
  • IoT
  • IT/ Cybersecurity
  • Tech
    • Nanotechnology
    • Green Technology
    • Apple
    • Software Development
    • Software Engineering

Subscribe to Updates

Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

    What's Hot

    Solution Validation Services Matter More Than Ever Before

    July 18, 2025

    iPhone 17 Pro may get anti-reflective display glass

    July 18, 2025

    Bridging the Digital Chasm: How Enterprises Conquer B2B Integration Roadblocks

    July 18, 2025
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    Big Tee Tech Hub
    • Home
    • AI
    • Big Data
    • Cloud Computing
    • iOS Development
    • IoT
    • IT/ Cybersecurity
    • Tech
      • Nanotechnology
      • Green Technology
      • Apple
      • Software Development
      • Software Engineering
    Big Tee Tech Hub
    Home»IT/ Cybersecurity»A library for Software Composition Analysis
    IT/ Cybersecurity

    A library for Software Composition Analysis

    big tee tech hubBy big tee tech hubJuly 7, 2025004 Mins Read
    Share Facebook Twitter Pinterest Copy Link LinkedIn Tumblr Email Telegram WhatsApp
    Follow Us
    Google News Flipboard
    A library for Software Composition Analysis
    Share
    Facebook Twitter LinkedIn Pinterest Email Copy Link


    In December 2022, we announced OSV-Scanner, a tool to enable developers to easily scan for vulnerabilities in their open source dependencies. Together with the open source community, we’ve continued to build this tool, adding remediation features, as well as expanding ecosystem support to 11 programming languages and 20 package manager formats. 

    Today, we’re excited to release OSV-SCALIBR (Software Composition Analysis LIBRary), an extensible library for SCA and file system scanning. OSV-SCALIBR combines Google’s internal vulnerability management expertise into one scanning library with significant new capabilities such as:

    • SCA for installed packages, standalone binaries, as well as source code

    • OSes package scanning on Linux (COS, Debian, Ubuntu, RHEL, and much more), Windows, and Mac

    • Artifact and lockfile scanning in major language ecosystems (Go, Java, Javascript, Python, Ruby, and much more)

    • Vulnerability scanning tools such as weak credential detectors for Linux, Windows, and Mac

    • SBOM generation in SPDX and CycloneDX, the two most popular document formats

    • Optimization for on-host scanning of resource constrained environments where performance and low resource consumption is critical

    OSV-SCALIBR is now the primary SCA engine used within Google for live hosts, code repos, and containers. It’s been used and tested extensively across many different products and internal tools to help generate SBOMs, find vulnerabilities, and help protect our users’ data at Google scale.

    We offer OSV-SCALIBR primarily as an open source Go library today, and we’re working on adding its new capabilities into OSV-Scanner as the primary CLI interface.

    Using OSV-SCALIBR as a library

    All of OSV-SCALIBR’s capabilities are modularized into plugins for software extraction and vulnerability detection which are very simple to expand.You can use OSV-SCALIBR as a library to:

    1.Generate SBOMs from the build artifacts and code repos on your live host:

    import (

     “context”

     “github.com/google/osv-scalibr”

     “github.com/google/osv-scalibr/converter”

     “github.com/google/osv-scalibr/extractor/filesystem/list”

     “github.com/google/osv-scalibr/fs”

     “github.com/google/osv-scalibr/plugin”

     spdx “github.com/spdx/tools-golang/spdx/v2/v2_3”

    )

    func GenSBOM(ctx context.Context) *spdx.Document {

     capab := &plugin.Capabilities{OS: plugin.OSLinux}

     cfg := &scalibr.ScanConfig{

       ScanRoots: fs.RealFSScanRoots(“/”),

       FilesystemExtractors: list.FromCapabilities(capab),

       Capabilities: capab,

     }

     result := scalibr.New().Scan(ctx, cfg)

     return converter.ToSPDX23(result, converter.SPDXConfig{})

    }

    2. Scan a git repo for SBOMs:

    Simply replace “/” with the path to your git repo. Also take a look at the various language extractors to enable for code scanning.

    3. Scan a remote container for SBOMs:

    Replace the scan config from the above code snippet with

    import (

     …

     “github.com/google/go-containerregistry/pkg/authn”

     “github.com/google/go-containerregistry/pkg/v1/remote”

     “github.com/google/osv-scalibr/artifact/image”

     …

    )

    …

    filesys, _ := image.NewFromRemoteName(

     “alpine:latest”,

     remote.WithAuthFromKeychain(authn.DefaultKeychain),

    )

    cfg := &scalibr.ScanConfig{

     ScanRoots: []*fs.ScanRoot{{FS: filesys}},

     …

    }

    4. Find vulnerabilities on your filesystem or a remote container:

    Extract the PURLs from the SCALIBR inventory results from the previous steps:

    import (

     …

     “github.com/google/osv-scalibr/converter”

     …

    )

    …

    result := scalibr.New().Scan(ctx, cfg)

    for _, i := range result.Inventories {

     fmt.Println(converter.ToPURL(i))

    }

    And send them to osv.dev, e.g.

    $ curl -d ‘{“package”: {“purl”: “pkg:npm/dojo@1.2.3”}}’ “https://api.osv.dev/v1/query”

    See the usage docs for more details.

    OSV-Scanner + OSV-SCALIBR

    Users looking for an out-of-the-box vulnerability scanning CLI tool should check out OSV-Scanner, which already provides comprehensive language package scanning capabilities using much of the same extraction as OSV-SCALIBR. 

    Some of OSV-SCALIBR’s capabilities are not yet available in OSV-Scanner, but we’re currently working on integrating OSV-SCALIBR more deeply into OSV-Scanner. This will make more and more of OSV-SCALIBR’s capabilities available in OSV-Scanner in the next few months, including installed package extraction, weak credentials scanning, SBOM generation, and more.

    Look out soon for an announcement of OSV-Scanner V2 with many of these new features available. OSV-Scanner will become the primary frontend to the OSV-SCALIBR library for users who require a CLI interface. Existing users of OSV-Scanner can continue to use the tool the same way, with backwards compatibility maintained for all existing use cases. 

    For installation and usage instructions, have a look at OSV-Scanner’s documentation here.


    What’s next

    In addition to making all of OSV-SCALIBR’s features available in OSV-Scanner, we’re also working on additional new capabilities. Here’s some of the things you can expect:

    • Support for more OS and language ecosystems, both for regular extraction and for Guided Remediation

    • Layer attribution and base image identification for container scanning

    • Reachability analysis to reduce false positive vulnerability matches

    • More vulnerability and misconfiguration detectors for Windows

    • More weak credentials detectors

    We hope that this library helps developers and organizations to secure their software and encourages the open source community to contribute back by sharing new plugins on top of OSV-SCALIBR.

    If you have any questions or if you would like to contribute, don’t hesitate to reach out to us at osv-discuss@google.com or by posting an issue in our issue tracker.



    Source link

    Analysis Composition library Software
    Follow on Google News Follow on Flipboard
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Copy Link
    tonirufai
    big tee tech hub
    • Website

    Related Posts

    Fake Android Money Transfer App Targeting Bengali-Speaking Users

    July 17, 2025

    DP World Evyap: Smart Port Connectivity and Revolutionizing the Future of Trade

    July 17, 2025

    Reflection, co-founded by ex-Google researchers, unveils Asimov, an AI agent that reads a company’s codebase, docs, and more to help software engineering teams (Will Knight/Wired)

    July 16, 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    Solution Validation Services Matter More Than Ever Before

    July 18, 2025

    iPhone 17 Pro may get anti-reflective display glass

    July 18, 2025

    Bridging the Digital Chasm: How Enterprises Conquer B2B Integration Roadblocks

    July 18, 2025

    Expert Generalists

    July 18, 2025
    Advertisement
    About Us
    About Us

    Welcome To big tee tech hub. Big tee tech hub is a Professional seo tools Platform. Here we will provide you only interesting content, which you will like very much. We’re dedicated to providing you the best of seo tools, with a focus on dependability and tools. We’re working to turn our passion for seo tools into a booming online website. We hope you enjoy our seo tools as much as we enjoy offering them to you.

    Don't Miss!

    Solution Validation Services Matter More Than Ever Before

    July 18, 2025

    iPhone 17 Pro may get anti-reflective display glass

    July 18, 2025

    Subscribe to Updates

    Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

      • About Us
      • Contact Us
      • Disclaimer
      • Privacy Policy
      • Terms and Conditions
      © 2025 bigteetechhub.All Right Reserved

      Type above and press Enter to search. Press Esc to cancel.