Add vuln-scan: Dependency-Check 13.0.0 vs Trivy 0.76.2 vs OSV-Scanner 2.7.1
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
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
f32c088174
commit
7c677a39d2
@@ -0,0 +1,26 @@
|
||||
$ 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)
|
||||
Reference in New Issue
Block a user