mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-11 07:15:15 +00:00
22 lines
760 B
Plaintext
22 lines
760 B
Plaintext
CHECK_ID_check112="1.12"
|
|
CHECK_TITLE_check112="Ensure no root account access key exists (Scored)"
|
|
CHECK_SCORED_check112="SCORED"
|
|
CHECK_ALTERNATE_check112="check112"
|
|
|
|
check112(){
|
|
# "Ensure no root account access key exists (Scored)"
|
|
# ensure the access_key_1_active and access_key_2_active fields are set to FALSE.
|
|
ROOTKEY1=$(cat $TEMP_REPORT_FILE |grep root_account|awk -F',' '{ print $9 }')
|
|
ROOTKEY2=$(cat $TEMP_REPORT_FILE |grep root_account|awk -F',' '{ print $14 }')
|
|
if [ "$ROOTKEY1" == "false" ];then
|
|
textPass "No access key 1 found for root"
|
|
else
|
|
textFail "Found access key 1 for root "
|
|
fi
|
|
if [ "$ROOTKEY2" == "false" ];then
|
|
textPass "No access key 2 found for root"
|
|
else
|
|
textFail "Found access key 2 for root "
|
|
fi
|
|
}
|