AWS in 1 Min · Episode 146

Amazon Macie explained: finding sensitive data in S3

Where is your sensitive data?. Watch the one-minute video, then read the details.

David Gomez1:12 video · 2 min read

"We know where our personal data lives." Do you? Database exports, application logs, analytics extracts and test copies spread customer data into S3 buckets that nobody remembers creating. Amazon Macie exists to answer the question honestly: where is our sensitive data, and who can reach it?

What Macie does

Macie is a data security service for Amazon S3. It discovers sensitive data using machine learning and pattern matching, and it monitors your buckets for security and access risks. It does not scan databases or file systems; if the data lives outside S3, you need another approach (or an export to S3).

Step one: the bucket inventory

As soon as you enable it, Macie builds and maintains an inventory of your S3 general purpose buckets: public access settings, encryption, sharing with other accounts, and how much of each bucket it can analyse. If a bucket's security changes for the worse, for example it becomes publicly accessible, Macie raises a policy finding. This part alone is useful, and it is included in the 30-day free trial.

Step two: discovering sensitive data

Macie looks inside objects with data identifiers:

  • Managed data identifiers built by AWS detect many types of personally identifiable information, financial data such as credit card numbers, and credentials such as private keys, for many countries and regions.
  • Custom data identifiers are your own regular expressions (with optional keywords and proximity rules), for things like employee or customer IDs.
  • Allow lists tell Macie what to ignore, such as your company's public phone number.

There are two ways to run discovery:

  1. Automated sensitive data discovery continually samples representative objects across your buckets, giving you a broad, low-cost map of where sensitive data probably lives.
  2. Sensitive data discovery jobs analyse the buckets you choose in depth, once or on a schedule.

Every hit becomes a sensitive data finding, published to Amazon EventBridge and, if you enable it, AWS Security Hub, so you can alert someone or trigger a fix automatically. A common mistake is running one big job, reading the report, and never looking again: data keeps arriving, so keep automated discovery on.

Where AI fits

AI projects move data in bulk. A bucket that becomes training data or the source of a knowledge base for retrieval-augmented generation can carry personal data straight into a model or into its answers. Scan those buckets with Macie before you connect them, and again when new data lands. Removing a customer's details from a bucket is a delete; removing them from a trained model or an indexed knowledge base is a much bigger job. Macie itself uses machine learning to recognise sensitive data, which is how it scales to buckets no human could read.

Quick recap

  • Macie scans S3: bucket inventory and policy findings, then sensitive data discovery.
  • Managed and custom identifiers, sampling for breadth and jobs for depth.
  • Check data before AI sees it: scan training and knowledge-base buckets first.
AWS in 1 Min #146 · 1:12

Need an AWS expert on your team?

I'm David, an AWS expert and fractional cloud consultant. I work alongside your team to run your cloud and infrastructure: architecture, security, cost and day-to-day operations. You get senior AWS experience when you need it, without the cost of a full-time hire.

  • Architecture reviews and a clear plan for what to fix first
  • Security hardening: IAM, networking, audits
  • Lower AWS bills without slowing your team down
  • Hands-on help with AI workloads on AWS