SSCI Explainer

Software Supply Chain Intelligence (SSCI) is Veracode's data on malicious open-source packages, available through an API. This page explains what's in it, how to get access, and how to make your first call. It's part of the Supply Chain hub.

Everything below comes from the Veracode docs. The pages are listed at the end.

What SSCI is

SSCI gives you a curated view of malware released across the open-source ecosystems Veracode monitors. Veracode's automated risk analysis platform finds the packages, and then a team of security researchers triages and reviews them.

You reach SSCI through the unified Veracode API, and it has two parts:

  • Threat feed: a paginated feed with a summary of every known malicious package Veracode has detected.
  • Reputation database: you send a list of package URLs (PURLs) and get back information on each package, including malware status, suspicious behavior, vulnerabilities, license data and package metadata.

The docs call these the threat feed and the reputation feed or database. "Threat feed" is one part of SSCI, not a separate product name.

Ways to use it

Based on what the two APIs do, some ways teams could use it:

  • Check a package's reputation before someone adds it to a project.
  • Pull the list of known malicious packages into your own tools, and compare it with what you have installed.
  • Look up several packages at once during an incident, by sending their PURLs in one request.

How to get access

To find out whether SSCI is available to your organization, or to get access for your API credentials, reach out to Veracode Customer Support or the Veracode contact at your company.

Your first calls

The SSCI API accepts Veracode HMAC or OAuth 2.0 client credentials (Set up API authentication). For OAuth, the token endpoint is https://api.veracode.com/api/authn/v2/oauth2/token.

The docs give these examples using HTTPie with OAuth 2.0. Store your API client ID, client secret and token URL in environment variables. --auth takes the client ID and client secret joined by a colon.

Get the threat feed (GET https://api.veracode.com/ssci/v1/threats)

http --auth-type=oauth2-client-credentials-flow --auth="$VERACODE_CLIENT_ID:$VERACODE_CLIENT_SECRET" --token-endpoint="$VERACODE_TOKEN_URL" --token-request-type=basic GET https://api.veracode.com/ssci/v1/threats

Look up packages in the reputation database (POST https://api.veracode.com/ssci/v1/packages)

http --auth-type=oauth2-client-credentials-flow --auth="$VERACODE_CLIENT_ID:$VERACODE_CLIENT_SECRET" --token-endpoint="$VERACODE_TOKEN_URL" --token-request-type=basic POST https://api.veracode.com/ssci/v1/packages Content-Type:application/json purls:='["pkg:npm/brace-expansion@5.0.12"]'

To look up several packages in one request, put more than one PURL in the purls array.

Using HMAC instead? Install the signing library with pip install veracode-api-signing, then call the API with no --auth option:

http --auth-type=veracode_hmac "https://api.veracode.com/ssci/v1/threats"

Reading the results

The docs page doesn't list the response fields. For fields, pagination and the full request format, use the API specification on SwaggerHub: veracode-threat-feed 0.29.1.

Docs pages used

Using SSCI already? Tell us in the Community what you've built with it.