mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
15 lines
530 B
Plaintext
15 lines
530 B
Plaintext
CHECK_ID_check113="1.13"
|
|
CHECK_TITLE_check113="[check113] Ensure MFA is enabled for the root account (Scored)"
|
|
CHECK_SCORED_check113="SCORED"
|
|
CHECK_ALTERNATE_check113="check113"
|
|
|
|
check113(){
|
|
# "Ensure MFA is enabled for the root account (Scored)"
|
|
COMMAND113=$($AWSCLI iam get-account-summary $PROFILE_OPT --region $REGION --output json --query 'SummaryMap.AccountMFAEnabled')
|
|
if [ "$COMMAND113" == "1" ]; then
|
|
textPass "Virtual MFA is enabled for root"
|
|
else
|
|
textFail "MFA is not ENABLED for root account "
|
|
fi
|
|
}
|