Data stored in S3 should be discovered and classified
This check looks at whether you have a way to find out what kind of data sits in your S3 buckets, for example with Amazon Macie, and whether sensitive data found is secured. The safe setting is sensitive data discovery that is switched on and covers your buckets, with findings that somebody follows up.
Why it matters
Buckets collect data over years, and nobody remembers what ended up where. A bucket with customer records or credentials inside is far riskier than one with public images, but you only protect it properly if you know it is there. Discovery turns a guess into a list so you can lock down the buckets that matter and keep sensitive data out of places that are widely readable.
Amazon documents this in What is Amazon Macie? and Performing automated sensitive data discovery. A tool can show that discovery is on, but a person must act on what it finds.
How to check it yourself
Portal path: AWS console → Amazon Macie → Summary, to see whether Macie is enabled in each Region you use, then Buckets and Findings to see what it has found. In Settings you can see whether automated sensitive data discovery is on.
Read-only AWS CLI commands (run per Region):
aws macie2 get-macie-session --region eu-west-1
aws macie2 get-automated-discovery-configuration --region eu-west-1
aws macie2 list-classification-jobs --region eu-west-1
aws macie2 describe-buckets --region eu-west-1 --query 'buckets[].bucketName'The setting is in place when Macie is enabled, discovery is running for the buckets in scope and open findings have an owner. A call that returns an access error usually means Macie has never been enabled in that Region. Region and bucket names above are examples only.
How to fix it
Portal steps: open Amazon Macie in each Region that holds data and choose Get started to enable it. Turn on automated sensitive data discovery, or create a one-off or scheduled classification job that selects the buckets to scan. Then review the findings, restrict access to buckets that hold sensitive data, and remove data that should not be there.
Scripted alternative. It enables a service in your account, so check it first; ConfigCobra itself never changes your AWS account and only reads it:
aws macie2 enable-macie --region eu-west-1
aws macie2 update-automated-discovery-configuration --status ENABLED --region eu-west-1Plan the follow-up work too: a discovery tool that nobody reads gives no protection.
What changes when you fix it
Macie reads objects in your buckets to look for sensitive data, but it does not change them. The people affected are the bucket owners and the security team: they get findings to work through, and they may be asked to tighten access or move data.
Using Macie is a billed service and scanning many objects can add to your AWS bill, so check the current Macie pricing page and scope the first jobs to the buckets you care most about. Applications that use the buckets keep working. If you later restrict bucket access based on a finding, test that change first because it can block a person or application that relied on the old access.
Included in
| Benchmark | CIS ID | Profile |
|---|---|---|
| CIS Amazon Web Services Foundations v7.0.0 | 3.1.3 | Level 2 |
Check this on your AWS
ConfigCobra runs this check with every other control of the CIS Amazon Web Services Benchmarks, read-only.