Amazon DocumentDB manual cluster snapshot visibility is evaluated to detect snapshots marked as public instead of limited to specified AWS accounts.
Risk
Public snapshots weaken confidentiality: any AWS account can restore and read database contents, enabling data exfiltration.
They also aid lateral movement by revealing embedded secrets/config and reduce accountability when restores occur outside your account.
prowler aws --checks documentdb_cluster_public_snapshot
prowler aws --checks documentdb_cluster_public_snapshot --fixer
Recommendation
Keep snapshot visibility Private and share only with trusted accounts under least privilege. Prefer CMEK encryption to enforce key-based access and prevent public sharing. Periodically review sharing lists, restrict IAM permissions that alter visibility, and monitor for exposure as defense in depth.
Remediation
aws docdb modify-db-cluster-snapshot-attribute --db-cluster-snapshot-identifier <snapshot_id> --attribute-name restore --values-to-remove all
- Open the Amazon DocumentDB console and go to Snapshots
- Select the public manual cluster snapshot
- Click Actions > Share
- Set DB snapshot visibility to Private (remove "all" if listed)
- Click Save
Source Code
Resource Type
AwsRdsDbClusterSnapshot
References
- https://docs.aws.amazon.com/documentdb/latest/developerguide/backup_restore-share_cluster_snapshots.html#backup_restore-share_snapshots
- https://docs.aws.amazon.com/securityhub/latest/userguide/documentdb-controls.html#documentdb-3
- https://docs.aws.amazon.com/config/latest/developerguide/docdb-cluster-snapshot-public-prohibited.html