mirror of
https://github.com/prowler-cloud/prowler.git
synced 2025-12-19 05:17:47 +00:00
25 lines
951 B
Bash
25 lines
951 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Prowler - the handy cloud security tool (c) by Toni de la Fuente
|
|
#
|
|
# This Prowler check is licensed under a
|
|
# Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
|
|
#
|
|
# You should have received a copy of the license along with this
|
|
# work. If not, see <http://creativecommons.org/licenses/by-nc-sa/4.0/>.
|
|
|
|
CHECK_ID_check17="1.7,1.07"
|
|
CHECK_TITLE_check17="[check17] Ensure IAM password policy require at least one symbol (Scored)"
|
|
CHECK_SCORED_check17="SCORED"
|
|
CHECK_ALTERNATE_check107="check17"
|
|
|
|
check17(){
|
|
# "Ensure IAM password policy require at least one symbol (Scored)"
|
|
COMMAND17=$($AWSCLI iam get-account-password-policy $PROFILE_OPT --region $REGION --output json --query 'PasswordPolicy.RequireSymbols' 2> /dev/null) # must be true
|
|
if [[ "$COMMAND17" == "true" ]];then
|
|
textPass "Password Policy requires symbol"
|
|
else
|
|
textFail "Password Policy missing symbol requirement"
|
|
fi
|
|
}
|