Skip to Content
Asterrr's Handbook
1 · Detection

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.

AWS account (one Region)inspectresultsfindingrespondS3 bucketsMacieResults bucketEventBridgeSecurity HubLambda
Discovery jobs and automated discovery inspect objects. Findings go to EventBridge and Security Hub. Job results go to an S3 repository.

Core facts

ItemWhat to remember
Automated sensitive data discoveryContinuous, samples representative objects across the whole bucket inventory. Broad and cheap
Discovery jobsTargeted, one-time or scheduled. You pick buckets, object criteria (tags, prefix, last modified) and identifiers
Managed data identifiersBuilt in. PII, financial data, credentials
Custom data identifiersYour regex, optional keywords and proximity rule
Allow listsText or patterns to ignore, such as public phone numbers or test data
Bucket monitoringStarts on enable. Inventory plus evaluation of public access, encryption and sharing
Findings retention90 days, both policy and sensitive data findings
Discovery resultsA record per analyzed object, including clean and failed ones. Stored in an S3 bucket you configure, not viewable in the console
Free trial30 days. Excludes discovery jobs
Multi-accountOrganizations 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

CategoryTypes
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

ScenarioPick
Find PII or credentials in S3 objectsMacie
Detect S3 exfiltration or unusual accessGuardDuty S3 Protection
Find buckets shared outside the organizationMacie policy findings, or IAM Access Analyzer for S3
Malware in uploaded objectsGuardDuty 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

Scenario · choose 2
A healthcare startup must show auditors every Monday that none of its 60 production buckets contain unmasked patient identifiers, and it wants an alert within minutes if any job finds some. Which combination meets the requirement? (Choose TWO.)

GuardDuty, Security Hub. Macie findings reach people through EventBridge, see Alerting mechanisms.

Further reading

On this page