2026/10/15

昨天外稽
提到sbom
軟体盤點的東東

安裝 syft

curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /tmp

產生 sbom

/tmp/syft dir:/ -o spdx-json=/tmp/linux_sbom.json --exclude "/home"


安裝 grype 後解析sbom並查看有無漏洞

grype db update

grype linux_sbom.json



沒有留言: