Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Scanner Trivy

This project is based on doing in a standard way using docker to use the trivy image vulnerability scanner, which allows checking Docker images and some aspects for images for kubernetes.

Table contents

  1. Project Information
  2. Requirement
  3. Commands
  4. Autor
  5. Contact
  6. Documentation

Project Information

  • Trivy: It is based on trivy.

Requirement

  • Docker: It is required to have docker installed.
  • Docker Compose: It is required to have docker compose installed.

Commands

Clone repository

git clone git@github.com:gbolivar/scan-trivy.git

Access the project

cd scan-trivy

Commands executed locally

Once the repository is cloned, the first thing is to generate the docker images:

docker-compose up -d --build

To run the command in the container:

Scan an image in python with alpine

docker-compose exec scan-trivy trivy image python:3.4-alpine

You can scan the packets of an image:

docker-compose exec scan-trivy trivy image --pkg-types os ruby:2.4.0

Can scan packets for the most critical vulnerabilities with the highest priority:

docker-compose exec scan-trivy trivy image --severity HIGH python:3.4-alpine

Then go into the backend container:

docker exec -it scan-trivy /bin/bash

To exit the container, use the exit command:

exit

Then you may want to delete the entire project container and leave it clean.:

docker-compose down

Autor

Create for Gregorio José Bolívar Bolívar

Twitter Linkedin GitHub

Contact

Anything you need let me know so I can help you. 💬.

        

Documentation

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GPL-3.0

About

Scan Trivy

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages