Finding Sensitive Data with Amazon Macie
Use machine learning to discover PII stored in S3 buckets.
Finding Sensitive Data with Amazon Macie is a free AWS Security Academy lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the AWS Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
The Hidden Data Problem
You cannot protect data you do not know exists. Over time, S3 buckets fill with files, and somewhere among them may be customer PII, credentials, or financial records nobody remembers storing.
Amazon Macie solves this by automatically discovering and classifying sensitive data across your S3 storage.
What Macie Does
Macie is a data security service that uses machine learning and pattern matching to find sensitive data in S3.
It identifies PII (personally identifiable information) such as names, addresses, and government IDs, plus financial and credential data — then reports where it lives and how exposed it is.
Sensitive Data Discovery
Macie runs discovery jobs that sample or scan objects in selected buckets and classify their contents.
A job produces findings detailing what type of sensitive data was found, in which object, and in what quantity. You can run jobs once or on a schedule to keep classifications current as data changes.
Managed and Custom Identifiers
Macie ships with managed data identifiers for common types like credit-card numbers, AWS secret keys, and passport numbers.
You can also define custom data identifiers using regular expressions to catch organization-specific patterns — an internal account-number format, for example — so Macie understands what is sensitive to you.
Bucket Inventory and Posture
Beyond content, Macie continuously evaluates your S3 security posture. It flags buckets that are publicly accessible, unencrypted, or shared with other accounts.
This inventory view answers a critical question at a glance: which buckets hold sensitive data and are also exposed? Those are your top priorities.
Reading Macie Findings
Macie produces two finding categories: sensitive data findings (this object contains PII) and policy findings (this bucket's settings are risky).
Each finding carries a severity and details. The highest-risk combination is sensitive data sitting in a bucket that is also publicly accessible or unencrypted.
Macie and Security Hub
Macie findings flow into AWS Security Hub in the normalized ASFF format, joining alerts from GuardDuty and other services in one place.
They can also trigger EventBridge rules, so discovering exposed PII can automatically launch a remediation workflow — for example, restricting the bucket or alerting the data owner.
Cost-Aware Scanning
Scanning every object continuously can be expensive, since Macie charges by the amount of data inspected.
Use sampling, target only buckets likely to hold sensitive data, and schedule jobs sensibly. Macie's automated discovery feature intelligently samples buckets to give broad coverage at a controlled cost.
Act on What You Find
Discovery is only valuable if you respond. When Macie finds PII in an exposed bucket, remediate: enable Block Public Access, turn on encryption, tighten the bucket policy, or move the data to a properly secured location.
Track findings to closure so sensitive data does not linger unprotected.
Automate Discovery
Macie's automated sensitive data discovery continuously samples buckets across your account, building an evolving map of where sensitive data lives without you scheduling individual jobs.
Pair it with scheduled deep-discovery jobs on your highest-risk buckets for thorough coverage that keeps pace as data is added and changed.
Compliance Value
Regulations like GDPR, HIPAA, and PCI DSS require you to know where regulated data resides. Macie's automated discovery and reporting provide exactly that evidence.
It turns a manual, error-prone audit into a continuous, machine-driven process — strong support for both your security and your compliance obligations.
Quick Check
Identify Macie's core job.
Recap
Amazon Macie automatically discovers and classifies sensitive data like PII in S3 using machine learning, managed and custom data identifiers, and discovery jobs. It also evaluates bucket posture, flagging public or unencrypted buckets, so you can prioritize sensitive data that is also exposed. Findings flow to Security Hub and EventBridge for remediation, support compliance with GDPR and HIPAA, and should always be driven to resolution.
Frequently asked questions
Is the “Finding Sensitive Data with Amazon Macie” lesson free?
Yes — the full text of “Finding Sensitive Data with Amazon Macie” is free to read here on the web, and the AWS Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the AWS Security Academy course, upgrade to CoddyKit PRO.
What will I learn in “Finding Sensitive Data with Amazon Macie”?
Use machine learning to discover PII stored in S3 buckets. You practise AWS Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start AWS Security Academy?
No prior experience is required. AWS Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Finding Sensitive Data with Amazon Macie” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this AWS Security Academy lesson?
Yes. Every AWS Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Block Public Access and Bucket Policies
- Access Points and Object Ownership
- Finding Sensitive Data with Amazon Macie
- Data Lifecycle and Secure Deletion