Same Maven project scanned three ways (pom.xml, SBOM, jars): captured output, false-positive evidence, suppression files with expiry, CI gate, -Pfixed profile. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7h4ZNF4BDUpJk3Zou
27 lines
1.2 KiB
Plaintext
27 lines
1.2 KiB
Plaintext
$ mvn cyclonedx:makeAggregateBom -> target/bom.json
|
|
bomFormat CycloneDX specVersion 1.6
|
|
components: 8
|
|
pkg:maven/org.apache.logging.log4j/[email protected]?type=jar
|
|
pkg:maven/org.apache.logging.log4j/[email protected]?type=jar
|
|
pkg:maven/org.apache.commons/[email protected]?type=jar
|
|
pkg:maven/org.apache.commons/[email protected]?type=jar
|
|
pkg:maven/com.fasterxml.jackson.core/[email protected]?type=jar
|
|
pkg:maven/com.fasterxml.jackson.core/[email protected]?type=jar
|
|
pkg:maven/com.fasterxml.jackson.core/[email protected]?type=jar
|
|
pkg:maven/org.yaml/[email protected]?type=jar
|
|
|
|
$ trivy sbom target/bom.json
|
|
findings: 33 (same scan from the manifest: 33)
|
|
|
|
$ osv-scanner scan source -L target/bom.json
|
|
Scanned <module>/target/bom.json file and found 8 packages
|
|
findings: 33 (same scan from pom.xml: 35)
|
|
|
|
difference between osv-scanner on pom.xml (<) and on the SBOM (>):
|
|
16,17d15
|
|
< commons-collections:commons-collections:3.2.1 CVE-2015-6420
|
|
< commons-collections:commons-collections:3.2.1 CVE-2015-7501
|
|
|
|
$ the same SBOM with one component edited by hand (log4j-core 2.14.1 -> 2.26.1 in version and purl)
|
|
trivy findings on the edited SBOM: 25 (log4j-core findings: 0)
|