# docker/docker-bench-security

The Docker Bench for Security is a script that checks for dozens of common best-practices around deploying Docker containers in production.

Repository: https://github.com/docker/docker-bench-security
Canonical: https://ross.abutalabs.com/products/docker-bench-security
Language: Shell
License: Apache-2.0
License Family: permissive
Last push: 2026-06-04T18:11:52+00:00

## Health v2 (maintenance only)
Score: 61/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 85, release rhythm 8, longevity 100
- inputs: {"age_days": 4133, "days_push": 90, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 9693, forks 1039 (observed 2026-08-28T04:10:36.791611+00:00)

## What it is
Docker Bench for Security is a shell script that automates checks of Docker hosts and containers against the CIS Docker Benchmark best practices. It can be run directly on the host or as a privileged Docker container to self-assess production deployments.

## Use cases
- audit my docker host against CIS benchmark
- check container security best practices before production
- find misconfigurations in docker daemon setup
- run automated security checks on docker deployment
- harden docker containers in production
- self-assess docker security posture

## When to choose
- you deploy Docker containers in production and want automated CIS benchmark compliance checks
- you need a lightweight, script-based security audit with no complex setup
- you want an official Docker-maintained tool for host and container hardening assessment

## When to avoid
- you need vulnerability scanning of container images (use Trivy or Clair instead)
- you need runtime threat detection or continuous monitoring rather than point-in-time audits
- you are not using Docker (e.g., Podman or Kubernetes-only environments)

## Facets
- artifact type: cli-tool
- maturity: active
- function: security, vulnerability-scanning, developer-tools, cli
- domain: security, self-hosted
- platform: cli
- tags: docker, cis-benchmark, security-audit, shell-script, container-security, hardening, containers, devops, linux

## Member repositories
- docker/docker-bench-security (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:36.791611+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:21:16.091836+00:00, confidence not recorded.
  - readme: https://github.com/docker/docker-bench-security (fetched 2026-08-28T04:10:36.791611+00:00, sha ab4926037a7e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
