Discovering Sensitive Data in S3 with Amazon Macie
This lesson explains how Amazon Macie discovers and classifies sensitive data stored in S3, and highlights buckets whose security settings put that data at risk.
Learning outcomes
After completing this lesson, you will be able to:
- Describe how Macie discovers sensitive data.
- Describe how Macie evaluates bucket security.
- Describe how Macie findings are acted on.
Sensitive data discovery
Amazon Macie uses machine learning and pattern matching to find sensitive data in Amazon S3, such as personal information, financial data, credentials and keys. Automated sensitive data discovery samples objects across the whole S3 estate continuously and at low cost, showing where sensitive data is likely to be. Discovery jobs, run once or on a schedule, analyse selected buckets thoroughly.
Custom data identifiers find company-specific patterns, such as employee or customer IDs, using regular expressions and keywords, and allow lists suppress known values that are not sensitive, such as a company's public address.
Macie features
Bucket security posture
Besides finding sensitive data, Macie continuously evaluates the security settings of every bucket. It reports buckets that are publicly accessible, shared with other accounts or not encrypted by default, and it summarises where sensitive data is concentrated. Together, these show the highest risks: a bucket that both contains personal data and is publicly accessible needs immediate attention.
Acting on findings
Macie findings are sent to AWS Security Hub and Amazon EventBridge. An EventBridge rule can then act on them automatically, for example notifying the data owner or starting a workflow that moves the sensitive objects to a restricted bucket or applies stricter permissions. In an organisation, Macie is enabled for every account from a delegated administrator account, so findings from all accounts are reviewed centrally.
Proving data is protected
Ahead of an audit, a healthcare company must show where patient data is stored, that it is protected, and that AWS's own infrastructure is certified.
| Question | Service |
|---|---|
| Which S3 buckets contain patient data? | Amazon Macie sensitive data discovery |
| Are any of those buckets public or unencrypted? | Macie bucket findings and Security Hub controls |
| What is our overall security posture across accounts? | AWS Security Hub with the AWS Foundational Security Best Practices standard |
| Is AWS HIPAA-eligible and certified? | AWS Artifact reports and the Business Associate Addendum |
Macie finds the data, Security Hub summarises the risks, and Artifact provides AWS's side of the shared responsibility model.
Which service finds personal data, such as credit card numbers, in S3 objects?
Show answer
Amazon Macie, which uses machine learning and pattern matching to discover sensitive data in S3 and also evaluates bucket security.
Exam Tips
Remember for the exam
- To discover PII stored in S3, use Macie.
- To detect sensitive patterns specific to your company in S3, use Macie custom data identifiers.
- Macie scans S3 only; it does not scan databases or EBS volumes.
- To respond automatically to sensitive data findings, route them through EventBridge.