Skip to content

macie-sfn-s3-quarantine-cdk: Automated sensitive data quarantine with Macie + Step Functions - #3277

Open
NithinChandranR-AWS wants to merge 1 commit into
aws-samples:mainfrom
NithinChandranR-AWS:NithinChandranR-AWS-feature-macie-sfn-s3-quarantine-cdk
Open

macie-sfn-s3-quarantine-cdk: Automated sensitive data quarantine with Macie + Step Functions#3277
NithinChandranR-AWS wants to merge 1 commit into
aws-samples:mainfrom
NithinChandranR-AWS:NithinChandranR-AWS-feature-macie-sfn-s3-quarantine-cdk

Conversation

@NithinChandranR-AWS

@NithinChandranR-AWS NithinChandranR-AWS commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Description

Automated sensitive data response: Amazon Macie findings trigger AWS Step Functions to classify severity and quarantine objects in Amazon S3.

Architecture

Amazon Macie (scan) → Amazon EventBridge (finding) → AWS Step Functions (classify severity) → AWS Lambda (quarantine/tag) + Amazon SNS (alert)

Three severity paths:

  • HIGH (≥7): Copy object to quarantine bucket, delete from source, notify
  • MEDIUM (4-6): Tag object with finding metadata, notify
  • LOW (<4): Notify only

Deployed and Tested

Stack deploys in us-east-1 with 20 resources. Tested all three severity paths:

  • HIGH: Object successfully quarantined (moved to quarantine bucket, deleted from source)
  • MEDIUM: Object tagged in-place with MacieFinding, MacieSeverity, QuarantineDate
  • State machine executes in <2s

…antine pattern

Amazon Macie detects sensitive data in S3, publishes findings to EventBridge,
which triggers a Step Functions state machine to classify severity and
automatically quarantine high-severity objects to a separate S3 bucket.
Medium-severity objects are tagged, all findings notify via SNS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants