Welcome to Day 18 of the 30 Days AWS Security Challenge. Yesterday we pulled findings together in Security Hub. Today we go back to S3, but from a different angle than Day 8. Instead of asking whether a bucket is configured securely, we ask a different question: do you actually know what's inside it?
The Problem You Don't Know You Have
Most teams have S3 buckets that have grown organically over time, filled by different applications, different people, and different processes, often without a clear inventory of what's actually stored where. It's entirely possible to have a bucket holding customer names, social security numbers, or payment details without anyone on the current team knowing it's there. You can lock down every bucket permission perfectly and still be exposed if you don't know sensitive data exists in the first place. That's the gap Macie is built to close.
What Macie Actually Does
Amazon Macie is a data security service that uses machine learning and pattern matching to automatically scan S3 buckets and identify sensitive data. Rather than you manually opening files and searching for what's inside, Macie scans content and classifies what it finds, flagging things like:
- Personally identifiable information (PII), like names, addresses, and social security numbers
- Financial data, like credit card numbers and bank account details
- Credentials, like access keys accidentally left in a file
- Health information covered under regulations like HIPAA
Macie doesn't just tell you data exists, it tells you which specific bucket and object it's in, and pairs that with information about how that bucket is configured, so you can see sensitive data sitting in a bucket that also happens to be publicly accessible, which is exactly the kind of combination that leads to a real breach.
How Scanning Works
Macie runs discovery jobs against your S3 buckets, either as a one time scan or on a recurring schedule. You can choose to scan all buckets in your account or target specific ones, and you can sample a percentage of objects instead of scanning everything, which helps manage cost on very large buckets.
To get started, go to Macie > Get Started to enable the service, then create a discovery job under S3 buckets > Create job, selecting which buckets to scan and how often. Macie will begin analyzing object content and surfacing findings as it works through your data.
Reading Macie's Findings
Findings appear under Macie > Findings, each one showing what type of sensitive data was detected, in which bucket and object, and a severity level based on how sensitive the data is and how exposed the bucket is. A finding showing unencrypted social security numbers in a publicly accessible bucket would rightly show as a high severity issue demanding immediate attention, while a finding in a properly locked down, encrypted bucket used only by an internal team carries much lower urgency.
Why This Matters Beyond Just Finding Data
Knowing where sensitive data lives feeds directly into decisions we've already covered earlier in this challenge. It tells you which buckets most urgently need the Block Public Access settings from Day 8, which ones justify a customer managed KMS key from Day 9 rather than a default one, and which ones deserve the tightest possible IAM policies. Macie essentially tells you where to focus the effort from everything else you've learned this month.
It also matters directly for compliance. If you're subject to regulations covering personal or financial data, being able to demonstrate that you know where that data lives, and that it's properly protected, is often a specific requirement, not just a nice to have.
A Practical Example
Imagine running a discovery job across your S3 buckets and finding that an old, forgotten backup bucket from a project two years ago contains customer records with names and email addresses, and that bucket happens to allow public read access. Without Macie, this could sit undiscovered indefinitely. With Macie, it shows up as a high severity finding, giving you the chance to lock it down or delete it entirely before it becomes an actual incident.
Key Takeaways
- Macie automatically scans S3 content to identify sensitive data like PII, financial details, and credentials
- Findings combine what data was found with how exposed the bucket holding it is
- Run discovery jobs on a schedule rather than as a one time check, since new data accumulates constantly
- Use Macie's findings to prioritize which buckets need encryption, access restrictions, or cleanup most urgently
- Knowing where sensitive data lives is often a direct compliance requirement, not just good practice
Tomorrow we shift from data discovery to vulnerability scanning, with AWS Inspector and how it automatically checks your workloads for known security weaknesses.
Loading article