2021-04-11 23:42:08 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# A simple script to install Chef inspec and the CIS Docker Benchmark InSpec Profile
|
2021-04-11 23:45:56 +00:00
|
|
|
# Runs on Ubuntu, Debian, Parrot, and Kali Linux
|
2021-04-11 23:42:08 +00:00
|
|
|
# Author: Omar Santos @santosomar
|
2021-04-11 23:45:56 +00:00
|
|
|
# version 0.1
|
2021-04-11 23:42:08 +00:00
|
|
|
|
2021-04-11 23:45:56 +00:00
|
|
|
red=$(tput setaf 1)
|
|
|
|
green=$(tput setaf 2)
|
|
|
|
reset=$(tput sgr0)
|
|
|
|
|
|
|
|
echo "${green}Installing InSpec"
|
|
|
|
echo "${reset}========================="
|
2021-04-11 23:42:08 +00:00
|
|
|
|
|
|
|
curl https://omnitruck.chef.io/install.sh | sudo bash -s -- -P inspec
|
|
|
|
|
2021-04-11 23:45:56 +00:00
|
|
|
echo "${red} Running CIS Docker Benchmark ${reset} locally on $(hostname)"
|
|
|
|
inspec exec https://github.com/dev-sec/cis-docker-benchmark
|