Skip to main content

A tool for monitoring the vulnerabilities of docker containers.

Project description

๐Ÿ•ต๏ธโ€โ™€๏ธ Counsel - A tool for monitoring and notifying the vulnerabilities of docker containers.

โš ๏ธ Counsel is alpha software and currently in development (i.e., no tests, no documentation).

Counsel is a simple application that scans running Docker containers. Counsel can send Slack notifications when specific vulnerbility levels are identified and send reminder if the countainer remains unpatched.

Counsel Slack Notification

โ„น๏ธ Installation and Usage

Counsel can be installed using pip:

pip install counsel

๐Ÿ“’ Requirements

Counsel requires a running Docker installation in order to identify the currently running containers.

Counsel uses the following two tools for scanning the vulnerabilities of the running countainers:

  • Syft: A CLI tool and Go library for generating a Software Bill of Materials (SBOM) from container images.
  • Grype: A vulnerability scanner for container images.

๐Ÿณ Docker

You can run a Counsel using docker as long as the host docker socket is exposed to Counsel. The easiest way to install docker is to pull the image from DockerHub and run it using the following command (you will need to use your own slack webhook url):

docker run -v /var/run/docker.sock:/var/run/docker.sock -e COUNSEL_SLACK_URL="<SLACK_WEBHOOK_URL>" evhart/counsel

You can also build the image dierctly using the following command:

docker build -t evhart/counsel .   

๐Ÿ–ฅ๏ธ Command Line Interface (CLI)

Counsel has a simple CLI interface that be accessed using the counsel command. Counsel support migrating/exporting data from one database ot another database and showing the firs rows from databases.

 Usage: python -m counsel.cli [OPTIONS]                                         
                                                                                
 ๐Ÿ•ต๏ธโ€โ™€๏ธ Counsel - A tool for monitoring the vulnerabilities of docker containers.   
                                                                                
โ•ญโ”€ Options โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ --scan-schedule             TEXT                     Schedule when to run    โ”‚
โ”‚                                                      Counsel.                โ”‚
โ”‚                                                      [env var:               โ”‚
โ”‚                                                      COUNSEL_SCAN_SHEDULE]   โ”‚
โ”‚ --initial-scan                                       Run an initial scan     โ”‚
โ”‚                                                      before starting the     โ”‚
โ”‚                                                      scheduler.              โ”‚
โ”‚                                                      [env var:               โ”‚
โ”‚                                                      COUNSEL_INITIAL_SCAN]   โ”‚
โ”‚ --alert-threshold           [unknown|negligible|low  Minimum vulnerability   โ”‚
โ”‚                             |medium|high|critical]   threshold for raising   โ”‚
โ”‚                                                      an alert.               โ”‚
โ”‚                                                      [env var:               โ”‚
โ”‚                                                      COUNSEL_THRESHOLD]      โ”‚
โ”‚                                                      [default: high]         โ”‚
โ”‚ --remind-delay              INTEGER                  When a                  โ”‚
โ”‚                                                      notification/action     โ”‚
โ”‚                                                      reminder should be sent โ”‚
โ”‚                                                      (in days).              โ”‚
โ”‚                                                      [env var:               โ”‚
โ”‚                                                      COUNSEL_REMIND_DELAY]   โ”‚
โ”‚                                                      [default: 10]           โ”‚
โ”‚ --kill-delay                INTEGER                  When the final          โ”‚
โ”‚                                                      notification/action     โ”‚
โ”‚                                                      should be sent (in      โ”‚
โ”‚                                                      days).                  โ”‚
โ”‚                                                      [env var:               โ”‚
โ”‚                                                      COUNSEL_KILL_DELAY]     โ”‚
โ”‚                                                      [default: 14]           โ”‚
โ”‚ --slack-webhook-url         TEXT                     Slack webhook URL for   โ”‚
โ”‚                                                      alert notifications.    โ”‚
โ”‚                                                      [env var:               โ”‚
โ”‚                                                      COUNSEL_SLACK_URL]      โ”‚
โ”‚ --slack-msg-template        TEXT                     Slack Jinja2 template   โ”‚
โ”‚                                                      for alert               โ”‚
โ”‚                                                      notifications.          โ”‚
โ”‚                                                      [env var:               โ”‚
โ”‚                                                      COUNSEL_SLACK_MSG_TEMPโ€ฆ โ”‚
โ”‚ --install-completion                                 Install completion for  โ”‚
โ”‚                                                      the current shell.      โ”‚
โ”‚ --show-completion                                    Show completion for the โ”‚
โ”‚                                                      current shell, to copy  โ”‚
โ”‚                                                      it or customize the     โ”‚
โ”‚                                                      installation.           โ”‚
โ”‚ --help                                               Show this message and   โ”‚
โ”‚                                                      exit.                   โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

counsel-0.1.2a0.tar.gz (12.9 kB view hashes)

Uploaded Source

Built Distribution

counsel-0.1.2a0-py3-none-any.whl (13.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page