From f7256d1b974cdb7cfc851345c5c4f843110e598f Mon Sep 17 00:00:00 2001 From: Toni de la Fuente Date: Wed, 12 Oct 2016 15:29:33 -0400 Subject: [PATCH] Improved check25 when configured but not enabled --- prowler | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prowler b/prowler index 6226d4d1..dc25ffee 100755 --- a/prowler +++ b/prowler @@ -533,9 +533,9 @@ check25(){ TITLE25="$BLUE 2.5$NORMAL Ensure AWS Config is enabled in all regions (Scored)" echo -e "\n$TITLE25" for regx in $REGIONS; do - CHECK_AWSCONFIG_STATUS=$($AWSCLI configservice get-status --profile $PROFILE --region $regx | grep recorder) + CHECK_AWSCONFIG_STATUS=$($AWSCLI configservice get-status --profile $PROFILE --region $regx | grep "recorder: ON") if [[ $CHECK_AWSCONFIG_STATUS ]];then - echo -e " $OK Region $regx has AWS Config $CHECK_AWSCONFIG_STATUS $NORMAL" + echo -e " $OK Region $regx has AWS Config recorder: ON $NORMAL" else echo -e " $RED WARNING! Region $regx has AWS Config disabled or not configured$NORMAL" fi