mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-11 07:15:15 +00:00
15 lines
625 B
Plaintext
15 lines
625 B
Plaintext
CHECK_ID_check19="1.9,1.09"
|
|
CHECK_TITLE_check19="Ensure IAM password policy requires minimum length of 14 or greater (Scored)"
|
|
CHECK_SCORED_check19="SCORED"
|
|
CHECK_ALTERNATE_check109="check19"
|
|
|
|
check19(){
|
|
# "Ensure IAM password policy requires minimum length of 14 or greater (Scored)"
|
|
COMMAND19=$($AWSCLI iam get-account-password-policy $PROFILE_OPT --region $REGION --output json --query 'PasswordPolicy.MinimumPasswordLength' 2> /dev/null)
|
|
if [[ $COMMAND19 -gt "13" ]];then
|
|
textOK "Password Policy requires more than 13 characters"
|
|
else
|
|
textWarn "Password Policy missing or weak length requirement"
|
|
fi
|
|
}
|