Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CIS Level 1 only functions #434

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
153 changes: 153 additions & 0 deletions functions_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,26 @@ host_configuration() {
check_1_end
}

host_configuration_level1() {
check_1
check_1_1
check_1_1_1
check_1_1_2
check_1_2
check_1_2_1
check_1_2_2
check_1_2_3
check_1_2_5
check_1_2_6
check_1_2_7
check_1_2_8
check_1_2_9
check_1_2_10
check_1_2_11
check_1_2_12
check_1_end
}

docker_daemon_configuration() {
check_2
check_2_1
Expand All @@ -43,6 +63,22 @@ docker_daemon_configuration() {
check_2_end
}

docker_daemon_configuration_level1() {
check_2
check_2_1
check_2_2
check_2_3
check_2_4
check_2_5
check_2_6
check_2_7
check_2_13
check_2_14
check_2_16
check_2_17
check_2_end
}

docker_daemon_files() {
check_3
check_3_1
Expand Down Expand Up @@ -70,6 +106,33 @@ docker_daemon_files() {
check_3_end
}

docker_daemon_files_level1() {
check_3
check_3_1
check_3_2
check_3_3
check_3_4
check_3_5
check_3_6
check_3_7
check_3_8
check_3_9
check_3_10
check_3_11
check_3_12
check_3_13
check_3_14
check_3_15
check_3_16
check_3_17
check_3_18
check_3_19
check_3_20
check_3_21
check_3_22
check_3_end
}

container_images() {
check_4
check_4_1
Expand All @@ -86,6 +149,19 @@ container_images() {
check_4_end
}

container_images_level1() {
check_4
check_4_1
check_4_2
check_4_3
check_4_4
check_4_6
check_4_7
check_4_9
check_4_10
check_4_end
}

container_runtime() {
check_5
check_running_containers
Expand Down Expand Up @@ -123,13 +199,53 @@ container_runtime() {
check_5_end
}

container_runtime_level1() {
check_5
check_running_containers
check_5_1
check_5_3
check_5_4
check_5_5
check_5_6
check_5_7
check_5_8
check_5_9
check_5_10
check_5_11
check_5_12
check_5_13
check_5_14
check_5_15
check_5_16
check_5_17
check_5_18
check_5_19
check_5_20
check_5_21
check_5_24
check_5_25
check_5_26
check_5_27
check_5_28
check_5_30
check_5_31
check_5_end
}

docker_security_operations() {
check_6
check_6_1
check_6_2
check_6_end
}

docker_security_operations_level1() {
check_6
check_6_1
check_6_2
check_6_end
}

docker_swarm_configuration() {
check_7
check_7_1
Expand All @@ -145,6 +261,16 @@ docker_swarm_configuration() {
check_7_end
}

docker_swarm_configuration_level1() {
check_7
check_7_1
check_7_2
check_7_3
check_7_4
check_7_7
check_7_end
}

docker_enterprise_configuration() {
check_8
check_product_license
Expand All @@ -161,6 +287,22 @@ docker_enterprise_configuration() {
check_8_end
}

docker_enterprise_configuration_level1() {
check_8
check_product_license
check_8_1
check_8_1_1
check_8_1_2
check_8_1_3
check_8_1_4
check_8_1_5
check_8_1_6
check_8_1_7
check_8_2
check_8_2_1
check_8_end
}

community_checks() {
check_c
check_c_1
Expand All @@ -180,6 +322,17 @@ cis() {
docker_enterprise_configuration
}

cis_level1() {
host_configuration_level1
docker_daemon_configuration_level1
docker_daemon_files_level1
container_images_level1
container_runtime_level1
docker_security_operations_level1
docker_swarm_configuration_level1
docker_enterprise_configuration_level1
}

# Community contributed
community() {
community_checks
Expand Down