Vulnerability Discovery and Analysis

A tester has a software bill of materials (SBOM) generated by Syft for a client's application and wants to list known vulnerabilities in its packages without access to the image. Which command should the tester run?

Show the answer

Correct answerC. grype sbom:./sbom.json

AWhy not this: trivy config scans IaC and configuration files for misconfigurations, not package vulnerabilities from an SBOM.

BWhy not this: Nikto scans live web servers by host and cannot take a file as a scan target.

CWhy this is right: Grype can read an SBOM through the sbom: source and match its packages to known vulnerabilities.

DWhy not this: TruffleHog hunts for exposed secrets and does not match packages to vulnerability data.

Grype accepts an SBOM as input with the sbom: prefix and matches the listed packages against its vulnerability database. Trivy's config mode checks IaC and configuration files for misconfigurations, not an SBOM's package list.