This commit is contained in:
Toni de la Fuente
2018-03-19 14:54:05 -04:00
parent c96e2be257
commit 4901561fec
3 changed files with 645 additions and 0 deletions

12
include/check11 Normal file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
CHECK_ID[check11]="1.1,1.01"
CHECK_TITLE[check11]="Avoid the use of the root account (Scored)."
CHECK_SCORED[check11]="SCORED"
check11() {
# "Avoid the use of the root account (Scored)."
COMMAND11=$(cat $TEMP_REPORT_FILE| grep '<root_account>' | cut -d, -f5,11,16 | sed 's/,/\ /g')
textTitle "$CHECK_ID" "$CHECK_TITLE" "SCORED" "LEVEL1"
textNotice "Root account last accessed (password key_1 key_2): $COMMAND11"
}
CHECK_ALTERNATE[check101]="check11"

8
include/group1 Normal file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
GROUP_ID[1]="group1"
GROUP_NUMBER[1]="1.0"
GROUP_TITLE[1]="Identity and Access Management"
GROUP_RUN_BY_DEFAULT[1]="Y"
GROUP_CHECKS[1]="check11"
textTitle "$GROUP_NUMBER" "$GROUP_TITLE"