GithubHelp home page GithubHelp logo

felipearredond / dyanalyzer Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 538 KB

This is a web project developed using python and django framework focused on upload docker containers and yaml files to analyze their vulnerabilities

Python 80.45% HTML 15.34% CSS 4.21%

dyanalyzer's Introduction

DYAnalyzer

Como ejecutar el proyecto?

  1. Clonar el repositorio
git clone https://github.com/FelipeArredond/DYAnalyzer.git
  1. Acceder a la carpeta del proyecto clonado, crear el venv y activarlo
cd DYAnalyzer
python3 -m venv venv
source venv/bin/activate
  1. Una vez activado el venv instalamos las dependencias
pip install -r requirements.txt
  1. Iniciar el servidor de la app
python3 manage.py runserver

Funcionamiento

Acceder a la url http://127.0.0.1:8000/

Alli encontraremos la ventana inicial ⇒

dyhome.png

En la esquina superior izquierda iremos a “ Upload File ” para cargar el archivo que deseemos realizar el analisis

nav.png

Seleccionaremos un archivo y lo cargaremos con el boton upload

upload.png

Cuando cargamos el archivo deberiamos de poder ver el nombre del archivo

uploaded.png

Cuando presionamos en upload deberiamos poder ver el siguiente mensaje

readytoscan.png

Cuano presionamos el boton “ Scan File ” el backend de la app empezara a realizar el analisis, veremos que el navegador empezara a cargar, esto significa que se esta procesando la peticion

scanning.png

Al finalizar el escaneo podremos ver el output del analisis por pantalla

result.png

Benchmark

Methodology

Se contemplaron las siguientes herramientas para realizar el analisis:

  • Trivy

GitHub - aquasecurity/trivy: Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more

  • Grype

GitHub - anchore/grype: A vulnerability scanner for container images and filesystems

  • Checkov

GitHub - bridgecrewio/checkov: Prevent cloud misconfigurations and find vulnerabilities during build-time in infrastructure as code, container images and open source packages with Checkov by Bridgecrew.

  • CoGuard

GitHub - coguardio/coguard-cli: The CoGuard CLI Tool

Se realizaron la siguiente prueba:

  1. Creacion del proyecto en django.
  2. Test del uso del escaner desde una web app.
  3. Test del uso del escaner desde un ECS en AWS.

Results

Trivy

Targets Dependencias Scanners
- Container Image
  • Filesystem
  • Git Repository
  • Virtual Machine Image
  • Kubernetes
  • AWS | docker ( en el host ) | - OS packages and software dependencies in use
  • Known vulnerabilities (CVEs)
  • IaC issues and misconfigurations
  • Sensitive information and secrets
  • Software licenses |

Grype

Targets Dependencias Scanners
- Container Image
  • Filesystem
  • Kubernetes | docker ( en el host ) | - OS packages and software dependencies in use - Sensitive information and secrets - Known vulnerabilities |

Checkov

Targets Dependencias Scanners
- Container Image
  • Filesystem
  • Kubernetes - Terraform - AWS | python3 ( en el host ) | - OS packages and software dependencies in use
  • Known vulnerabilities (CVEs)
  • IaC issues and misconfigurations
  • Sensitive information and secrets
  • Software licenses |

CoGuard

Targets Dependencias Scanners
- Container Image
  • Repository - Cloud config ( AWS, Azure, GCP ) | python3 ( en el host ) | - OS packages and software dependencies in use
  • IaC issues and misconfigurations
  • Sensitive information and secrets |

Conclusion

Basado en el tiempo establecido para la prueba , la facilidad de implementacion, y los resultados obtenidos en el analisis se opto por usar la herramienta CHECKOV ya que su unica dependencia es que el host tenga python3 y realiza un analisis mas a profundidad que CoGuard.

En el caso donde se tenga docker instalado en el host, el tiempo de escaneo de los archivos es bastante mayor debido a que la app debe realizar ejecuciones con docker en el host como lo es “ docker pull bitnami/trivy ” y ejecutar “ docker run image bitnami/trivy ”.

dyanalyzer's People

Contributors

felipearredond avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.