Subchapter 41.11
references/macie-findings.mdMarkdown4 KBView on GitHub
Produces structured summaries of Amazon Macie findings across severity, type, bucket, and sensitive data categories. Provides statistics and overview tables without performing investigation or remediation.
Works from both standalone accounts and delegated administrator accounts.
| User intent | Workflow |
|---|---|
| “How many findings do I have?” | A: Account Findings Summary |
| “What types of sensitive data were found?” | A then B |
| “Show findings by bucket/severity” | A: Account Findings Summary |
| “Summarize data classification results” | A then B |
Get statistics by severity:
aws macie2 get-finding-statistics --group-by severity.descriptionGet statistics by type:
aws macie2 get-finding-statistics --group-by typeGet statistics by bucket:
aws macie2 get-finding-statistics --group-by "resourcesAffected.s3Bucket.name"List findings sorted by severity:
aws macie2 list-findings --sort-criteria '{"attributeName":"severity.score","orderBy":"DESC"}' --max-results 50Get finding details (batch, max 50):
aws macie2 get-findings --finding-ids <id1> <id2> ...Check usage:
aws macie2 get-usage-totalsPresent summary:
| Severity | Count |
|---|---|
| High | X |
| Medium | Y |
| Low | Z |
| Finding Type | Count |
|---|---|
| SensitiveData:S3Object/… | X |
| Top Affected Buckets | Finding Count |
|---|---|
| bucket-name | X |
If Workflow A returns zero findings, skip and report no sensitive data detections.
To investigate a specific resource from Workflow A results, use the resourcesAffected.s3Bucket.arn or resourcesAffected.s3Object.key from the finding detail.
List resource profile detections:
aws macie2 list-resource-profile-detections --resource-arn <arn>Check sensitive data availability:
aws macie2 get-sensitive-data-occurrences-availability --finding-id <finding-id>Summarize categories:
Present overview:
| Category | Buckets Affected | Detection Count |
|---|---|---|
| Financial | X | Y |
| PII | X | Y |
| Credentials | X | Y |
| Symptom | Resolution |
|---|---|
| AccessDeniedException | Macie not enabled or insufficient permissions |
| ValidationException on list-findings | Use attributeName “severity.score” with orderBy “DESC” |
| Empty get-finding-statistics | No findings — report zero findings as clean posture |
Finding details contain S3 bucket names, object keys where sensitive data was detected, sensitive data category counts (PII types, financial data, credentials), and bucket access permissions. Present the severity/type summary and affected bucket counts first. Display full finding details only when the caller explicitly requests raw output. Never include actual sensitive data samples.