Supply-Chain Security

Introduction

A software "Supply Chain” can mean many different things, but in the context of Tutela we define “Supply Chain Security” to be those security checks that apply to different stages of software development. Currently these include:

  • Vulnerability checks for development dependencies

  • Vulnerability checks for containers (e.g. Docker containers)

Tutela supports the ingestion of any tool that outputs SBOM data in the CycloneDX JSON format

Examples

The below examples showcase how to leverage an SBOM scanner which outputs CycloneDX format to aggregate asset and vulnerability data into Tutela

We recommend Trivy, and all examples below assume Trivy is installed on the host running the scans https://github.com/aquasecurity/trivy

Java: Scanning a JAR file

trivy rootfs /tmp/demo.jar --format cyclonedx --scanners vuln -q | curl -H "X-Tutela-API: 123123" -H "Content-Type: application/json" -X POST --data-binary @- https://cs-vas-backend.cybersift.io/sbom/sbomSubmission

⚠️ Trial Users

trivy rootfs /tmp/demo.jar --format cyclonedx --scanners vuln -q | curl -H "X-Tutela-API: 123123" -H "Content-Type: application/json" -X POST --data-binary @- https://trial-backend.tutela.cybersift.io/sbom/sbomSubmission

Docker: Scanning a container

trivy image --scanners vuln --format cyclonedx -q alpine:3.15 | curl -H "X-Tutela-API: 123123" -H "Content-Type: application/json" -X POST --data-binary @- https://cs-vas-backend.cybersift.io/sbom/sbomSubmission

⚠️ Trial Users

trivy image --scanners vuln --format cyclonedx -q alpine:3.15 | curl -H "X-Tutela-API: 123123" -H "Content-Type: application/json" -X POST --data-binary @- https://trial-backend.tutela.cybersift.io/sbom/sbomSubmission

Saving Trivy results to disk AND to Tutela

# Scanner output will also be saved locally to "results.json" file
trivy rootfs /tmp/demo.jar --format cyclonedx --scanners vuln -q | tee results.json | curl -H "X-Tutela-API: 123123" -H "Content-Type: application/json" -X POST --data-binary @- https://cs-vas-backend.cybersift.io/sbom/sbomSubmission

⚠️ Trial Users

trivy rootfs /tmp/demo.jar --format cyclonedx --scanners vuln -q | tee results.json | curl -H "X-Tutela-API: 123123" -H "Content-Type: application/json" -X POST --data-binary @- https://trial-backend.tutela.cybersift.io/sbom/sbomSubmission

tags:

  • Trivy

  • Tutela