mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
2
prowler
2
prowler
@@ -1417,7 +1417,7 @@ extra72(){
|
|||||||
textTitle "$ID72" "$TITLE72" "NOT_SCORED" "EXTRA"
|
textTitle "$ID72" "$TITLE72" "NOT_SCORED" "EXTRA"
|
||||||
textNotice "Looking for EBS Snapshots in all regions... "
|
textNotice "Looking for EBS Snapshots in all regions... "
|
||||||
for regx in $REGIONS; do
|
for regx in $REGIONS; do
|
||||||
LIST_OF_EBS_SNAPSHOTS=$($AWSCLI ec2 describe-snapshots --profile $PROFILE --region $regx --owner-ids $ACCOUNT_NUM --output text --query 'Snapshots[*].{ID:SnapshotId}')
|
LIST_OF_EBS_SNAPSHOTS=$($AWSCLI ec2 describe-snapshots --profile $PROFILE --region $regx --owner-ids $ACCOUNT_NUM --output text --query 'Snapshots[*].{ID:SnapshotId}' --max-items $MAXITEMS | grep -v None 2> /dev/null)
|
||||||
for snapshot in $LIST_OF_EBS_SNAPSHOTS; do
|
for snapshot in $LIST_OF_EBS_SNAPSHOTS; do
|
||||||
SNAPSHOT_IS_PUBLIC=$($AWSCLI ec2 describe-snapshot-attribute --profile $PROFILE --region $regx --output text --snapshot-id $snapshot --attribute createVolumePermission --query "CreateVolumePermissions[?Group=='all']")
|
SNAPSHOT_IS_PUBLIC=$($AWSCLI ec2 describe-snapshot-attribute --profile $PROFILE --region $regx --output text --snapshot-id $snapshot --attribute createVolumePermission --query "CreateVolumePermissions[?Group=='all']")
|
||||||
if [[ $SNAPSHOT_IS_PUBLIC ]];then
|
if [[ $SNAPSHOT_IS_PUBLIC ]];then
|
||||||
|
|||||||
Reference in New Issue
Block a user