{"id":19260585,"url":"https://github.com/mitre/docker-ce-cis-baseline","last_synced_at":"2025-10-12T18:41:48.091Z","repository":{"id":52642779,"uuid":"105910913","full_name":"mitre/docker-ce-cis-baseline","owner":"mitre","description":"CIS Docker Community Edition Benchmark InSpec Profile","archived":false,"fork":false,"pushed_at":"2021-04-22T15:29:38.000Z","size":331,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-04-01T14:38:00.668Z","etag":null,"topics":["docker","docker-ce","inspec","inspec-profile","mitre-corporation","mitre-inspec"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitre.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-05T16:02:05.000Z","updated_at":"2024-01-10T08:06:19.000Z","dependencies_parsed_at":"2022-08-21T10:40:15.119Z","dependency_job_id":null,"html_url":"https://github.com/mitre/docker-ce-cis-baseline","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitre%2Fdocker-ce-cis-baseline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitre%2Fdocker-ce-cis-baseline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitre%2Fdocker-ce-cis-baseline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitre%2Fdocker-ce-cis-baseline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitre","download_url":"https://codeload.github.com/mitre/docker-ce-cis-baseline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250090972,"owners_count":21373294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-ce","inspec","inspec-profile","mitre-corporation","mitre-inspec"],"created_at":"2024-11-09T19:21:49.712Z","updated_at":"2025-10-12T18:41:43.072Z","avatar_url":"https://github.com/mitre.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-ce-cis-baseline\n\nInSpec profile to validate the secure configuration of Docker Community Edition, against [CIS'](https://www.cisecurity.org/cis-benchmarks/) Docker Community Edition Benchmark v1.1.0.\n\n## Getting Started  \nIt is intended and recommended that InSpec run this profile from a __\"runner\"__ host (such as a DevOps orchestration server, an administrative management system, or a developer's workstation/laptop) against the target remotely over __winrm__.\n\n__For the best security of the runner, always install on the runner the _latest version_ of InSpec and supporting Ruby language components.__ \n\nThe latest versions and installation options are available at the [InSpec](http://inspec.io/) site.\n\n## Tailoring to Your Environment\nThe following inputs must be configured in an inputs \".yml\" file for the profile to run correctly for your specific environment. More information about InSpec inputs can be found in the [InSpec Profile Documentation](https://www.inspec.io/docs/reference/profiles/).\n\n```\n- Trusted system user\ntrusted_user: vagrant\n\n- Number of managable docker containers\nmanagable_container_number: 25\n\n- Docker registry cert path\nregistry_cert_path: /etc/docker/certs.d\n\n- Directory contain certificate certain Docker registry. cis-docker-benchmark-3.7\nregistry_name: /etc/docker/certs.d/registry_hostname:port\n\n- Certificate file for a certain Docker registry certificate files. cis-docker-benchmark-3.7 and cis-docker-benchmark-3.8\nregistry_ca_file: /etc/docker/certs.d/registry_hostname:port/ca.crt\n\n- Docker container user\ncontainer_user: vagrant\n\n- Docker container cap add\ncontainer_capadd: null\n\n- Authorization plugin\nauthorization_plugin: authz-broker\n\n- Log driver\nlog_driver: syslog\n\n- Log Opts\nlog_opts: /syslog-address/\n\n- App armor profile\napp_armor_profile: docker-default\n\n- SElinux profile\nselinux_profile: /label\\:level\\:s0-s0\\:c1023/\n\n```\n\n\n# Running This Baseline Directly from Github\n\n```\n# How to run\ninspec exec https://github.com/mitre/docker-ce-cis-baseline/archive/master.tar.gz -t winrm://\u003chostip\u003e --user '\u003cadmin-account\u003e' --password=\u003cpassword\u003e --input-file=\u003cpath_to_your_inputs_file/name_of_your_inputs_file.yml\u003e --reporter=cli json:\u003cpath_to_your_output_file/name_of_your_output_file.json\u003e\n```\n\n### Different Run Options\n\n  [Full exec options](https://docs.chef.io/inspec/cli/#options-3)\n\n## Running This Baseline from a local Archive copy \n\nIf your runner is not always expected to have direct access to GitHub, use the following steps to create an archive bundle of this baseline and all of its dependent tests:\n\n(Git is required to clone the InSpec profile using the instructions below. Git can be downloaded from the [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) site.)\n\nWhen the __\"runner\"__ host uses this profile baseline for the first time, follow these steps: \n\n```\nmkdir profiles\ncd profiles\ngit clone https://github.com/mitre/docker-ce-cis-baseline\ninspec archive docker-ce-cis-baseline\ninspec exec \u003cname of generated archive\u003e -t winrm://\u003chostip\u003e --user '\u003cadmin-account\u003e' --password=\u003cpassword\u003e --input-file=\u003cpath_to_your_inputs_file/name_of_your_inputs_file.yml\u003e --reporter=cli json:\u003cpath_to_your_output_file/name_of_your_output_file.json\u003e\n```\nFor every successive run, follow these steps to always have the latest version of this baseline:\n\n```\ncd docker-ce-cis-baseline\ngit pull\ncd ..\ninspec archive docker-ce-cis-baseline --overwrite\ninspec exec \u003cname of generated archive\u003e -t winrm://\u003chostip\u003e --user '\u003cadmin-account\u003e' --password=\u003cpassword\u003e --input-file=\u003cpath_to_your_inputs_file/name_of_your_inputs_file.yml\u003e --reporter=cli json:\u003cpath_to_your_output_file/name_of_your_output_file.json\u003e\n```\n\n## Using Heimdall for Viewing the JSON Results\n\nThe JSON results output file can be loaded into __[heimdall-lite](https://heimdall-lite.mitre.org/)__ for a user-interactive, graphical view of the InSpec results. \n\nThe JSON InSpec results file may also be loaded into a __[full heimdall server](https://github.com/mitre/heimdall)__, allowing for additional functionality such as to store and compare multiple profile runs.\n\n## Authors\n* Mohamed El-Sharkawi - [HackerShark](https://github.com/HackerShark)\n* Alicia Sturtevant - [asturtevant](https://github.com/asturtevant)\n\n## Special Thanks\n\n* Aaron Lippold - [aaronlippold](https://github.com/aaronlippold)\n* Shivani Karikar - [karikarshivani](https://github.com/karikarshivani)\n\n## Contributing and Getting Help\nTo report a bug or feature request, please open an [issue](https://github.com/mitre/docker-ce-cis-baseline/issues/new).\n\n### NOTICE\n\n© 2018-2020 The MITRE Corporation.\n\nApproved for Public Release; Distribution Unlimited. Case Number 18-3678.\n\n### NOTICE \n\nMITRE hereby grants express written permission to use, reproduce, distribute, modify, and otherwise leverage this software to the extent permitted by the licensed terms provided in the LICENSE.md file included with this project.\n\n### NOTICE  \n\nThis software was produced for the U. S. Government under Contract Number HHSM-500-2012-00008I, and is subject to Federal Acquisition Regulation Clause 52.227-14, Rights in Data-General.  \n\nNo other use other than that granted to the U. S. Government, or to those acting on behalf of the U. S. Government under that Clause is authorized without the express written permission of The MITRE Corporation.\n\nFor further information, please contact The MITRE Corporation, Contracts Management Office, 7515 Colshire Drive, McLean, VA  22102-7539, (703) 983-6000.\n\n### NOTICE\n\nCIS Benchmarks are published by the Center for Internet Security (CIS), see: https://www.cisecurity.org/.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitre%2Fdocker-ce-cis-baseline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitre%2Fdocker-ce-cis-baseline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitre%2Fdocker-ce-cis-baseline/lists"}