This rule ensures that EBS snapshots are not publicly restorable for security reasons.
Rule | EBS snapshots should not be publicly restorable |
Framework | RBI Cyber Security Framework |
Severity | ✔ Medium |
Rule Description:
The rule states that EBS (Elastic Block Store) snapshots should not be publicly restorable as per the RBI (Reserve Bank of India) Cyber Security Framework. This means that the EBS snapshots, which are used to back up data on Amazon Web Services (AWS), should not be accessible or restorable by anyone who is not authorized or does not have the required permission.
Troubleshooting Steps:
Verify Permissions:
Disable Public Restores:
Necessary Codes:
There are no specific codes required to implement this rule. However, the following AWS CLI command can be used for modifying snapshot permissions:
aws ec2 modify-snapshot-attribute --snapshot-id <snapshot-id> --attribute createVolumePermission --operation-type remove --user-ids all
This command will remove all user IDs from the snapshot's create volume permissions, effectively restricting public access. Replace
<snapshot-id>
with the actual ID of the EBS snapshot.Step-by-Step Guide for Remediation:
Follow these steps to ensure that EBS snapshots are not publicly restorable:
Step One - Identify EBS Snapshots:
Step Two - Check Snapshot Permissions:
Step Three - Modify Snapshot Permissions:
Step Four - Disable Public Restores:
Step Five - Repeat for All Snapshots:
By following the above steps, you can ensure that EBS snapshots are not publicly restorable, as required by the RBI Cyber Security Framework.