Skip to content

oronboni/dockerscan

 
 

Repository files navigation

dockerscan

dockerscan: A Docker analysis tools

DockerScan logo

Project site http://github.com/cr0hn/dockerscan
Issues https://github.com/cr0hn/dockerscan/issues/
Author Daniel Garcia (cr0hn) / Roberto Munoz (robskye)
Documentation http://dockerscan.readthedocs.org
Last Version 1.0.0a1
Python versions 3.5 or above

What's dockerscan

A Docker analysis tools

Very quick install

> python3.5 -m pip install -U pip
> python3.5 -m pip install dockerscan

Show options:

> dockerscan -h

Available actions

Currently Docker Scan support these actions:

  • Registry

    • Delete: Delete remote image / tag
    • Info: Show info from remote registry
    • Push: Push and image (like Docker client)
    • Upload: Upload random a file
  • Image

    • Analyze: Looking for sensitive information in a Docker image.

      • Looking for passwords in environment vars.
      • Try to find any URL / IP in the environment vars.
      • Try to deduce the user using internally to run the software. This is not trivial. If the entry point is a .sh file. Read the file and try to find call to sudo-like: “sudo”, “gosu”, “sh -u”… And report the user found.
    • Extract: extract a docker image

    • info: Get a image meta information

    • modify:

      • entrypoint: change the entrypoint in a docker
      • trojanize: inject a reverser shell into a docker image
      • user: change running user in a docker image

Documentation

Documentation is still in process... sorry!

For the moment only have the Slides os presentation of RootedCON Spain. The conference where Docker Scan was presented:

https://www.slideshare.net/secret/fxVqD2iXqanOCX

Contributing

Any collaboration is welcome!

There're many tasks to do.You can check the Issues and send us a Pull Request.

Also you can read the TODO file.

License

This project is distributed under BSD license

About

Docker security analysis tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%