Skip to content

despegar/check-cis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CIS compliant bash script (check-cis.sh)

SCRIPT INFORMATION

AUTHOR  : Ezequiel Larrarte
DATE    : 2020-06-27
VERSION : 01

DESCRIPTION

This script runs CIS tests in order to see if a given Linux server/workstation is CIS compliant.
The script allows you to create your own policy, selecting only the CIS tests you need.
Also, you can log the results to a file for easy SIEM integration, using KV log format.
The script can be easily extendend adding the unitary tests for a specific Linux distribution.
At the time of writing, only Ubuntu 18.04 CIS 2.0.1 is supported (work in progress).

EXAMPLES

Save all the CIS tests to a policy
check-cis.sh --action list > policy.conf

Edit policy.conf and remove unneeded tests
Execute a CIS test using the policy
check-cis.sh --action execute --cis-policy policy.conf

Execute those tests with workstation applicability from the policy
check-cis.sh --action execute --cis-policy policy.conf --cis-pa workstation

Execute those tests with profile level 1 from the policy
check-cis.sh --action execute --cis-policy policy.conf --cis-pl 1

Execute a specific test
check-cis.sh --action execute --cis-test 1_1_1_1 --verbose

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%