Macie Data Classification Auditor
Quick-start
- Scanning? Session ENABLED + at least one active job (RUNNING/COMPLETE)
or ASDD ENABLED. If neither → NO_CLASSIFICATION.
- Triaged? Zero open (
archived: false) HIGH-severity findings. If
any exist → UNTRIAGED_FINDINGS.
- Plumbing? Security Hub export on, allow-list scoped (no wildcards),
no active auto-archive filter, ASDD fresh (<48h). If any gap →
CONFIG_GAP.
- All pass? → OK.
Deep Macie behaviors, edge cases, and non-obvious failure modes are in
the Reference — Expert knowledge
section at the end.
Mindset
One-line takeaway: the verdict flows from coverage to action to
configuration — you must be scanning (Step 1), you must have triaged what
was found (Step 2), and the plumbing must deliver findings to operators
(Step 3). Skip a step and the downstream verdict is unreliable.
Amazon Macie is the only AWS-native service that automatically discovers
sensitive data (PII, credentials, financial data) in S3. A Macie posture
gap means you are either blind (no scanning), aware but inactive
(untriaged findings), or mis-configured (findings not flowing to the
SOC). The worst state is NO_CLASSIFICATION because you have zero
visibility — you do not even know what you do not know.
Quick reference — verdict thresholds and output format
MANDATORY output format — always emit in this exact ALL CAPS structure:
ACCOUNT: <account-scope-id> (<region>)
VERDICT: NO_CLASSIFICATION | UNTRIAGED_FINDINGS | CONFIG_GAP | OK
REASON: <1-2 sentences citing the triggering step and finding>
FINDINGS:
- [NO_CLASSIFICATION] <description (Step Na)>
- [CONFIG_GAP] <description (Step Nb)>
REMEDIATION: <specific CLI per finding, or "None required" if OK>
The account-scope-id is the identifier from the input (e.g., the scope
label). The VERDICT value must be exactly one of the four values above,
in ALL CAPS with underscores. Field names (ACCOUNT, VERDICT, REASON,
FINDINGS, REMEDIATION) must be ALL CAPS.
| Condition |
Verdict |
Step |
| No active classification jobs AND ASDD disabled |
NO_CLASSIFICATION |
1 |
| All jobs in FAILED / CANCELLED / USER_CANCELLED AND ASDD disabled |
NO_CLASSIFICATION |
1 |
| Active coverage AND open (non-archived) HIGH-severity findings |
UNTRIAGED_FINDINGS |
2 |
| Active coverage, findings triaged, but Security Hub export disabled |
CONFIG_GAP |
3a |
| Active coverage, findings triaged, but allow-list has wildcard prefixes |
CONFIG_GAP |
3b |
| Active coverage, findings triaged, but auto-archive filter active |
CONFIG_GAP |
3c |
| Active coverage, findings triaged, but ASDD lastRunTime stale >48h |
CONFIG_GAP |
3d |
| All dimensions pass |
OK |
4 |
See the ordered steps below for edge cases. Deep Macie scanning internals
are in the Expert knowledge
section.
Pre-flight: account / session gate
Before evaluating the Macie posture, verify the account state. Several
attributes short-circuit the audit.
| Attribute |
Value |
Effect on audit |
macieSession.status |
ENABLED |
Proceed with full audit. |
macieSession.status |
PAUSED |
Macie is administratively paused — no scanning, no new findings. Treat as NO_CLASSIFICATION. |
macieSession.status |
DISABLED / absent |
Macie is not enabled. Verdict: NO_CLASSIFICATION. |
organizationConfig |
delegated admin set |
This is the Macie admin account — findings for all member accounts aggregate here. Audit at org scope. |
| S3 buckets |
zero buckets in account |
No data to classify. Note as informational; do NOT emit NO_CLASSIFICATION (there is nothing to scan). |
Multi-region note: Macie is regional, not global. Each region has
independent session, jobs, findings, and configuration. A clean posture
in us-east-1 tells you nothing about ap-southeast-1. For live-account
audits, iterate get-macie-session per region and audit each separately.
If a region's snapshot is incomplete (missing session, jobs, or findings
fields), emit VERDICT: ERROR for that region only — do not let one
region's missing data invalidate the audit of other regions.
The pagination guidance and the AccessDeniedException handling moved verbatim to references/error-handling.md.
Load it when Macie API calls fail or results paginate.
If the posture snapshot is malformed (missing required fields:
session status, job list, or findings summary), output:
ACCOUNT: <account-id>
VERDICT: ERROR
REASON: Macie posture snapshot is incomplete — cannot classify.
REMEDIATION: Collect session, jobs, findings, allow-list, and Security Hub
integration data. See the live-account commands in the Remediation section.
Process — Classification logic (apply in order, first match wins)
Expert knowledge: non-obvious Macie behaviors that change verdicts
(ASDD sampling, USER_CANCELLED partial results, initialRun blind spots,
Security Hub non-retroactivity, cost traps) are documented in the
Reference — Expert knowledge
section at the end of this skill. Consult it when a verdict is
borderline or an edge case is not covered by the steps below.
Step 1: Classification coverage check (NO_CLASSIFICATION gate)
Determine whether Macie is actively scanning for sensitive data. This is
the highest-priority dimension because without coverage, every downstream
check is meaningless.
Classification jobs: enumerate all jobs. A job is active if its
jobStatus is RUNNING or COMPLETE AND it was created or last run
within the last 90 days. Jobs in FAILED, CANCELLED, or
USER_CANCELLED status are NOT active — they are not producing new
findings.
ASDD: check automatedDiscoveryConfig.status. If ENABLED, Macie
continuously samples S3 buckets for sensitive data (with the sampling
caveat above). If DISABLED, ASDD is off.
Verdict logic:
- If there are ZERO active classification jobs AND ASDD is DISABLED →
NO_CLASSIFICATION. The account has no sensitive-data visibility.
- If ASDD is ENABLED, the account has at least sampling-level coverage.
Proceed to Step 2. (Note the sampling caveat in findings.)
This edge-case walkthrough moved verbatim to references/advanced-patterns.md.
Load it when a job exists but is not active.
Step 2: Findings triage evaluation (UNTRIAGED_FINDINGS)
If Step 1 passed (active coverage exists), evaluate whether discovered
sensitive data has been triaged.
Findings query: list findings where archived: false. For each
finding, check severity:
- HIGH severity findings (credentials, SSN, credit card, private
keys) that are NOT archived → untriaged exposure. These represent
real sensitive data at rest that has not been addressed.
- MEDIUM severity findings (email, names, phone numbers) that are
not archived → informational, not the verdict trigger.
Verdict logic:
- If there are one or more open (
archived: false) findings with
severity: HIGH → UNTRIAGED_FINDINGS. The account has visibility
into sensitive data exposure but has not acted on it.
- If all findings are archived (triaged) or no findings exist → proceed
to Step 3.
Severity-by-category reference (managed data identifiers):
| Category |
Example identifiers |
Typical severity |
| Credentials |
AWS_CREDENTIALS, PRIVATE_KEY, API_KEY |
HIGH |
| Financial |
CREDIT_CARD_NUMBER, BANK_ACCOUNT_NUMBER |
HIGH |
| National ID |
US_SOCIAL_SECURITY_NUMBER, UK_NATIONAL_INSURANCE_NUMBER, PASSPORT_NUMBER |
HIGH |
| Personal |
EMAIL_ADDRESS, PERSON_NAME, PHONE_NUMBER, PHYSICAL_ADDRESS |
MEDIUM |
Step 3: Configuration gap analysis (CONFIG_GAP)
If coverage is active and findings are triaged (or none exist), check the
plumbing that keeps Macie effective.
Step 3a — Security Hub export: Check whether Macie is configured to
publish findings to Security Hub (publishingStatus: ENABLED or
publishingDestinationConfig). If disabled → CONFIG_GAP. Without
Security Hub export, findings only exist in Macie's own console. SOC
teams monitoring Security Hub have no visibility into sensitive data
discoveries. This is the most common Macie configuration gap.
Step 3b — Allow-list scope: Review each allow-list entry. If any
entry uses a wildcard prefix (e.g., s3://bucket/* or
s3://bucket/logs/*) → CONFIG_GAP. Wildcard prefixes mask entire
paths and can hide future sensitive data. The allow-list should use
specific object paths or object-level patterns, not prefix wildcards.
Step 3c — Auto-archive findings filter: Check for findings filters
with action: ARCHIVE. If any exist and are enabled → CONFIG_GAP.
Auto-archive filters suppress findings before operators see them. Each
filter should be reviewed to confirm it targets genuine false positives
only.
Step 3d — ASDD staleness: If ASDD is enabled, check
lastRunTime. If more than 48 hours in the past → CONFIG_GAP. A
stale ASDD indicates the discovery cycle is stalled (throttling, service
issue, or permission drift). Recent uploads are not being scanned.
Verdict logic: If any of Steps 3a-3d fails → CONFIG_GAP. Multiple
config gaps are all listed in the FINDINGS block.
Step 4: OK
If coverage is active (Step 1), no untriaged HIGH findings (Step 2), and
all configuration checks pass (Step 3) → OK.
Output format (per account scope)
ACCOUNT: <account-id> (<region>)
VERDICT: NO_CLASSIFICATION | UNTRIAGED_FINDINGS | CONFIG_GAP | OK
REASON: <1-2 sentences citing the triggering step and finding>
FINDINGS:
- [NO_CLASSIFICATION] <description (Step Na)>
- [CONFIG_GAP] <description (Step Nb)>
REMEDIATION: <specific CLI per finding, or "None required" if OK>
Worked example — untriaged PII findings
ACCOUNT: 333333333333 (us-east-1)
VERDICT: UNTRIAGED_FINDINGS
REASON: ASDD is enabled and the classification job completed, but 3 open
HIGH-severity findings (US_SOCIAL_SECURITY_NUMBER, CREDIT_CARD_NUMBER,
AWS_CREDENTIALS) have not been triaged (Step 2).
FINDINGS:
- [UNTRIAGED_FINDINGS] 3 open HIGH findings: 2 SSN findings in
s3://customer-data/exports/, 1 AWS credential finding in
s3://app-config/secrets.json (Step 2)
- [OK] ASDD enabled, classification job in COMPLETE status (Step 1)
- [OK] Security Hub export enabled (Step 3a)
REMEDIATION:
CONFIRM: About to rotate IAM access key and archive findings in account
333333333333 (us-east-1). This affects the exposed credential and 3
findings. Proceed? (yes/no)
1. Immediately investigate the AWS credential finding — rotate the
exposed key: aws iam list-access-keys --user-name <user>, then
aws iam delete-access-key --access-key-id <AKIA...> --user-name <user>.
2. Verify SSN findings: download the flagged objects and confirm the
data. If real PII, move to an encrypted, access-restricted bucket.
3. Archive each finding AFTER remediation:
aws macie2 update-findings --finding-ids <id> --status ARCHIVED.
Anti-Patterns — NEVER
NEVER classify an account with ASDD disabled and no active jobs as
anything other than NO_CLASSIFICATION. Without scanning, you have zero
visibility into sensitive data — the worst possible posture. A
"CONFIG_GAP" implies partial coverage; "no coverage" is not partial.
NEVER treat a FAILED or CANCELLED classification job as "active
coverage." A job that has been failing for weeks provides no new
findings. Operators often assume "we have a Macie job" without checking
its status. Verify jobStatus — only RUNNING and COMPLETE are active.
NEVER treat archived: true as "remediated." Archiving is a
bookkeeping action in Macie. The sensitive data is still in the S3
bucket. An archived HIGH finding still represents real exposure. Only
treat archived findings as triaged when accompanied by evidence of
investigation or verified data removal.
NEVER assume ASDD-enabled equals full coverage. ASDD uses probabilistic
sampling — it does not scan every object. For compliance-driven audits
(PCI-DSS, HIPAA), require a classification job with
samplingPercentage: 100. ASDD alone may miss sensitive data in
rarely-accessed objects.
NEVER report a CONFIG_GAP verdict when there are open HIGH findings.
UNTRIAGED_FINDINGS is higher priority than CONFIG_GAP — the actual
sensitive data exposure takes precedence over a plumbing issue. Always
evaluate Step 2 before Step 3.
NEVER recommend deleting an allow-list entry without verifying why it
was created. Allow-lists often suppress known false positives (e.g.,
test data that looks like PII). Removing the entry may flood the
findings queue with false positives. Recommend scoping the entry to a
specific path instead of deleting it.
NEVER enable ASDD or create a classification job without considering
cost. Macie charges per GB scanned. A full scan of a 100 TB data lake
can cost thousands of dollars. Recommend starting with a sampled
classification job and expanding coverage based on findings.
NEVER assume Macie is enabled across all regions. Macie is regional.
An account may have Macie enabled in us-east-1 but not in eu-west-1.
If the account has S3 buckets in multiple regions, audit each region
independently.
NEVER overlook findingsFilters with action: ARCHIVE. These filters
auto-suppress findings before operators see them. A filter matching
"all findings in bucket X" can hide an entire bucket's worth of
sensitive data discoveries. Concrete example: an ARCHIVE filter set to
suppress MEDIUM-severity findings in s3://app-logs/ will also
suppress a HIGH-severity AWS credential finding that Macie
mis-categorised as MEDIUM due to context scoring — the SOC never sees
the exposed key. Always enumerate active filters during the audit and
cross-reference each filter's criteria against the full severity range.
NEVER treat Macie findings as real-time. Even with ASDD, there is a
latency (up to 24 hours) between when sensitive data is uploaded to S3
and when Macie discovers it. The createdAt timestamp is when Macie
detected the data, not when it was uploaded. For real-time protection,
pair Macie with S3 Event Notifications.
NEVER assume managed data identifiers cover every data type your
organisation considers sensitive. Macie provides 150+ managed patterns,
but proprietary data formats (employee IDs, custom token formats)
require custom data identifiers. An audit that finds zero findings may
simply lack the right detection patterns.
Pre-flight safety checks (run before any remediation CLI)
- MANDATORY CONFIRMATION GATE. Before any state-changing operation
(archiving findings, enabling ASDD, creating or modifying classification
jobs, updating allow-lists), the auditor MUST emit:
CONFIRM: About to <action> in account <account> (<region>). This affects <consequence>. Proceed? (yes/no)
- Before archiving a finding, verify that the underlying sensitive data
has been investigated and remediated. Archiving without investigation
hides the finding from future queries without addressing the exposure.
- Before enabling ASDD, estimate the scanning cost. ASDD scans all
monitored S3 buckets in the account. Provide a cost estimate based on
total bucket size.
- Before removing or scoping an allow-list entry, export the current
allow-list for rollback:
aws macie2 get-allow-list --id <id> --output json > /tmp/allow-list-backup-$(date +%s).json.
- Before modifying a findings filter, verify the filter's current
criteria and action. A filter with
action: ARCHIVE that is modified
to action: NOOP will un-suppress all previously auto-archived
findings — potentially flooding the findings queue.
Remediation guidance
For NO_CLASSIFICATION
- Enable ASDD for continuous sampling coverage:
aws macie2 update-automated-discovery-configuration --status ENABLED.
- Create a classification job for full-scan coverage on
sensitive buckets:
aws macie2 create-classification-job --name <job-name> --job-type ONE_TIME --s3-job-definition '{"bucketDefinitions":[{"accountId":"<acct>","buckets":["<bucket>"]}]}'.
For compliance, use samplingPercentage: 100.
- If a job exists but FAILED, check the job role IAM permissions and S3
bucket existence, then recreate:
aws macie2 describe-classification-job --job-id <id> to get failure
details.
- Verify coverage after 24 hours:
aws macie2 list-classification-jobs --results-window start=2026-01-01T00:00:00Z,end=2026-12-31T23:59:59Z.
For UNTRIAGED_FINDINGS
- Prioritise credential findings first. An exposed AWS access key is
an immediate compromise risk. Rotate the key, then investigate
CloudTrail for unauthorised API calls during the exposure window.
- Verify PII findings. Download flagged objects and confirm the
detected data is real (not test data or false positives). If real PII,
move to an encrypted, access-restricted bucket or delete if no longer
needed.
- Archive findings only AFTER remediation:
aws macie2 update-findings --finding-ids <id1> <id2> --status ARCHIVED.
- Set up a recurring triage cadence (daily for HIGH, weekly for MEDIUM)
to prevent findings backlog.
For CONFIG_GAP
Security Hub export disabled (Step 3a):
- Enable publishing to Security Hub:
aws macie2 put-findings-publication-config --security-hub-configuration publishClassificationFindings=true,publishPolicyFindings=true.
- Export existing findings manually:
aws macie2 export-findings.
Allow-list too broad (Step 3b):
- Review each wildcard-prefix entry.
- Replace
s3://bucket/* with specific object paths:
s3://bucket/known-test-data/sample.json.
- Update the allow-list:
aws macie2 update-allow-list --id <id> --criteria '{"s3Bucket":"<bucket>","s3Prefix":"<specific/path/>"}'.
Auto-archive filter active (Step 3c):
- Review each filter's criteria and the count of findings it has
auto-archived.
- If the filter is masking real findings, change its action:
aws macie2 update-findings-filter --id <id> --action NOOP.
- Re-evaluate previously auto-archived findings for legitimacy.
ASDD stale (Step 3d):
- Check for service-level issues or IAM permission drift on the Macie
service-linked role.
- If needed, disable and re-enable ASDD:
aws macie2 update-automated-discovery-configuration --status DISABLED
then --status ENABLED.
For OK
- No remediation required for the current posture.
- Recommend periodic re-audit (quarterly) to detect coverage drift.
- Recommend adding custom data identifiers for organisation-specific
sensitive data formats not covered by managed identifiers.
Recent AWS features (2024-2026)
The 2024-2026 feature notes moved verbatim to references/advanced-patterns.md.
Load on demand when checking recent feature availability.
Reference — Expert knowledge — non-obvious Macie behaviors
The full expert-knowledge catalog moved verbatim to references/advanced-patterns.md — ASDD sampling, deterministic interval sampling, USER_CANCELLED partial results, initialRun blind spot, severity vs count semantics, silent truncation, CDI regex no-op, archived-vs-remediated, Security Hub non-retroactivity, allow-list wildcards, ARCHIVE filters, per-GB cost, managed identifier limits.
Load it when a verdict is borderline or an edge case is not covered by the steps.
References (load on demand)
- references/advanced-patterns.md — the expert-knowledge catalog of non-obvious Macie behaviors, the Step 1 FAILED-job edge case, and 2024-2026 feature notes.
- references/error-handling.md — pagination guidance and AccessDeniedException / IAM-failure handling for the pre-flight gate.
Domain
AWS CloudOps / Data Security & Compliance — Amazon Macie.
AWS documentation
1---2name: macie-data-classification-auditor3description: Audits Amazon Macie data-classification posture — classification job coverage and status, automated sensitive data discovery (ASDD) enablement, sensitive data finding triage state (PII / credentials / financial), custom data identifiers, bucket_allow_list scope, findings auto-archive filters, and Security Hub export integration. Emits a deterministic verdict (NO_CLASSIFICATION | UNTRIAGED_FINDINGS | CONFIG_GAP | OK) per account scope with enumerated findings and specific CLI remediation. Use when reviewing Macie classification coverage, triaging sensitive data discoveries, validating allow-list scope, checking Security Hub integration, or auditing sensitive-data discovery posture before a compliance review.4license: Apache-2.05compatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline posture classification. Live- account audits use aws macie2 get-macie-session, list-classification-jobs, list-findings, get-findings, list-allow-lists, and describe-organization- configuration (AWS CLI v2, SSO or key-based credentials).6metadata:7 source: https://skillmd.com/skills/jhkchan/macie-data-classification-auditor8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '2'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Security15 verdict_shape: NO_CLASSIFICATION | UNTRIAGED_FINDINGS | CONFIG_GAP | OK16 when_to_use: Reviewing Macie classification coverage before a compliance audit, triaging sensitive data findings (PII, credentials, financial), validating bucket_allow_list scope, checking Security Hub export integration, auditing automated sensitive data discovery posture, or verifying that classification jobs are running and producing results.17 activation_triggers: audit macie classification, check macie findings, are there untriaged macie findings, is sensitive data discovery enabled, macie allow list too broad, macie security hub export, macie classification job failed, sensitive data in s3, pii audit macie, macie posture check18 invocation_schema: 'Input: either (a) a Macie posture snapshot (session status, ASDD config, classification jobs, findings summary, allow list, Security Hub integration), OR (b) an account / region for live-account audit. Output: deterministic ACCOUNT / VERDICT / REASON / FINDINGS / REMEDIATION block per account scope, where VERDICT belongs to {NO_CLASSIFICATION, UNTRIAGED_FINDINGS, CONFIG_GAP, OK, ERROR}.'19 version: 0.1.020 author: Jacky Chan — AWS Community Builder21 keywords: Macie, data classification, sensitive data, PII, credentials, financial data, classification job, automated discovery, ASDD, allow list, findings triage, Security Hub, custom data identifier, data loss prevention, DLP, compliance, S3 data security, sensitive data discovery22 tags: macie, security, data-classification, pii, sensitive-data, dlp, compliance, audit23---2425# Macie Data Classification Auditor2627## Quick-start28291. **Scanning?** Session ENABLED + at least one active job (RUNNING/COMPLETE)30 or ASDD ENABLED. If neither → **NO_CLASSIFICATION**.312. **Triaged?** Zero open (`archived: false`) HIGH-severity findings. If32 any exist → **UNTRIAGED_FINDINGS**.333. **Plumbing?** Security Hub export on, allow-list scoped (no wildcards),34 no active auto-archive filter, ASDD fresh (<48h). If any gap →35 **CONFIG_GAP**.364. **All pass?** → **OK**.3738Deep Macie behaviors, edge cases, and non-obvious failure modes are in39the [Reference — Expert knowledge](#reference--expert-knowledge--non-obvious-macie-behaviors)40section at the end.4142## Mindset4344**One-line takeaway:** the verdict flows from coverage to action to45configuration — you must be scanning (Step 1), you must have triaged what46was found (Step 2), and the plumbing must deliver findings to operators47(Step 3). Skip a step and the downstream verdict is unreliable.4849Amazon Macie is the only AWS-native service that automatically discovers50sensitive data (PII, credentials, financial data) in S3. A Macie posture51gap means you are either **blind** (no scanning), **aware but inactive**52(untriaged findings), or **mis-configured** (findings not flowing to the53SOC). The worst state is NO_CLASSIFICATION because you have zero54visibility — you do not even know what you do not know.5556## Quick reference — verdict thresholds and output format5758**MANDATORY output format — always emit in this exact ALL CAPS structure:**5960```text61ACCOUNT: <account-scope-id> (<region>)62VERDICT: NO_CLASSIFICATION | UNTRIAGED_FINDINGS | CONFIG_GAP | OK63REASON: <1-2 sentences citing the triggering step and finding>64FINDINGS:65 - [NO_CLASSIFICATION] <description (Step Na)>66 - [CONFIG_GAP] <description (Step Nb)>67REMEDIATION: <specific CLI per finding, or "None required" if OK>68```6970The account-scope-id is the identifier from the input (e.g., the scope71label). The VERDICT value must be exactly one of the four values above,72in ALL CAPS with underscores. Field names (ACCOUNT, VERDICT, REASON,73FINDINGS, REMEDIATION) must be ALL CAPS.7475| Condition | Verdict | Step |76|---|---|---|77| No active classification jobs AND ASDD disabled | **NO_CLASSIFICATION** | 1 |78| All jobs in FAILED / CANCELLED / USER_CANCELLED AND ASDD disabled | **NO_CLASSIFICATION** | 1 |79| Active coverage AND open (non-archived) HIGH-severity findings | **UNTRIAGED_FINDINGS** | 2 |80| Active coverage, findings triaged, but Security Hub export disabled | **CONFIG_GAP** | 3a |81| Active coverage, findings triaged, but allow-list has wildcard prefixes | **CONFIG_GAP** | 3b |82| Active coverage, findings triaged, but auto-archive filter active | **CONFIG_GAP** | 3c |83| Active coverage, findings triaged, but ASDD lastRunTime stale >48h | **CONFIG_GAP** | 3d |84| All dimensions pass | **OK** | 4 |8586See the ordered steps below for edge cases. Deep Macie scanning internals87are in the [Expert knowledge](#step-0-expert-knowledge--non-obvious-macie-behaviors)88section.8990## Pre-flight: account / session gate9192Before evaluating the Macie posture, verify the account state. Several93attributes short-circuit the audit.9495| Attribute | Value | Effect on audit |96|---|---|---|97| `macieSession.status` | `ENABLED` | Proceed with full audit. |98| `macieSession.status` | `PAUSED` | Macie is administratively paused — no scanning, no new findings. Treat as NO_CLASSIFICATION. |99| `macieSession.status` | `DISABLED` / absent | Macie is not enabled. Verdict: **NO_CLASSIFICATION**. |100| `organizationConfig` | delegated admin set | This is the Macie admin account — findings for all member accounts aggregate here. Audit at org scope. |101| S3 buckets | zero buckets in account | No data to classify. Note as informational; do NOT emit NO_CLASSIFICATION (there is nothing to scan). |102103**Multi-region note:** Macie is regional, not global. Each region has104independent session, jobs, findings, and configuration. A clean posture105in us-east-1 tells you nothing about ap-southeast-1. For live-account106audits, iterate `get-macie-session` per region and audit each separately.107If a region's snapshot is incomplete (missing session, jobs, or findings108fields), emit `VERDICT: ERROR` for that region only — do not let one109region's missing data invalidate the audit of other regions.110111> The pagination guidance and the AccessDeniedException handling moved verbatim to [references/error-handling.md](references/error-handling.md).112> Load it when Macie API calls fail or results paginate.113114**If the posture snapshot is malformed** (missing required fields:115session status, job list, or findings summary), output:116117```text118ACCOUNT: <account-id>119VERDICT: ERROR120REASON: Macie posture snapshot is incomplete — cannot classify.121REMEDIATION: Collect session, jobs, findings, allow-list, and Security Hub122integration data. See the live-account commands in the Remediation section.123```124125## Process — Classification logic (apply in order, first match wins)126127> **Expert knowledge:** non-obvious Macie behaviors that change verdicts128> (ASDD sampling, USER_CANCELLED partial results, initialRun blind spots,129> Security Hub non-retroactivity, cost traps) are documented in the130> [Reference — Expert knowledge](#reference--expert-knowledge--non-obvious-macie-behaviors)131> section at the end of this skill. Consult it when a verdict is132> borderline or an edge case is not covered by the steps below.133134### Step 1: Classification coverage check (NO_CLASSIFICATION gate)135136Determine whether Macie is actively scanning for sensitive data. This is137the highest-priority dimension because without coverage, every downstream138check is meaningless.139140**Classification jobs:** enumerate all jobs. A job is **active** if its141`jobStatus` is `RUNNING` or `COMPLETE` AND it was created or last run142within the last 90 days. Jobs in `FAILED`, `CANCELLED`, or143`USER_CANCELLED` status are NOT active — they are not producing new144findings.145146**ASDD:** check `automatedDiscoveryConfig.status`. If `ENABLED`, Macie147continuously samples S3 buckets for sensitive data (with the sampling148caveat above). If `DISABLED`, ASDD is off.149150**Verdict logic:**151- If there are ZERO active classification jobs AND ASDD is DISABLED →152 **NO_CLASSIFICATION**. The account has no sensitive-data visibility.153- If ASDD is ENABLED, the account has at least sampling-level coverage.154 Proceed to Step 2. (Note the sampling caveat in findings.)155156> This edge-case walkthrough moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).157> Load it when a job exists but is not active.158159### Step 2: Findings triage evaluation (UNTRIAGED_FINDINGS)160161If Step 1 passed (active coverage exists), evaluate whether discovered162sensitive data has been triaged.163164**Findings query:** list findings where `archived: false`. For each165finding, check `severity`:166- **HIGH** severity findings (credentials, SSN, credit card, private167 keys) that are NOT archived → untriaged exposure. These represent168 real sensitive data at rest that has not been addressed.169- **MEDIUM** severity findings (email, names, phone numbers) that are170 not archived → informational, not the verdict trigger.171172**Verdict logic:**173- If there are one or more open (`archived: false`) findings with174 `severity: HIGH` → **UNTRIAGED_FINDINGS**. The account has visibility175 into sensitive data exposure but has not acted on it.176- If all findings are archived (triaged) or no findings exist → proceed177 to Step 3.178179**Severity-by-category reference (managed data identifiers):**180181| Category | Example identifiers | Typical severity |182|---|---|---|183| Credentials | `AWS_CREDENTIALS`, `PRIVATE_KEY`, `API_KEY` | **HIGH** |184| Financial | `CREDIT_CARD_NUMBER`, `BANK_ACCOUNT_NUMBER` | **HIGH** |185| National ID | `US_SOCIAL_SECURITY_NUMBER`, `UK_NATIONAL_INSURANCE_NUMBER`, `PASSPORT_NUMBER` | **HIGH** |186| Personal | `EMAIL_ADDRESS`, `PERSON_NAME`, `PHONE_NUMBER`, `PHYSICAL_ADDRESS` | **MEDIUM** |187188### Step 3: Configuration gap analysis (CONFIG_GAP)189190If coverage is active and findings are triaged (or none exist), check the191plumbing that keeps Macie effective.192193**Step 3a — Security Hub export:** Check whether Macie is configured to194publish findings to Security Hub (`publishingStatus: ENABLED` or195`publishingDestinationConfig`). If disabled → **CONFIG_GAP**. Without196Security Hub export, findings only exist in Macie's own console. SOC197teams monitoring Security Hub have no visibility into sensitive data198discoveries. This is the most common Macie configuration gap.199200**Step 3b — Allow-list scope:** Review each allow-list entry. If any201entry uses a wildcard prefix (e.g., `s3://bucket/*` or202`s3://bucket/logs/*`) → **CONFIG_GAP**. Wildcard prefixes mask entire203paths and can hide future sensitive data. The allow-list should use204specific object paths or object-level patterns, not prefix wildcards.205206**Step 3c — Auto-archive findings filter:** Check for findings filters207with `action: ARCHIVE`. If any exist and are enabled → **CONFIG_GAP**.208Auto-archive filters suppress findings before operators see them. Each209filter should be reviewed to confirm it targets genuine false positives210only.211212**Step 3d — ASDD staleness:** If ASDD is enabled, check213`lastRunTime`. If more than 48 hours in the past → **CONFIG_GAP**. A214stale ASDD indicates the discovery cycle is stalled (throttling, service215issue, or permission drift). Recent uploads are not being scanned.216217**Verdict logic:** If any of Steps 3a-3d fails → **CONFIG_GAP**. Multiple218config gaps are all listed in the FINDINGS block.219220### Step 4: OK221222If coverage is active (Step 1), no untriaged HIGH findings (Step 2), and223all configuration checks pass (Step 3) → **OK**.224225## Output format (per account scope)226227```text228ACCOUNT: <account-id> (<region>)229VERDICT: NO_CLASSIFICATION | UNTRIAGED_FINDINGS | CONFIG_GAP | OK230REASON: <1-2 sentences citing the triggering step and finding>231FINDINGS:232 - [NO_CLASSIFICATION] <description (Step Na)>233 - [CONFIG_GAP] <description (Step Nb)>234REMEDIATION: <specific CLI per finding, or "None required" if OK>235```236237### Worked example — untriaged PII findings238239```text240ACCOUNT: 333333333333 (us-east-1)241VERDICT: UNTRIAGED_FINDINGS242REASON: ASDD is enabled and the classification job completed, but 3 open243HIGH-severity findings (US_SOCIAL_SECURITY_NUMBER, CREDIT_CARD_NUMBER,244AWS_CREDENTIALS) have not been triaged (Step 2).245FINDINGS:246 - [UNTRIAGED_FINDINGS] 3 open HIGH findings: 2 SSN findings in247 s3://customer-data/exports/, 1 AWS credential finding in248 s3://app-config/secrets.json (Step 2)249 - [OK] ASDD enabled, classification job in COMPLETE status (Step 1)250 - [OK] Security Hub export enabled (Step 3a)251REMEDIATION:252 CONFIRM: About to rotate IAM access key and archive findings in account253 333333333333 (us-east-1). This affects the exposed credential and 3254 findings. Proceed? (yes/no)255 1. Immediately investigate the AWS credential finding — rotate the256 exposed key: aws iam list-access-keys --user-name <user>, then257 aws iam delete-access-key --access-key-id <AKIA...> --user-name <user>.258 2. Verify SSN findings: download the flagged objects and confirm the259 data. If real PII, move to an encrypted, access-restricted bucket.260 3. Archive each finding AFTER remediation:261 aws macie2 update-findings --finding-ids <id> --status ARCHIVED.262```263264## Anti-Patterns — NEVER265266- NEVER classify an account with ASDD disabled and no active jobs as267 anything other than NO_CLASSIFICATION. Without scanning, you have zero268 visibility into sensitive data — the worst possible posture. A269 "CONFIG_GAP" implies partial coverage; "no coverage" is not partial.270271- NEVER treat a FAILED or CANCELLED classification job as "active272 coverage." A job that has been failing for weeks provides no new273 findings. Operators often assume "we have a Macie job" without checking274 its status. Verify `jobStatus` — only RUNNING and COMPLETE are active.275276- NEVER treat `archived: true` as "remediated." Archiving is a277 bookkeeping action in Macie. The sensitive data is still in the S3278 bucket. An archived HIGH finding still represents real exposure. Only279 treat archived findings as triaged when accompanied by evidence of280 investigation or verified data removal.281282- NEVER assume ASDD-enabled equals full coverage. ASDD uses probabilistic283 sampling — it does not scan every object. For compliance-driven audits284 (PCI-DSS, HIPAA), require a classification job with285 `samplingPercentage: 100`. ASDD alone may miss sensitive data in286 rarely-accessed objects.287288- NEVER report a CONFIG_GAP verdict when there are open HIGH findings.289 UNTRIAGED_FINDINGS is higher priority than CONFIG_GAP — the actual290 sensitive data exposure takes precedence over a plumbing issue. Always291 evaluate Step 2 before Step 3.292293- NEVER recommend deleting an allow-list entry without verifying why it294 was created. Allow-lists often suppress known false positives (e.g.,295 test data that looks like PII). Removing the entry may flood the296 findings queue with false positives. Recommend scoping the entry to a297 specific path instead of deleting it.298299- NEVER enable ASDD or create a classification job without considering300 cost. Macie charges per GB scanned. A full scan of a 100 TB data lake301 can cost thousands of dollars. Recommend starting with a sampled302 classification job and expanding coverage based on findings.303304- NEVER assume Macie is enabled across all regions. Macie is regional.305 An account may have Macie enabled in us-east-1 but not in eu-west-1.306 If the account has S3 buckets in multiple regions, audit each region307 independently.308309- NEVER overlook `findingsFilters` with `action: ARCHIVE`. These filters310 auto-suppress findings before operators see them. A filter matching311 "all findings in bucket X" can hide an entire bucket's worth of312 sensitive data discoveries. Concrete example: an ARCHIVE filter set to313 suppress MEDIUM-severity findings in `s3://app-logs/` will also314 suppress a HIGH-severity AWS credential finding that Macie315 mis-categorised as MEDIUM due to context scoring — the SOC never sees316 the exposed key. Always enumerate active filters during the audit and317 cross-reference each filter's criteria against the full severity range.318319- NEVER treat Macie findings as real-time. Even with ASDD, there is a320 latency (up to 24 hours) between when sensitive data is uploaded to S3321 and when Macie discovers it. The `createdAt` timestamp is when Macie322 detected the data, not when it was uploaded. For real-time protection,323 pair Macie with S3 Event Notifications.324325- NEVER assume managed data identifiers cover every data type your326 organisation considers sensitive. Macie provides 150+ managed patterns,327 but proprietary data formats (employee IDs, custom token formats)328 require custom data identifiers. An audit that finds zero findings may329 simply lack the right detection patterns.330331## Pre-flight safety checks (run before any remediation CLI)332333- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation334 (archiving findings, enabling ASDD, creating or modifying classification335 jobs, updating allow-lists), the auditor MUST emit:336 `CONFIRM: About to <action> in account <account> (<region>). This337 affects <consequence>. Proceed? (yes/no)`338- Before archiving a finding, verify that the underlying sensitive data339 has been investigated and remediated. Archiving without investigation340 hides the finding from future queries without addressing the exposure.341- Before enabling ASDD, estimate the scanning cost. ASDD scans all342 monitored S3 buckets in the account. Provide a cost estimate based on343 total bucket size.344- Before removing or scoping an allow-list entry, export the current345 allow-list for rollback:346 `aws macie2 get-allow-list --id <id> --output json > /tmp/allow-list-backup-$(date +%s).json`.347- Before modifying a findings filter, verify the filter's current348 criteria and action. A filter with `action: ARCHIVE` that is modified349 to `action: NOOP` will un-suppress all previously auto-archived350 findings — potentially flooding the findings queue.351352## Remediation guidance353354### For NO_CLASSIFICATION3553561. **Enable ASDD** for continuous sampling coverage:357 `aws macie2 update-automated-discovery-configuration --status ENABLED`.3582. **Create a classification job** for full-scan coverage on359 sensitive buckets:360 `aws macie2 create-classification-job --name <job-name> --job-type361 ONE_TIME --s3-job-definition '{"bucketDefinitions":[{"accountId":"<acct>","buckets":["<bucket>"]}]}'`.362 For compliance, use `samplingPercentage: 100`.3633. If a job exists but FAILED, check the job role IAM permissions and S3364 bucket existence, then recreate:365 `aws macie2 describe-classification-job --job-id <id>` to get failure366 details.3674. Verify coverage after 24 hours:368 `aws macie2 list-classification-jobs --results-window369 start=2026-01-01T00:00:00Z,end=2026-12-31T23:59:59Z`.370371### For UNTRIAGED_FINDINGS3723731. **Prioritise credential findings first.** An exposed AWS access key is374 an immediate compromise risk. Rotate the key, then investigate375 CloudTrail for unauthorised API calls during the exposure window.3762. **Verify PII findings.** Download flagged objects and confirm the377 detected data is real (not test data or false positives). If real PII,378 move to an encrypted, access-restricted bucket or delete if no longer379 needed.3803. **Archive findings only AFTER remediation:**381 `aws macie2 update-findings --finding-ids <id1> <id2> --status ARCHIVED`.3824. Set up a recurring triage cadence (daily for HIGH, weekly for MEDIUM)383 to prevent findings backlog.384385### For CONFIG_GAP386387**Security Hub export disabled (Step 3a):**3881. Enable publishing to Security Hub:389 `aws macie2 put-findings-publication-config --security-hub-configuration390 publishClassificationFindings=true,publishPolicyFindings=true`.3912. Export existing findings manually:392 `aws macie2 export-findings`.393394**Allow-list too broad (Step 3b):**3951. Review each wildcard-prefix entry.3962. Replace `s3://bucket/*` with specific object paths:397 `s3://bucket/known-test-data/sample.json`.3983. Update the allow-list:399 `aws macie2 update-allow-list --id <id> --criteria400 '{"s3Bucket":"<bucket>","s3Prefix":"<specific/path/>"}'`.401402**Auto-archive filter active (Step 3c):**4031. Review each filter's criteria and the count of findings it has404 auto-archived.4052. If the filter is masking real findings, change its action:406 `aws macie2 update-findings-filter --id <id> --action NOOP`.4073. Re-evaluate previously auto-archived findings for legitimacy.408409**ASDD stale (Step 3d):**4101. Check for service-level issues or IAM permission drift on the Macie411 service-linked role.4122. If needed, disable and re-enable ASDD:413 `aws macie2 update-automated-discovery-configuration --status DISABLED`414 then `--status ENABLED`.415416### For OK4174181. No remediation required for the current posture.4192. Recommend periodic re-audit (quarterly) to detect coverage drift.4203. Recommend adding custom data identifiers for organisation-specific421 sensitive data formats not covered by managed identifiers.422423## Recent AWS features (2024-2026)424425> The 2024-2026 feature notes moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).426> Load on demand when checking recent feature availability.427428## Reference — Expert knowledge — non-obvious Macie behaviors429430> The full expert-knowledge catalog moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md) — ASDD sampling, deterministic interval sampling, USER_CANCELLED partial results, initialRun blind spot, severity vs count semantics, silent truncation, CDI regex no-op, archived-vs-remediated, Security Hub non-retroactivity, allow-list wildcards, ARCHIVE filters, per-GB cost, managed identifier limits.431> Load it when a verdict is borderline or an edge case is not covered by the steps.432433## References (load on demand)434435- [references/advanced-patterns.md](references/advanced-patterns.md) — the expert-knowledge catalog of non-obvious Macie behaviors, the Step 1 FAILED-job edge case, and 2024-2026 feature notes.436- [references/error-handling.md](references/error-handling.md) — pagination guidance and AccessDeniedException / IAM-failure handling for the pre-flight gate.437438## Domain439440AWS CloudOps / Data Security & Compliance — Amazon Macie.441442## AWS documentation443444- **Amazon Macie User Guide** — https://docs.aws.amazon.com/macie/latest/user/what-macie.html445- **Macie Security** — https://docs.aws.amazon.com/macie/latest/user/security.html446- **Macie API Reference** — https://docs.aws.amazon.com/macie/latest/APIReference/macie.html447- **AWS CLI Command Reference (Macie)** — https://docs.aws.amazon.com/cli/latest/reference/macie2/448- **Macie managed data identifiers** — https://docs.aws.amazon.com/macie/latest/user/managed-data-identifiers.html449- **Macie findings** — https://docs.aws.amazon.com/macie/latest/user/findings.html