Skip to content

Conversation

@NMuee
Copy link
Contributor

@NMuee NMuee commented Mar 3, 2022

Context

My AWS account is encountering false positive with extra7167
We do not have any cloudfront distribution, yet they are being flagged as
"Cloudfront distribution None is not protected by AWS Shield Advanced"
due to aws cloudfront list-distributions --profile $profile --query 'DistributionList.Items[*].[Id,ARN]' --output text is outputting as 'None' even thought there is no cloudfront distribution.

Description

In the if statement, Instead of detecting if there is any value in the variable $LIST_OF_CLOUDFRONT_DISTRIBUTIONS, I updated the code with $LIST_OF_CLOUDFRONT_DISTRIBUTIONS != 'None'

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@NMuee NMuee requested review from a team, jfagoagas, n4ch04 and toniblyx March 3, 2022 04:55
@toniblyx toniblyx changed the title fix: not to flag as finding for account without cloudfront distributions fix: extra7167 Advanced Shield and CloudFront bug parsing None output without distributions Mar 3, 2022
@NMuee NMuee requested a review from toniblyx March 4, 2022 03:29
@toniblyx
Copy link
Member

toniblyx commented Mar 4, 2022

Awesome, thanks @NMuee!

@toniblyx toniblyx merged commit f3ff836 into prowler-cloud:master Mar 4, 2022
toniblyx added a commit that referenced this pull request Mar 4, 2022
…e output without distributions (#1053)"

This reverts commit f3ff836.
n4ch04 pushed a commit that referenced this pull request Mar 4, 2022
…e output without distributions (#1053)" (#1054)

This reverts commit f3ff836.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants