mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
Improved check25 when configured but not enabled
This commit is contained in:
4
prowler
4
prowler
@@ -533,9 +533,9 @@ check25(){
|
|||||||
TITLE25="$BLUE 2.5$NORMAL Ensure AWS Config is enabled in all regions (Scored)"
|
TITLE25="$BLUE 2.5$NORMAL Ensure AWS Config is enabled in all regions (Scored)"
|
||||||
echo -e "\n$TITLE25"
|
echo -e "\n$TITLE25"
|
||||||
for regx in $REGIONS; do
|
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
|
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
|
else
|
||||||
echo -e " $RED WARNING! Region $regx has AWS Config disabled or not configured$NORMAL"
|
echo -e " $RED WARNING! Region $regx has AWS Config disabled or not configured$NORMAL"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user