9 of 50 in All Controls
aws

Prohibit Public EBS and RDS Snapshots

IDAWS-DATA-003
Severity
critical
Automation
Auto
Category
data-protection
Enforcementmandatory
Complexity / Impact
low(none impact)
Risk Profile
medium likelihood(low residual)
Cloud Scopeaws:ou
Environments
productionnon-productionsandbox
Target Resources
EBSRDS
Services
ebsrdsconfigsecurityhuborganizationseventbridgelambda
Tags
data-protectionsnapshotebsrdspreventativedetectivelanding-zonescp
Frameworks
NIST 800-53ISO 27001HIPAAPCI DSSSOC 2CIS AWSAWS FSBP
Governance
Cloud Security (monthly)
Created
2026-05-03
Last Updated
2026-06-04

Specification & Description

Prevent Amazon EBS and RDS snapshots from being configured as publicly restorable across the entire organization using a combination of SCPs (preventative) and AWS Config managed rules with automated remediation (detective and corrective).

Technical Specifications

A publicly shared EBS or RDS snapshot is immediately accessible to any AWS account worldwide without authentication. The data within - which may include full database dumps, application volumes, secrets embedded in AMIs, or configuration files - is exposed at the snapshot level, bypassing all bucket policies, IAM boundaries, and network controls. This control operates at two layers. The preventative layer uses an SCP applied at the OU or root level to deny the ec2:ModifySnapshotAttribute action when the target group is "all", blocking public sharing before it takes effect. The detective layer deploys the AWS Config managed rules ebs-snapshot-public-restorable-check and rds-snapshots-public-prohibited as organization-level rules from the delegated administrator account, with EventBridge-triggered Lambda remediation to revoke public permissions on any snapshot that reaches a non-compliant state. Security Hub aggregates findings from both Config rules centrally in the security account.

Security Rationale

Publicly exposed snapshots are one of the most severe and direct data exfiltration vectors in AWS. Unlike misconfigured S3 buckets, snapshot exposure is binary - there is no partial access model. Any account that can enumerate public snapshots gains full read access to the contained data. Real-world incidents involving accidentally public RDS snapshots have resulted in the exposure of complete production databases. Enforcing this control centrally via SCP removes the dependency on member account teams to configure snapshot permissions correctly, which is particularly important in landing zones with many member accounts and varying security maturity.

Business & Security Impact

A publicly accessible snapshot exposes the full contents of the underlying storage volume or database to any AWS account globally. This can include customer PII, authentication credentials, API keys embedded in volumes, application source code, and database schema with data. The exposure is silent - no access logs are generated when a third party enumerates or restores a public snapshot - making detection after the fact difficult.

Policy Exceptions (2)

Cross-account snapshot sharing with explicitly named AWS account IDs is permitted and is not affected by this control. The SCP condition targets only the group value "all"; sharing with a named account ID proceeds normally through standard IAM and resource-based policies.

Snapshots used for regulated data migration to a trusted partner account may be temporarily shared with that specific account ID under a time-limited change request. Public sharing (group "all") remains prohibited without exception.

Operational & Implementation Notes

The SCP condition for EBS uses ec2:Add/group as the condition key, which is the correct key for ModifySnapshotAttribute actions that add group permissions. Verify this key is supported in your AWS Organizations policy engine version before applying at root level - test on a non-critical OU first. Note that AWS does not emit CloudTrail events when a third party enumerates or restores a public snapshot - exposure prior to remediation is not retroactively detectable through logs alone.

Compliance Framework Mappings (7)

Regulatory baselines and industry standards mapped to this control specification.

Beta
Framework / StandardMapped Requirements & ControlsControls
NIST 800-53 Rev 5NIST 800-53
AC-3SC-28
2
ISO 27001:2022ISO 27001
A.8.24
1
HIPAA Security RuleHIPAA
164.312(a)(2)(iv)
1
PCI DSS v4.0PCI DSS
3.5.1
1
SOC 2SOC 2
CC6.1
1
CIS AWS Foundations Benchmark v3.0CIS AWS
2.2.1
1
AWS Foundational Security Best PracticesAWS FSBP
EC2.1RDS.1
2

* Compliance framework mappings are provided for informational architectural reference. Always verify control alignment against your organization's formal audit requirements.

Automated Detection & Rule Logic

Detection Engine: config-rule • Automated: Yes

Two AWS Config managed rules provide continuous detection by flagging any snapshot where the createVolumePermission or restore attribute includes "all".

Verify Permissionsbash
# EBS
aws ec2 describe-snapshot-attribute \
  --snapshot-id <ID> \
  --attribute createVolumePermission \
  --query 'CreateVolumePermissions'

# RDS Manual & Cluster
aws rds describe-db-snapshot-attributes \
  --db-snapshot-identifier <ID> \
  --query 'DBSnapshotAttributesResult.DBSnapshotAttributes'

aws rds describe-db-cluster-snapshot-attributes \
  --db-cluster-snapshot-identifier <ID> \
  --query 'DBClusterSnapshotAttributesResult.DBClusterSnapshotAttributes'
Query Config Compliancebash
aws configservice get-compliance-details-by-config-rule \
  --config-rule-name ebs-public-check \
  --compliance-types NON_COMPLIANT \
  --region eu-central-1

Preventative Enforcement Policies

