Amazon Macie
Discovers sensitive data in S3 and monitors bucket security. The exam answer for PII in S3.
Exam tasks: 1.1 (skills 1.1.4 and 1.1.5: detect anomalous activity, automate recurring assessments)
The decision: which service finds sensitive data in S3, and how do you prove on a schedule that a bucket holds none?
Macie works on S3 general purpose buckets only. It inventories buckets, flags risky bucket settings, and finds sensitive data in objects with machine learning and pattern matching. It is Regional and supports a delegated administrator.
Core facts
| Item | What to remember |
|---|---|
| Automated sensitive data discovery | Continuous, samples representative objects across the whole bucket inventory. Broad and cheap |
| Discovery jobs | Targeted, one-time or scheduled. You pick buckets, object criteria (tags, prefix, last modified) and identifiers |
| Managed data identifiers | Built in. PII, financial data, credentials |
| Custom data identifiers | Your regex, optional keywords and proximity rule |
| Allow lists | Text or patterns to ignore, such as public phone numbers or test data |
| Bucket monitoring | Starts on enable. Inventory plus evaluation of public access, encryption and sharing |
| Findings retention | 90 days, both policy and sensitive data findings |
| Discovery results | A record per analyzed object, including clean and failed ones. Stored in an S3 bucket you configure, not viewable in the console |
| Free trial | 30 days. Excludes discovery jobs |
| Multi-account | Organizations with delegated administrator, or invitations |
- Automated discovery keeps a sensitivity score per bucket. Use it for "find where sensitive data lives across the estate".
- Discovery jobs scan chosen buckets fully, once or on a schedule. Use them for "prove this bucket holds no card numbers each week".
- Jobs must store discovery results in an S3 bucket encrypted with a KMS key Macie can use.
Finding types
| Category | Types |
|---|---|
| Policy (bucket) | Policy:IAMUser/S3BlockPublicAccessDisabled, S3BucketPublic, S3BucketEncryptionDisabled, S3BucketReplicatedExternally, S3BucketSharedExternally, S3BucketSharedWithCloudFront |
| Sensitive data (object) | SensitiveData:S3Object/Credentials, CustomIdentifier, Financial, Multiple, Personal |
- A policy finding appears only if the change happened after you enabled Macie.
- Repeat policy findings update the existing one. Each sensitive data detection is a new finding.
- Macie publishes new findings to EventBridge, and policy repeats too. It can also send them to Security Hub.
Which one to use
| Scenario | Pick |
|---|---|
| Find PII or credentials in S3 objects | Macie |
| Detect S3 exfiltration or unusual access | GuardDuty S3 Protection |
| Find buckets shared outside the organization | Macie policy findings, or IAM Access Analyzer for S3 |
| Malware in uploaded objects | GuardDuty Malware Protection for S3 |
Macie only reads S3
Macie does not scan EBS, RDS, DynamoDB or on-premises data. To classify data in a database, export it to S3 first (for example an RDS snapshot export to Parquet) and point Macie at the export. A bucket encrypted with SSE-KMS also needs key permissions for Macie to read the objects.
Exam signal
"Discover and report PII across hundreds of buckets": automated discovery, plus a scheduled job for buckets that need deeper scans. "Suppress known test data": allow list or suppression rule.
Scenarios
A scheduled Macie job gives the weekly evidence, and a custom data identifier catches the startup's own patient ID format that managed identifiers might miss. Macie publishes findings to EventBridge, so a rule to SNS delivers the alert. GuardDuty S3 Protection detects suspicious access, not content. Inspector doesn't scan S3 objects. Access logs show who read objects, not what they contain.
Related
GuardDuty, Security Hub. Macie findings reach people through EventBridge, see Alerting mechanisms.