Skip to content

Commit

Permalink
Fix check12's grep to find users with true in their name who really h…
Browse files Browse the repository at this point in the history
…ave password access @nimrodkor @bridgecrewio

Fix check12's grep to find users with true in their name who really have password access @nimrodkor @bridgecrewio
  • Loading branch information
toniblyx authored Apr 29, 2020
2 parents e4ae0a4 + dbca70e commit 5450bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks/check12
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ CHECK_ALTERNATE_check102="check12"
check12(){
# "Ensure multi-factor authentication (MFA) is enabled for all IAM users that have a console password (Scored)"
# List users with password enabled
COMMAND12_LIST_USERS_WITH_PASSWORD_ENABLED=$(cat $TEMP_REPORT_FILE|awk -F, '{ print $1,$4 }' |grep true | awk '{ print $1 }')
COMMAND12_LIST_USERS_WITH_PASSWORD_ENABLED=$(cat $TEMP_REPORT_FILE|awk -F, '{ print $1,$4 }' |grep -F ' true$' | awk '{ print $1 }')
COMMAND12=$(
for i in $COMMAND12_LIST_USERS_WITH_PASSWORD_ENABLED; do
cat $TEMP_REPORT_FILE|awk -F, '{ print $1,$8 }' |grep "^$i " |grep false | awk '{ print $1 }'
Expand Down

0 comments on commit 5450bf9

Please sign in to comment.