mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 23:05:05 +00:00
tests v2
This commit is contained in:
12
include/check11
Normal file
12
include/check11
Normal 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
8
include/group1
Normal 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"
|
||||
Reference in New Issue
Block a user