Deny Public Snapshotsjson
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "DenyPublicEBSSnapshotOnly",
      "Effect": "Deny",
      "Action": "ec2:ModifySnapshotAttribute",
      "Resource": "*",
      "Condition": { 
        "StringEquals": { "ec2:Add/group": "all" } 
      }
    },
    {
      "Sid": "DenyAllUnmanagedRDSSnapshotSharing",
      "Effect": "Deny",
      "Action": [
        "rds:ModifyDBSnapshotAttribute",
        "rds:ModifyDBClusterSnapshotAttribute"
      ],
      "Resource": "*",
      "Condition": {
        "ArnNotLike": {
          "aws:PrincipalArn": [
            "arn:aws:iam::*:role/LandingZoneAdminRole",
            "arn:aws:iam::*:role/SnapshotSharingAdminRole",
            "arn:aws:iam::*:role/aws-service-role/://amazonaws.com"
          ]
        }
      }
    }
  ]
}

Remediation Guide & Automation

Remove public permissions from any non-compliant EBS or RDS snapshot using the AWS CLI or deploy automated Lambda remediation triggered by AWS Config.

Step-by-Step Instructions

  1. Identify public snapshots via CLI discovery or Config compliance details.
  2. Run modify-snapshot-attribute (EBS) or modify-db-snapshot-attribute (RDS) to remove the 'all' group.
  3. Deploy organization-level Config rules with Lambda auto-remediation for continuous enforcement.
Discover Public Snapshotsbash
# EBS
aws ec2 describe-snapshots \
  --region eu-central-1 \
  --owner-ids self \
  --restorable-by-user-ids all \
  --query 'Snapshots[*].{ID:SnapshotId,Time:StartTime,Volume:VolumeId}' \
  --output table

# RDS (Manual & Cluster)
aws rds describe-db-snapshots \
  --region eu-central-1 \
  --snapshot-type manual \
  --include-public \
  --query 'DBSnapshots[?PubliclyAccessible==`true`].{ID:DBSnapshotIdentifier,Instance:DBInstanceIdentifier,Created:SnapshotCreateTime}' \
  --output table

aws rds describe-db-cluster-snapshots \
  --region eu-central-1 \
  --snapshot-type manual \
  --include-public \
  --query 'DBClusterSnapshots[?PubliclyAccessible==`true`].{ID:DBClusterSnapshotIdentifier,Cluster:DBClusterIdentifier,Created:SnapshotCreateTime}' \
  --output table
Revoke Public Accessbash
# EBS
aws ec2 modify-snapshot-attribute \
  --snapshot-id <ID> \
  --attribute createVolumePermission \
  --operation-type remove \
  --group-names all

# RDS Manual & Cluster
aws rds modify-db-snapshot-attribute \
  --db-snapshot-identifier <ID> \
  --attribute-name restore \
  --values-to-remove all

aws rds modify-db-cluster-snapshot-attribute \
  --db-cluster-snapshot-identifier <ID> \
  --attribute-name restore \
  --values-to-remove all
Config Auto-Remediationhcl
resource "aws_config_organization_managed_rule" "ebs" {
  name            = "ebs-public-check"
  rule_identifier = "EBS_SNAPSHOT_PUBLIC_RESTORABLE_CHECK"
}

resource "aws_config_organization_managed_rule" "rds" {
  name            = "rds-public-check"
  rule_identifier = "RDS_SNAPSHOTS_PUBLIC_PROHIBITED"
}

Supported Vendor Solutions (1)

Commercial CNAPP vendors and software integrations providing automated enforcement for this control, organized by solution category.

Palo Alto Networks Prisma Cloud
Palo Alto Networks Prisma CloudPalo Alto Networks Prisma Cloud is an enterprise-grade Cloud-Native Application Protection Platform (CNAPP) assembled through strategic technology integrations (including RedLock, Twistlock, Bridgecrew, Cider Security, and Dig Security). It delivers broad, full-lifecycle security spanning CSPM, KSPM, CWPP, CIEM, DSPM, and ASPM across multi-cloud and hybrid environments. While offering extensive depth across public clouds (AWS, Azure, GCP, OCI, Alibaba, IBM Cloud) and active in-line runtime protection via Defender agents, managing its broad multi-module feature set and RQL-based governance often requires significant administrative investment and specialized operational expertise.
Native
Upwind Security
Upwind SecurityUpwind Security is a runtime-powered Cloud-Native Application Protection Platform (CNAPP) built on lightweight eBPF (Extended Berkeley Packet Filter) architecture and agentless cloud scanning. By capturing continuous, kernel-level telemetry across processes, system calls, and Layer 3–7 network paths, Upwind correlates runtime context with cloud infrastructure posture (CSPM/KSPM), identity governance (CIEM), data security (DSPM), and application supply chain risks (ASPM). This cuts through alert noise by prioritizing risks based on actual in-memory runtime reachability and provides real-time active threat protection.
Native
Wiz
WizWiz is the industry-leading Cloud Native Application Protection Platform (CNAPP) that empowers organizations to secure everything they build and run in the cloud. By utilizing a proprietary 'Security Graph' engine, Wiz correlates data across CSPM, CWPP, CIEM, DSPM, and ASPM modules to eliminate the noise of siloed security tools. The platform provides a unified, contextual view of cloud risk, allowing security teams to prioritize and remediate the most critical toxic combinations such as vulnerabilities, excessive privileges, and exposed sensitive data across multi-cloud and containerized environments.
Native
Orca Security
Orca SecurityOrca Security is an enterprise-grade Cloud Native Application Protection Platform (CNAPP) that utilizes its patented SideScanning™ technology to provide deep, context-aware visibility into cloud environments across workloads, configurations, and identities without requiring operational agents.
Native

We value your privacy

We use analytics cookies to understand how visitors interact with our site and to improve the user experience. You can choose to accept or decline these cookies.