Cloud Defense Logo

Products

Solutions

Company

Rule: S3 Bucket Versioning Should Be Enabled

This rule ensures that S3 bucket versioning is enabled for data protection and disaster recovery purposes.

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

S3 Bucket Versioning Compliance for NIST Cybersecurity Framework (CSF) v1

The National Institute of Standards and Technology (NIST) Cybersecurity Framework (CSF) Version 1.0 provides standards and best practices to help organizations manage cybersecurity risks. Enabling AWS S3 bucket versioning aligns with the framework by ensuring data integrity and availability, elements critical to the NIST CSF's "Protect" function.

Rule Description

Enabling versioning on an S3 bucket allows for the preservation, retrieval, and restoration of every version of every object stored in the bucket, providing a clear method to recover and restore data in the case of accidental deletion or malicious activity. This capability supports the NIST CSF by enabling recovery and resilience strategies.

Troubleshooting Steps

If versioning is not enabled, follow these steps to resolve the issue:

  1. 1.
    Confirm that the S3 bucket in question exists and you have the necessary permissions to modify its settings.
  2. 2.
    Check the current bucket versioning status.
  3. 3.
    Enable versioning if it is disabled.

Necessary Code

The AWS CLI can be used to enable versioning on an S3 bucket with the following command:

aws s3api put-bucket-versioning --bucket BUCKET_NAME --versioning-configuration Status=Enabled

Replace

BUCKET_NAME
with the name of your bucket.

Step by Step Guide for Remediation

  1. 1.

    Identify the S3 Bucket: Ensure you have the name of the S3 bucket you wish to configure.

  2. 2.

    Check Versioning Status: Use the AWS CLI to check the versioning status of your S3 bucket:

aws s3api get-bucket-versioning --bucket BUCKET_NAME

Replace

BUCKET_NAME
with your bucket's name. If the output does not indicate
"Status": "Enabled"
, you need to enable versioning.

  1. 1.
    Enable Versioning: If versioning is not enabled, execute the following command:
aws s3api put-bucket-versioning --bucket BUCKET_NAME --versioning-configuration Status=Enabled
  1. 1.

    Verify Versioning is Enabled: Run the

    get-bucket-versioning
    command again to ensure that versioning has been turned on.

  2. 2.

    Document the Change: To maintain compliance, document the change in your organization’s IT logs or compliance software.

CLI Commands

Here are the AWS CLI commands required:

  • To check versioning status:
aws s3api get-bucket-versioning --bucket BUCKET_NAME
  • To enable versioning:
aws s3api put-bucket-versioning --bucket BUCKET_NAME --versioning-configuration Status=Enabled

Note: Replace

BUCKET_NAME
with the actual name of your S3 bucket.

By covering the steps concisely without unnecessary fillers, we ensure the information provided is directly to the point, practical, and SEO friendly by concentrating on the relevant keywords and processes, which should naturally improve the SEO ranking for searches related to the NIST CSF and S3 versioning queries.

Is your System Free of Underlying Vulnerabilities?
Find Out Now