Image Security Scan is an open-source tool designed to analyze docker images using grype tool for potential security vulnerabilities. It helps organizations ensure that their applications doesn't inadvertently introduce security risks.
To install Image Security Scan, follow these steps:
-
Clone the repository:
git clone https://github.com/erfantkerfan/image-sec-scan.git
-
Navigate to the project directory:
cd image-sec-scan
-
Setup proper settings:
-
setup your docker mirror and desired web port in
.env
for building the project if are using an air gapped environment and exposing the webserver. -
setup the images you want to scan in the
images.txt
file.
-
-
Run the project:
-
use
docker compose up -d web
to run the webserver -
use
docker compose up --build generator
to run the first adhoc image scan job -
create a scheduled scan job based on your needs. crontab for Fridays sample:
0 0 * * FRI root { cd /opt/image-sec-scan && docker compose up --build generator; } > /opt/image-sec-scan/run.log 2>&1
-
Visit
http://127.0.0.1:8888
(default port) to explore the generated scan reports.
-
- Adding K8S solution (manifests or helm)
-
Open for contribution
-
The time I spent on this project was sponsored by my employer at the time: Azki