Prohibit Public EBS and RDS Snapshots
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.
Related Controls & Guardrails (1)
Compliance Framework Mappings (7)
Regulatory baselines and industry standards mapped to this control specification.
| Framework / Standard | Mapped Requirements & Controls | Controls |
|---|---|---|
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".
Preventative Enforcement Policies
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
- Identify public snapshots via CLI discovery or Config compliance details.
- Run modify-snapshot-attribute (EBS) or modify-db-snapshot-attribute (RDS) to remove the 'all' group.
- Deploy organization-level Config rules with Lambda auto-remediation for continuous enforcement.
Supported Vendor Solutions (1)
Commercial CNAPP vendors and software integrations providing automated enforcement for this control, organized by solution category.