Cloud Defense Logo

Products

Solutions

Company

Book A Live Demo

Rule: S3 Bucket Versioning Should Be Enabled

Ensure that S3 bucket versioning is enabled to maintain data integrity and protect against accidental deletions.

RuleS3 bucket versioning should be enabled
FrameworkNIST Cybersecurity Framework (CSF) v1.1
Severity
High

Rule Description:

S3 bucket versioning should be enabled to align with the security controls of the NIST Cybersecurity Framework (CSF) v1. Versioning helps in preserving multiple versions of an object within an S3 bucket, providing backup and recovery capabilities, as well as protection against accidental deletion or modification of data.

Enabling versioning ensures that all modifications made to objects stored within the S3 bucket are tracked and preserved, allowing for easy restoration to a previous state if necessary.

Troubleshooting Steps:

If versioning is not enabled for an S3 bucket, follow these steps to troubleshoot and enable versioning:

Step 1: Verify Bucket Properties

  1. 1.
    Log in to the AWS Management Console and navigate to the S3 service.
  2. 2.
    Select the bucket you want to enable versioning for.
  3. 3.
    Click on the "Properties" tab.

Step 2: Check Versioning Status

  1. 1.
    Under the "Advanced settings" section, locate the "Versioning" option.
  2. 2.
    If it is not already enabled, click on the "Edit" button.

Step 3: Enable Versioning

  1. 1.
    Select the "Enable versioning" option.
  2. 2.
    Review the implications of enabling versioning on the bucket, such as potential increase in storage costs.
  3. 3.
    Click on the "Save changes" button.

Step 4: Verify Versioning Status

  1. 1.
    Return to the bucket properties and confirm that versioning is now enabled. You should see a message indicating that versioning is enabled for the bucket.

Necessary Codes:

No code is necessary for enabling versioning for an S3 bucket. This process can be achieved entirely through the AWS Management Console.

Remediation Steps:

To enable versioning for an S3 bucket, follow these step-by-step guide:

  1. 1.
    Log in to the AWS Management Console and navigate to the S3 service.
  2. 2.
    Select the bucket for which you want to enable versioning.
  3. 3.
    Click on the "Properties" tab.
  4. 4.
    Under the "Advanced settings" section, locate the "Versioning" option.
  5. 5.
    If versioning is not already enabled, click on the "Edit" button.
  6. 6.
    Select the "Enable versioning" option.
  7. 7.
    Review the implications of enabling versioning on the bucket in terms of potential increase in storage costs.
  8. 8.
    Click on the "Save changes" button.
  9. 9.
    Confirm that versioning is now enabled by returning to the bucket properties page and verifying the status message.

Note: Enabling versioning does not retroactively apply it to any existing objects in the bucket. It will only track modifications made to objects after versioning is enabled.

Is your System Free of Underlying Vulnerabilities?
Find Out Now