← Writing
Healthcare Cloud Security22 Jul 2026 · 7 min read

Using Amazon Macie for HIPAA Workloads

Macie can help locate possible PHI in Amazon S3. It does not decide what is PHI, cover every object, or make an AWS workload compliant by itself.

Healthcare data tends to spread across object storage: patient uploads, exports, backups, reports, support attachments, migration files, model inputs, and temporary processing artifacts. Access controls and encryption protect known locations. They do not tell you where sensitive data has appeared unexpectedly.

Amazon Macie is an AWS sensitive-data discovery service focused on Amazon S3. It inventories buckets, evaluates security and access settings, and analyzes supported objects for patterns associated with credentials, financial information, PII, and PHI.

For a healthcare software team, the practical question is narrower than "are we compliant?" It is whether S3 buckets, exports, logs, uploads, and migration artifacts contain PHI in places the architecture did not intend.

Direct answer: Macie is currently listed as an AWS HIPAA-eligible service. A covered entity or business associate must execute an AWS BAA before using it with ePHI, and the customer remains responsible for configuration, access, risk analysis, and the rest of its HIPAA program.

Sources reviewed: AWS Macie documentation, AWS HIPAA-eligible services reference, AWS S3 security documentation, and HHS cloud-computing guidance.

Compliance boundary

HIPAA eligible is not HIPAA compliant

AWS lists Macie among services eligible to create, receive, process, maintain, or transmit ePHI. AWS also states that customers must enter into an AWS Business Associate Addendum before using HIPAA-eligible services with PHI and must configure those services consistently with HIPAA requirements.

That distinction matters. Macie can support data inventory, risk analysis, monitoring, and investigation. It does not provide a legal determination that a value is PHI, replace least-privilege access, remediate unsafe buckets automatically, establish retention policy, or satisfy every Privacy, Security, and Breach Notification Rule obligation.

Scope

Macie is primarily an S3 control

Macie creates an inventory of S3 general purpose buckets in each enabled Region. It can identify bucket-level policy issues and inspect eligible objects for sensitive data. It does not directly scan application databases, EBS volumes, message queues, logs, or third-party storage.

AWS documents a workaround for some other data stores: export supported RDS, Aurora, or DynamoDB data into S3 and scan the export. That creates another copy of potentially sensitive data, so the export bucket, encryption, permissions, retention, and deletion need their own design.

Macie also has storage-class and file-format limits. Supported formats include common text, structured data, archives, PDF, Word, and Excel files. Some storage classes and S3 directory buckets are not analyzed. Unsupported or inaccessible objects must appear in coverage reporting rather than silently being treated as clean.

Discovery modes

Use broad discovery and targeted jobs differently

Automated discovery

Evaluates the S3 inventory continually and samples representative eligible objects. It is useful for broad visibility and identifying where deeper investigation may be needed.

Discovery jobs

Analyze selected buckets or buckets matching criteria with a defined schedule and identifier set. They are better for controlled reviews of known healthcare data zones.

Sampling is useful for estate-level visibility, but it is not proof that every object was scanned. For a migration, incident, new data lake, patient-document bucket, or compliance control requiring defined coverage, create a targeted job and record its scope, schedule, object eligibility, failures, and results.

Detection

Managed identifiers find patterns, not every clinical fact

Macie managed data identifiers use pattern matching and machine learning for specific sensitive-data types. AWS includes personal-information identifiers for data such as health-insurance and medical-identification numbers.

That does not mean Macie understands every diagnosis, narrative note, image, or organization-specific patient identifier. Some identifiers require a keyword near the value. Detection also depends on file structure, format, language, and the data patterns available to the service.

Use custom data identifiers for stable organization-specific patterns such as a patient-account format, internal member number, or document marker. Test them against representative synthetic data and likely false positives. Use allow lists for known benign values, but keep them narrow so they do not hide real exposure.

Weak rule: any 8-digit number is a patient ID
Stronger rule: approved prefix, separators, length, nearby keyword, and test corpus match the real identifier format
Encrypted data

Plan KMS access without widening human access

Macie can analyze many encrypted S3 objects when the service has the required access. The exact behavior depends on the encryption method, key, account, and permissions. Review the Macie service-linked role, bucket policies, KMS key policies, organization boundaries, and cross-account access before assuming an encrypted bucket is covered.

