# 2.1.3 Ensure all data in Amazon S3 has been discovered, classified, and secured when necessary (Manual)

- Source: https://support.icompaas.com/support/solutions/articles/62000234224-2-1-3-ensure-all-data-in-amazon-s3-has-been-discovered-classified-and-secured-when-necessary-manua
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [CIS Amazon Web Services Foundations Benchmark v5.0.0](https://support.icompaas.com/support/solutions/62000112684) › [CIS AWS Benchmarks](https://support.icompaas.com/support/solutions/folders/62000169233)
- Last updated: 2026-05-29
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

#### Profile Applicability

-   **Level 1**

#### Description:

Amazon S3 is widely used for storing data in AWS. To maintain data security and comply with regulatory standards, it is important to ensure that all data in S3 has been discovered, classified, and secured. This process involves identifying sensitive data (such as personally identifiable information or financial data), applying appropriate access controls, and ensuring that data is encrypted when necessary.

Data discovery and classification help identify sensitive or regulated data that requires special handling or protection. Securing the data in Amazon S3 involves implementing encryption, access control policies, and monitoring to ensure that data remains protected throughout its lifecycle.

#### Rationale:

Ensuring that all data in S3 is discovered, classified, and secured provides:

-   Data protection: Identifies sensitive data and ensures that proper security controls (encryption, access control) are in place.  
    
-   Compliance: Meets regulatory requirements (e.g., HIPAA, PCI-DSS, GDPR) that mandate the discovery, classification, and protection of sensitive data.  
    
-   Auditability: Establishes a clear, documented process for handling sensitive data, ensuring that data is appropriately secured and complies with security policies.  
    

Without data discovery, classification, and securing processes in place, organizations risk exposing sensitive information or failing to meet regulatory obligations.

#### Impact:

Failure to ensure that all data in S3 has been discovered, classified, and secured can result in:

-   Data breaches: Sensitive data may be left unsecured or improperly protected.  
    
-   Compliance violations: Failing to classify and secure sensitive data can result in non-compliance with regulatory standards.  
    
-   Increased security risks: Improperly secured data may be accessed by unauthorized users or exposed to attacks.  
    

Ensuring data is discovered, classified, and secured reduces the risk of data exposure, breaches, and compliance issues.

#### Default Value:

By default, Amazon S3 does not classify or secure data automatically. Organizations need to actively implement data discovery and classification processes, such as using AWS Macie for data discovery, and apply appropriate encryption and access controls.

#### Pre-Requisites:

-   AWS CLI installed and configured  
    
-   IAM permissions:  
    
    -   s3:ListBucket  
        
    -   s3:GetObject  
        
    -   macie2:ListFindings  
        
    -   macie2:GetSensitiveDataOccurrences  
        
-   AWS Macie or other data discovery tools should be set up for sensitive data discovery and classification  
    

#### Remediation:

##### Test Plan:

Using AWS Console:

1.  Go to the [S3 Console](https://console.aws.amazon.com/s3/).  
    
2.  Review the buckets and check for sensitive data by using Amazon Macie or manual classification.  
    
3.  Ensure that encryption is enabled for sensitive data stored in S3 and that appropriate access controls (IAM policies, bucket policies) are applied.  
    
4.  Verify that only authorized users have access to sensitive data and that permissions are following the principle of least privilege.  
    

Using AWS CLI:

aws macie2 list-findings --query "findings\[\*\].{FindingId: id, Severity: severity, Classification: classificationDetails}" --output table

To verify S3 encryption:

aws s3api get-bucket-encryption --bucket <bucket-name> --query "ServerSideEncryptionConfiguration" --output table

  

##### Implementation Plan:

Using AWS Console:

1.  Enable data discovery and classification with AWS Macie:  
    
    -   Go to the [AWS Macie Console](https://console.aws.amazon.com/macie/).  
        
    -   Enable Macie in the desired regions.  
        
    -   Use Macie to scan S3 buckets for sensitive data and classify it.  
        
    -   Review findings and apply appropriate security measures, such as encryption and access controls.  
        
2.  Ensure that S3 data is encrypted:  
    
    -   Go to the [S3 Console](https://console.aws.amazon.com/s3/).  
        
    -   For each S3 bucket, go to the Properties tab and ensure that Default encryption is enabled.  
        
    -   Enable server-side encryption (SSE-S3 or SSE-KMS) for the S3 bucket.  
        
3.  Implement proper access controls:  
    
    -   In the S3 Console, review Bucket Policies and IAM Policies to ensure they enforce least privilege access to sensitive data.
        
    -   Consider implementing MFA for deleting objects or using S3 Block Public Access settings to avoid unintentional exposure.  
        

Using AWS CLI:

1.  Enable Macie and start a classification job:  
    

aws macie2 create-classification-job --job-type ONE\_TIME --s3-job-definition "bucketDefinitions=\[{bucketName=<bucket-name>}\]"

2.  Verify S3 bucket encryption:  
    

aws s3api get-bucket-encryption --bucket <bucket-name> --query "ServerSideEncryptionConfiguration"

3.  Ensure encryption is enabled on S3 buckets:  
    

aws s3api put-bucket-encryption --bucket <bucket-name> --server-side-encryption-configuration '{"Rules":\[{"ApplyServerSideEncryptionByDefault":{"SSEAlgorithm":"AES256"}}\]}'

#### Backout Plan:

Using AWS Console:

1.  If enabling encryption causes issues with accessing data:  
    
    -   Go to the [S3 Console](https://console.aws.amazon.com/s3/).  
        
    -   Disable encryption by modifying the Default encryption settings.
        
    -   If issues persist, investigate and troubleshoot any IAM or bucket policy settings that may be conflicting with access control.  
        
2.  Revert classification findings:  
    
    -   Go to the [AWS Macie Console](https://console.aws.amazon.com/macie/).  
        
    -   Disable Macie and review any classification findings that need remediation or deletion.  
        

Using AWS CLI:

1.  Temporarily disable encryption:  
    

aws s3api put-bucket-encryption --bucket <bucket-name> --server-side-encryption-configuration '{}'

2.  Stop Macie classification jobs:  
    

aws macie2 cancel-classification-job --job-id <job-id>

3.  Re-enable classification and encryption once issues are resolved:
    

aws s3api put-bucket-encryption --bucket <bucket-name> --server-side-encryption-configuration '{"Rules":\[{"ApplyServerSideEncryptionByDefault":{"SSEAlgorithm":"AES256"}}\]}'

aws macie2 create-classification-job --job-type ONE\_TIME --s3-job-definition "bucketDefinitions=\[{bucketName=<bucket-name>}\]"

#### References:

-   [AWS S3 Documentation  
    ](https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html)
    
-   [AWS Macie Documentation  
    ](https://docs.aws.amazon.com/macie/latest/userguide/)
    
-   [AWS CLI Command Reference for S3  
    ](https://docs.aws.amazon.com/cli/latest/reference/s3api/)
    

#### CIS Controls Mapping:

<table style="border:none;border-collapse:collapse"><tbody><tr style="height:39.25pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:700;font-family:&quot;Helvetica Neue&quot;">CIS Control Version</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:700;font-family:&quot;Helvetica Neue&quot;">Control ID</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:700;font-family:&quot;Helvetica Neue&quot;">Control Description</span></span></span></p></td></tr><tr style="height:39.25pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">CIS v8</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">4.9</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">Perform Continuous Security Monitoring and Incident Detection</span></span></span></p></td></tr><tr style="height:25pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">CIS v7</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">6.3</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">Monitor Security Configurations for Compliance</span></span></span></p></td></tr><tr style="height:39.25pt"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">CIS v7</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">5.2</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;text-align:justify"><span style="font-family:&quot;Helvetica Neue&quot;;font-size:14px"><span dir="ltr" style="color:rgb(0, 0, 0);font-weight:400">Securely Manage and Monitor Cloud Accounts and Services</span></span></p></td></tr></tbody></table>

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
