镜像安全扫描工具

admin 2023年11月7日09:24:56评论10 views字数 1165阅读3分53秒阅读模式

镜像安全扫描是确保云原生环境安全非常重要和基础的一个环节,通过镜像安全扫描可以检测容器镜像中的漏洞,避免攻击者植入恶意代码,快速响应漏洞,从而降低安全风险。

本文分享两个比较常用的镜像安全扫描工具,它们可以帮助我们识别容器镜像中的漏洞和弱点。

github项目地址:

https://github.com/chaitin/veinmind-tools.git

(1)安装 veinmind-runner,使用平行容器启动脚本扫描本地镜像。

docker pull registry.veinmind.tech/veinmind/veinmind-runner:latestwget -q https://download.veinmind.tech/scripts/veinmind-runner-parallel-container-run.sh -O run.sh && chmod +x run.sh./run.sh scan image nginx:latest

1、Trivy

Trivy是一个全面的多功能安全扫描器,支持在容器镜像、Kubernetes、代码存储库、AWS中查找漏洞、错误配置、敏感信息和密钥、SBOM等。下载二进制文件就可以实现扫描,CI集成友好,还能以插件化的方式集成到Harbor。

github项目地址:

https://github.com/aquasecurity/trivy

(1)安装

wget https://github.com/aquasecurity/trivy/releases/download/v0.47.0/trivy_0.47.0_Linux-64bit.rpmrpm -i  rpm -i trivy_0.47.0_Linux-64bit.rpm

(2)扫描示例

trivy image nginx:latesttrivy image --severity HIGH,CRITICAL nginx:latest

镜像安全扫描工具

github项目地址:

https://github.com/chaitin/veinmind-tools.git

(1)安装 veinmind-runner,使用平行容器启动脚本扫描本地镜像。

docker pull registry.veinmind.tech/veinmind/veinmind-runner:latestwget -q https://download.veinmind.tech/scripts/veinmind-runner-parallel-container-run.sh -O run.sh && chmod +x run.sh./run.sh scan image nginx:latest

图片

(2)下载单一工具veinmind-backdoor,扫描本地镜像中的后门。

图片

原文始发于微信公众号(Bypass):镜像安全扫描工具

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2023年11月7日09:24:56
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   镜像安全扫描工具https://cn-sec.com/archives/2182815.html

发表评论

匿名网友 填写信息