Grant the service the minimum access required for discovery. Do not solve a scanning failure by broadly granting staff or unrelated roles access to patient data. Coverage errors should be visible, investigated, and either corrected or formally accepted as a known gap.

Outputs

Protect findings and discovery results

Macie sensitive-data findings report the category, type, count, affected bucket and object, severity, encryption and access information, and limited location details. AWS states that a finding does not include the sensitive value itself. Findings are retained in Macie for 90 days.

Sensitive-data discovery results are more detailed analysis records, including objects that produced no finding or could not be analyzed. They are stored in an S3 bucket that you configure. That bucket needs encryption, restricted access, lifecycle policy, logging, backup decisions, and separation from the source data.

Object names, bucket names, paths, and occurrence locations can still reveal sensitive context. AWS also recommends keeping confidential information out of tags and free-form resource names because those values may appear in billing or diagnostic logs.

Sample retrieval

Revealing a sample is a privileged action

Macie can optionally retrieve and reveal samples of the sensitive data behind a finding. AWS documents that it extracts limited occurrences, encrypts them with a customer-specified KMS key, stores them temporarily, and logs the required actions in CloudTrail.

This capability is useful when a security analyst must verify a finding. It also displays the actual sensitive value. Restrict it with dedicated IAM policies and a dedicated KMS key, limit access to named investigators, monitor use through CloudTrail, and define when sample retrieval is justified. Routine triage should begin with finding metadata.

Operations

Route findings without spreading PHI context

Macie can publish findings through Amazon EventBridge and AWS Security Hub CSPM. That enables alerting, ticket creation, quarantine workflows, ownership routing, and reporting. Each destination becomes part of the security data flow.

Keep notifications minimal. Send a finding ID, severity, account, approved resource reference, and response link rather than copying full details into email or chat. Confirm that downstream services are HIPAA eligible where they will process ePHI, included under the applicable AWS BAA, and configured appropriately.

Use sample findings to test EventBridge and Security Hub automation without placing real patient data into development or test channels.

Implementation plan

A practical Macie rollout

  1. Confirm the AWS BAA, HIPAA-account scope, Regions, organization structure, and responsible security and privacy owners.
  2. Inventory S3 buckets, data owners, expected data classes, encryption, access, lifecycle, and approved ePHI locations.
  3. Enable Macie in a controlled account and Region, then review the service-linked role and organization administration model.
  4. Use automated discovery for broad visibility and targeted jobs for defined healthcare data zones.
  5. Select managed identifiers, add tested custom identifiers, and maintain narrow allow lists.
  6. Track unsupported, encrypted, inaccessible, archived, or skipped objects as coverage gaps.
  7. Protect findings, the discovery-results bucket, KMS keys, sample retrieval, exports, and downstream integrations.
  8. Define severity, ownership, investigation, containment, deletion, false-positive handling, and evidence-retention workflows.
  9. Measure coverage and remediation over time, and review new buckets, formats, identifiers, accounts, and Regions.
Decision

Where Macie earns its place

Macie is most useful when S3 is a meaningful part of the healthcare data estate and the team needs continuous visibility plus targeted investigation. It can reveal that patient or member identifiers have appeared in an unexpected export, analytics bucket, support attachment, or migration artifact.

Its value depends on what follows the finding. Assign data owners, define approved locations, automate safe routing, investigate coverage gaps, and measure remediation. A dashboard of unresolved findings is not a data-protection program.

My rule: use Macie to improve evidence and response around S3. Do not treat a successful scan as proof that no PHI exists elsewhere, that every object was analyzed, or that the surrounding workload meets HIPAA requirements.
Related reading

Connect discovery to vendor and architecture review

Multi-Environment Cloud Architecture

Separate development, staging, and production with native AWS, GCP, and Azure boundaries.

Healthcare Software Development

Plan patient apps, clinical workflows, cloud systems, and PHI-aware delivery controls together.

HIPAA Vendor Checklist

Review BAA scope, data flow, covered features, subprocessors, retention, access, and incidents.

Healthcare Cloud Migration

See how data, service dependencies, security controls, and migration phases fit into a broader platform plan.

Official references: AWS HIPAA-eligible services, Macie sensitive-data discovery, managed data identifiers, Macie findings, and sensitive-data sample retrieval.

Need S3 PHI discovery built into operations?

I can help connect Macie findings to bucket ownership, access review, remediation, incident evidence, and healthcare cloud architecture.

Start a project inquiry

Please do not send patient information, PHI, credentials, or private system details by email.