docker_auth_profiler

command module
v0.0.0-...-5a83761 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2021 License: MIT Imports: 11 Imported by: 0

README

Docker Auth Profiler

The goal of this project if to find out which docker endpoints and sensitive HostConfig values are being filtered by an authorization plugin.

This code will brute force all the possible docker api endpoints and sensitive HostConfig values and show which ones are allowed.

NOTE that you will be calling the docker API so dangerous actions might be performed when running this script (this shoudn't happen because invented image nae and container IDs are used, but you should be aware of this).

Usage: ./builds//docker_auth_profiler_amd64 [-c 6beb73cc1eef -i ubuntu [More Options]] /run/docker.sock
  -e string
    	Indicate another error message fingerprint. Now using: authorization denied, AuthZPlugin.AuthZReq, AuthNPlugin.AuthNReq
  -h	Print help
  -v string
    	Version of the docker API (default "v1.41")

How to detect a docker authorization plugin

If you perform a regular docker action and find an error message such as this one: docker: Error response from daemon: authorization denied by plugin authobot:latest: use of Privileged containers is not allowed.. Then, there is a docker authorization plugin.

You could also try to list the plugins with:

docker plugin list

ID             NAME              DESCRIPTION                       ENABLED
ca99dd5a4e26   authobot:latest   Authorization plugin for Docker   true

Update docker endpoints

The script download_endpoints.py will download and parse all the endpoints from https://docs.docker.com/engine/api/v1.40.yaml.

If you want to update the endpoints, start by executing that script then grab the generated json and update the docker_auth_profiler.go file.

More Info

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL