インフラ系SEの技術メモ

雑なエンジニアが低信頼性のメモを書いています。参考程度にとどめてください。

(AWS)コンテナイメージのスキャン結果をCLIから確認する

備忘録に使えるコマンドを残しておきます。

ファイルに保存。

$ aws ecr describe-image-scan-findings --repository-name xx --image-id imageDigest=sha256:xx > scan.json

脆弱性の重さと概要をチェック。

$ cat scan.json | jq . | grep -e severity -e title
        "severity": "MEDIUM",
        "title": "CVE-xx-xx - xx-xx",