You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1 KiB

# Automated Security Reporting with Trivy
## Purpose
[Trviy](https://trivy.dev/) is a sucurity reporting tool equipped to find vulnerabilities (CVEs) and misconfigurations (e.g.: visible sensitive information) in container images, repositories and binary artifacts.
In this repo I provide a small and configurable setup for automating the generation of trivy reports.
## Usage
Clone the repository!
```
git clone git remote add origin ssh://git@gitea.vo.elte.hu:30576/fpc7fu/autosecrep.git
```
### Configuration
Edit the example `config.json` file by adding your own applications for scanning:
```
[
{
"id": "hello_world",
"type": "docker_image",
"image": "hello-world:latest"
}
]
```
- `id` is merely used for naming the produced reports.
- `type` can currently only be "docker\_image"
- `image` is the exact name of the docker image
### Deploying
Run the script as follows:
```
bash ./run.sh
```
Parameters:
- `config`: path to the config file above introduced (default: `./config.json`)
- `outdir`: the produced reports will be saved in a timestamped folder within this directory (defaul: `./reports`)
- `docker\_socket` (default: `/var/run/docker.sock`)