Giter VIP home page Giter VIP logo

docker-image-scanners's Introduction

Docker Image Scanners

Both Anchore and Clair environments can be started using my-dev-env, which provides Docker compose files for both.

Test images:

  • ninckblokje/helm:latest
    • Contains only OS packages
    • No CVE's (2021-01-20)
  • registry.access.redhat.com/ubi7/ubi:7.6
    • Contains only OS packages
    • Multiple CVE's on OS packages
  • ninckblokje/crasher:sh
    • Contains OS packages and a Java applications
    • Multiple CVE's on OS packages
  • ninckblokje/ratetraining:1.1.0
    • Contains OS packages and a Java Spring Boot application
    • Multiple CVE's on OS packages and JAR's
  • ninckblokje/polyglot-micronaut-express:1.0.0
    • Contains OS packages, Java Micronaut application and a Node application
    • Multiple CVE's on OS packages, JAR's and Node modules

Anchore

Note: It will take quite some time for Anchore to load the database, before images can be scanned!

Commands

  • System status: docker-compose exec jnb-anchore-api anchore-cli system status
  • Feed list: docker-compose exec jnb-anchore-api anchore-cli system feeds list
  • Refresh feeds: docker-compose exec jnb-anchore-api anchore-cli system feeds sync
  • Add image: docker-compose exec jnb-anchore-api anchore-cli image add [IMAGE_NAME]
  • Image vulnerabilities: docker-compose exec jnb-anchore-api anchore-cli image vuln [IMAGE_NAME] all

Test images results

Image Result OK / NOK
ninckblokje/helm:latest No CVE's (2021-01-20) OK
registry.access.redhat.com/ubi7/ubi:7.6 Multiple CVE's on OS packages OK
ninckblokje/crasher:sh Multiple CVE's on OS packages OK
ninckblokje/ratetraining:1.1.0 Multiple CVE's on OS packages and JAR's OK
ninckblokje/polyglot-micronaut-express:1.0.0 Multiple CVE's on OS packages, JAR's and Node modules OK

Clair

Note: Clair does not find most CVE's from the example images

Commands

  • Report image: docker-compose exec jnb-clair clairctl report [IMAGE_NAME]

Test images results

Image Result OK / NOK
ninckblokje/helm:latest No CVE's (2021-01-20) OK
registry.access.redhat.com/ubi7/ubi:7.6 Multiple CVE's on OS packages OK
ninckblokje/crasher:sh No CVE's NOK
ninckblokje/ratetraining:1.1.0 No CVE's NOK
ninckblokje/polyglot-micronaut-express:1.0.0 Onle CVE's on OS packages NOK

Trivy

Trivy runs as a command line tool.

Commands:

  • Scan image: docker run --rm aquasec/trivy image --timeout 5ms0 [IMAGE_NAME]
  • Clear cache: docker run --rm aquasec/trivy image --clear-cache

Test images results

Image Result OK / NOK
ninckblokje/helm:latest Not supported NOK
registry.access.redhat.com/ubi7/ubi:7.6 Multiple CVE's on OS packages OK
ninckblokje/crasher:sh Multiple CVE's on OS packages OK
ninckblokje/ratetraining:1.1.0 Multiple CVE's on OS packages NOK
ninckblokje/polyglot-micronaut-express:1.0.0 Onle CVE's on OS packages and Node modules NOK

docker-image-scanners's People

Contributors

ninckblokje 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.