mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
6
prowler
6
prowler
@@ -819,9 +819,9 @@ check114(){
|
|||||||
COMMAND113=$($AWSCLI iam get-account-summary $PROFILE_OPT --region $REGION --output json --query 'SummaryMap.AccountMFAEnabled')
|
COMMAND113=$($AWSCLI iam get-account-summary $PROFILE_OPT --region $REGION --output json --query 'SummaryMap.AccountMFAEnabled')
|
||||||
textTitle "$ID114" "$TITLE114" "SCORED" "LEVEL1"
|
textTitle "$ID114" "$TITLE114" "SCORED" "LEVEL1"
|
||||||
if [ "$COMMAND113" == "1" ]; then
|
if [ "$COMMAND113" == "1" ]; then
|
||||||
COMMAND114=$($AWSCLI iam list-virtual-mfa-devices $PROFILE_OPT --region $REGION --query 'VirtualMFADevices' --output text|grep :root |wc -l)
|
COMMAND114=$($AWSCLI iam list-virtual-mfa-devices $PROFILE_OPT --region $REGION --output text --assignment-status Assigned --query 'VirtualMFADevices[*].[SerialNumber]' | grep '^arn:aws:iam::[0-9]\{12\}:mfa/root-account-mfa-device$')
|
||||||
if [ "$COMMAND114" == "1" ]; then
|
if [[ "$COMMAND114" ]]; then
|
||||||
textOK "Virtual MFA is enabled for root"
|
textWarn "Only Virtual MFA is enabled for root"
|
||||||
else
|
else
|
||||||
textOK "Hardware MFA is enabled for root "
|
textOK "Hardware MFA is enabled for root "
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user