Check provider logo

DocumentDB manual cluster snapshot is not shared publicly

documentdb_cluster_public_snapshot

Severitycritical
Servicedocumentdb
by Prowler

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.

Run this check with Prowler CLI

prowler aws --checks documentdb_cluster_public_snapshot

Fix finding with Prowler CLI

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

CLI

aws docdb modify-db-cluster-snapshot-attribute --db-cluster-snapshot-identifier <snapshot_id> --attribute-name restore --values-to-remove all

Other
  1. Open the Amazon DocumentDB console and go to Snapshots
  2. Select the public manual cluster snapshot
  3. Click Actions > Share
  4. Set DB snapshot visibility to Private (remove "all" if listed)
  5. Click Save

Source Code

Resource Type

AwsRdsDbClusterSnapshot

References