Glue Crawler & Job Auditor
Mindset
One-line takeaway: the verdict is always the worst finding across all
dimensions, and three Glue concepts are routinely misjudged —
EncryptionAtRest leaks catalog metadata, not processed data,
SecurityConfiguration does NOT encrypt the source (it covers logs,
spills, and bookmarks), and glue:CreateJob / glue:CreateCrawler are
silent pass-role vectors just like iam:PassRole.
A Glue ETL pipeline has five independent security surfaces that operators
frequently conflate:
- Data Catalog encryption (
EncryptionAtRest, ConnectionPasswordEncryption)
— two SEPARATE KMS-gated toggles. EncryptionAtRest encrypts catalog
metadata (database / table / column names, partition values, schema JSON).
ConnectionPasswordEncryption encrypts the JDBC password stored on the
Connection object. Enabling one does NOT enable the other.
- SecurityConfiguration on the resource — a named Glue resource that
encrypts CloudWatch logs, S3 spill / temp writes, and job bookmarks. It
does NOT encrypt the source data the job reads — that is the source
bucket's own SSE setting.
- JDBC Connection transport —
JDBC_ENFORCE_SSL on the Connection's
ConnectionProperties. Without it, Glue-to-DB traffic is cleartext.
- IAM execution role — the role attached to the crawler / job. Its
identity-based policy is the real blast radius;
glue:* and s3:* on *
are common and dangerous.
- Source S3 bucket encryption — SSE-S3 or SSE-KMS on the bucket the
crawler / job reads. This is the bucket's setting, not Glue's. Glue
inherits; it does not control it.
Quick reference — severity thresholds
| Condition |
Verdict |
Rule |
EncryptionAtRest.EncryptionMode: DISABLED (catalog metadata in plaintext) |
NO_ENCRYPTION |
Step 1 |
| S3 source bucket with no SSE (no bucket-encryption config) |
NO_ENCRYPTION |
Step 2 |
SecurityConfiguration missing AND JobBookmarksEncryption needed but absent |
(no verdict alone — Step 4) |
— |
Role has admin wildcard (Action: "*" Resource: "*") |
OVERPERMISSIVE_ROLE |
Step 3 |
Role has glue:* / s3:* / iam:PassRole on * |
OVERPERMISSIVE_ROLE |
Step 3 |
Role grants glue:CreateJob / glue:CreateCrawler on * + iam:PassRole on * |
OVERPERMISSIVE_ROLE |
Step 3 |
JDBC Connection with ConnectionType: JDBC and no JDBC_ENFORCE_SSL: true |
CONFIG_GAP |
Step 4 |
Job with no SecurityConfiguration (logs / spills / bookmarks unencrypted) |
CONFIG_GAP |
Step 4 |
Job on Glue version 0.9 or 1.0 (EOL, no security patches) |
CONFIG_GAP |
Step 4 |
JobBookmarksEncryption.JobBookmarksEncryptionMode: DISABLED on enabled bookmarks |
CONFIG_GAP |
Step 4 |
| All dimensions clean (catalog SSE-KMS, role least-privilege, SSL enforced, sec config present, Glue 2.0+, source encrypted) |
OK |
Step 5 |
See the ordered steps below for edge cases. The non-obvious Glue behaviors
that drive classification live in Step 0.
Pre-flight: resource metadata gate (run before classification)
Before evaluating the configuration, classify the resource and its dependent
artifacts. Several attributes short-circuit the audit — misclassifying
them produces false positives that erode trust.
Live-account pre-flight commands moved to references/diagnostic-commands.md — load on demand before a live audit.
| Attribute |
Value |
Effect on audit |
| Resource type |
Crawler |
Crawlers do not have a GlueVersion; skip the EOL check (Step 4d). Crawlers have Targets (S3Targets, JdbcTargets) instead of Connections on the job; map JdbcTargets to the JDBC Connection audit path. |
| Resource type |
Job |
Full audit including GlueVersion and SecurityConfiguration. |
EncryptionAtRest.EncryptionMode |
DISABLED |
Catalog metadata is plaintext. Proceed to Step 1. |
EncryptionAtRest.EncryptionMode |
SSE-KMS |
Catalog metadata is encrypted. OK for this dimension. |
ConnectionPasswordEncryption.ReturnConnectionPasswordEncrypted |
false |
JDBC connection passwords are retrievable in plaintext. Treat as CONFIG_GAP (Step 4) even if EncryptionAtRest is SSE-KMS — they are independent. |
SecurityConfiguration (on job) |
absent / null |
Logs, S3 spills, and bookmarks are unencrypted. CONFIG_GAP (Step 4b). |
| Named SecurityConfiguration |
deleted / EntityNotFoundException |
Same as absent — CONFIG_GAP. The job holds a dangling reference. |
GlueVersion |
0.9, 1.0 |
EOL. No security patches. CONFIG_GAP (Step 4d). |
GlueVersion |
2.0, 3.0, 4.0 |
Supported. OK for this dimension. |
| LakeFormation governance |
TRUE on target database |
IAM glue:* permissions are NEUTRALIZED for LF-governed tables — the crawler / job needs BOTH IAM and LakeFormation grants. Note in REMEDIATION; do not downgrade the IAM verdict (a removed LF grant re-exposes IAM). |
If the input config is malformed (invalid JSON, missing Role, missing
Targets on a crawler), output:
RESOURCE: <name>
VERDICT: ERROR
REASON: Glue configuration is malformed or missing required fields — cannot classify.
REMEDIATION: Re-fetch with `aws glue get-job --job-name <name>` or `aws glue get-crawler --name <name>` and re-audit.
Process — Classification logic (apply in order, aggregate worst)
The verdict priority order is NO_ENCRYPTION > OVERPERMISSIVE_ROLE >
CONFIG_GAP > OK. NO_ENCRYPTION is the headline because it is a confirmed
current-state data / metadata exposure; OVERPERMISSIVE_ROLE is a potential
escalation path that requires an actor to exploit; CONFIG_GAP is a
configuration weakness that raises exposure but is not itself a breach.
Step 0: Expert knowledge — non-obvious Glue behaviors that change classification
Each of these changes a verdict if ignored:
All 17 non-obvious-behaviour deep dives moved to references/advanced-patterns.md — load on demand before classifying edge findings.
Step 1: Data Catalog EncryptionAtRest (highest priority — metadata exposure)
If DataCatalogEncryptionSettings.EncryptionAtRest.EncryptionMode is
DISABLED (or the field is absent, which Glue treats as DISABLED), the
catalog stores metadata in plaintext: database names, table names, column
names, partition values, and schema JSON. This is a metadata leak, not a
data leak — but column names frequently reveal PII attributes (ssn,
email, date_of_birth) and partition values can leak business structure.
EncryptionAtRest DISABLED → NO_ENCRYPTION. This is the worst
verdict because it is a confirmed current-state exposure of catalog
metadata, including any sensitive column names.
EncryptionAtRest SSE-KMS (with or without a customer key) → OK for
this dimension. If SseAwsKmsKeyId is absent, Glue uses the
AWS-managed aws/glue key — still encrypted, but note the key-ownership
trade-off in REMEDIATION.
Step 2: S3 source bucket encryption (data-at-rest on the source)
For each S3 target / source the crawler or job reads, check the bucket's
server-side encryption configuration (aws s3api get-bucket-encryption).
No bucket-encryption configuration (no SSE) → NO_ENCRYPTION. The
processed data is plaintext at rest on S3. This is independent of catalog
encryption — a job can read an unencrypted bucket into an encrypted
catalog (and vice versa).
SSE-S3 (AES256) → OK for this dimension. SSE-S3 is the AWS default
and provides at-rest encryption. Do NOT require SSE-KMS — SSE-S3 is a
valid security posture for non-CMK-gated workloads.
SSE-KMS → OK for this dimension. If a customer-managed CMK is used,
note that the execution role needs kms:Decrypt on the key to read the
source — otherwise the job fails at read time.
Glue SecurityConfiguration does NOT cover the source. Do NOT let a
present SecurityConfiguration on the job mask a Step 2 finding. The
SecurityConfiguration encrypts Glue's own writes (logs, spills, bookmarks),
not the source bucket.
Step 3: IAM execution role blast radius
Classify the role's identity-based policy attached to the crawler / job
(Role field). The role is the real blast radius — Glue executes under it.
Admin wildcard (Action: "*" Resource: "*") → OVERPERMISSIVE_ROLE.
Equivalent to AdministratorAccess.
Service wildcard on * (glue:*, s3:*, or any privilege-escalation-
service wildcard on Resource: "*") → OVERPERMISSIVE_ROLE. s3:* on
* grants read / write to every bucket in the account; glue:* on *
grants catalog mutation including glue:DeleteTable.
iam:PassRole on "*" → OVERPERMISSIVE_ROLE. Combined with
glue:CreateJob / glue:CreateCrawler on * (Step 0), this is a
privilege-escalation vector — the principal can attach any role to a new
Glue resource and execute under it.
NotAction / NotResource (inverse wildcards) → OVERPERMISSIVE_ROLE.
These grant everything except the listed values; new Glue / S3 APIs are
automatically included.
Named actions on specific resources (e.g., glue:BatchCreatePartition
on arn:aws:glue:us-east-1:111:catalog / arn:aws:glue:...:database/prod,
s3:GetObject on arn:aws:s3:::etl-source/*) → least-privilege. OK for
this dimension.
The role verdict is the worst statement (OVERPERMISSIVE_ROLE if any
statement is over-permissive). Apply the same logic as the
iam-least-privilege-advisor skill for the role policy.
Step 4: Configuration gaps (no single gap is NO_ENCRYPTION, but each raises risk)
Each of these is CONFIG_GAP. They do not expose data directly but weaken the
security posture:
4a. JDBC Connection SSL not enforced. If the crawler / job references a
JDBC Connection (ConnectionType: JDBC) and the Connection's
ConnectionProperties does NOT include JDBC_ENFORCE_SSL: "true", the
Glue-to-DB transport is cleartext. CONFIG_GAP. If JDBC_ENFORCE_SSL: "true"
is set but the DB uses a self-signed cert and no JDBC_CUSTOM_CERT /
JDBC_CUSTOM_CERT_CHAIN is configured, flag as CONFIG_GAP (CA trust gap).
4b. SecurityConfiguration missing on job. If the job has no
SecurityConfiguration field (or the named configuration was deleted),
CloudWatch logs, S3 spill / temp writes, and job bookmarks are all
unencrypted. CONFIG_GAP. For crawlers, this is less critical (crawlers
produce fewer spill writes) but logs and bookmarks still apply — flag
equally.
4c. Job bookmarks unencrypted. If the job has bookmarks enabled
(JobBookmarksEncryption present in the SecurityConfiguration but
JobBookmarksEncryptionMode: DISABLED), the bookmark state (source offsets,
processed partitions) is stored in plaintext. CONFIG_GAP. Bookmarks are
regional state — same job name in different regions has independent
bookmark state.
4d. EOL Glue version. If the job's GlueVersion is 0.9 or 1.0,
the runtime is end-of-life with no security patches. CONFIG_GAP. Crawlers
do not have a GlueVersion — skip this check for crawler resources.
4e. Connection password encryption disabled. If
ConnectionPasswordEncryption.ReturnConnectionPasswordEncrypted: false,
JDBC connection passwords are retrievable in plaintext via
glue:GetConnection. CONFIG_GAP. This is independent of EncryptionAtRest
(Step 1).
Step 5: Aggregation — worst finding wins
The final verdict is the maximum severity across all findings, where
NO_ENCRYPTION > OVERPERMISSIVE_ROLE > CONFIG_GAP > OK:
verdict = max(catalog_encryption, s3_source_encryption, role_blast_radius, config_gap_findings)
If no findings (all dimensions OK), the verdict is OK.
Output format (per resource)
RESOURCE: <crawler-or-job-name>
VERDICT: NO_ENCRYPTION | OVERPERMISSIVE_ROLE | CONFIG_GAP | OK
REASON: <1-2 sentences citing the worst finding and its step number>
FINDINGS:
- [NO_ENCRYPTION] <finding description (Step N)>
- [CONFIG_GAP] <finding description (Step 4x)>
- [OK] <dimension that passed>
REMEDIATION: <specific action per finding, or "None required" if OK>
Worked example — catalog DISABLED + role wildcard
RESOURCE: no-encryption-catalog-disabled
VERDICT: NO_ENCRYPTION
REASON: DataCatalogEncryptionSettings.EncryptionAtRest.EncryptionMode is
DISABLED (Step 1) — catalog metadata including column names is stored in
plaintext. The execution role also grants s3:* on * (Step 3).
FINDINGS:
- [NO_ENCRYPTION] EncryptionAtRest.EncryptionMode is DISABLED — catalog metadata is plaintext (Step 1)
- [OVERPERMISSIVE_ROLE] Execution role grants s3:* on Resource "*" (Step 3)
- [OK] S3 source bucket has SSE-S3 enabled (Step 2)
REMEDIATION:
1. Enable catalog encryption:
aws glue put-data-catalog-encryption-settings \
--data-catalog-encryption-settings EncryptionAtRest={EncryptionMode=SSE-KMS},ConnectionPasswordEncryption={ReturnConnectionPasswordEncrypted=true}
NOTE: this is a breaking change — verify all catalog readers have kms:Decrypt on the catalog key first.
2. Scope the role's s3:* to the specific source bucket ARN(s).
Edge-case handling
Edge-case catalog (malformed config, crawler vs job, multi-source, cross-account, LF-governed) moved to references/advanced-patterns.md — load on demand.
Anti-Patterns — NEVER
NEVER treat SecurityConfiguration as source-data encryption. It encrypts
CloudWatch logs, S3 spills / temps, and bookmarks — NOT the S3 source the
job reads. A job with a perfect SecurityConfiguration can still read an
unencrypted source. Audit the source bucket separately (Step 2).
NEVER treat EncryptionAtRest and ConnectionPasswordEncryption as one
setting. They are independent API fields with independent KMS keys.
Enabling one and leaving the other disabled is a partial-config gap
(CONFIG_GAP, Step 4e), not OK.
NEVER flag ConnectionPasswordEncryption with no AwsKmsKeyId as a
vulnerability. Glue falls back to the AWS-managed aws/glue key — the
password is still encrypted-at-rest. Note the key-ownership trade-off but
do NOT downgrade the verdict for this alone.
NEVER treat SSE-S3 as insufficient. SSE-S3 (AES256) is a valid at-rest
encryption posture. Requiring SSE-KMS for every bucket is a false
positive. Only flag the ABSENCE of SSE (no bucket-encryption config) as
NO_ENCRYPTION.
NEVER overlook glue:CreateJob / glue:CreateCrawler as pass-role
vectors. Combined with iam:PassRole on "*", these let a principal
execute under any role in the account — a direct privilege-escalation
path, structurally identical to the iam:PassRole + EC2 / Lambda pattern.
NEVER assume the named SecurityConfiguration exists. A job may
reference a deleted configuration; Glue silently treats a missing
reference as no encryption on logs / spills / bookmarks. Always
aws glue get-security-configuration --name <name> and treat
EntityNotFoundException as CONFIG_GAP.
NEVER flag a crawler for a missing GlueVersion. Crawlers do not have a
GlueVersion field — only jobs do. Flagging EOL version on a crawler is
a false positive (Step 4d applies to jobs only).
NEVER enable catalog encryption without verifying catalog readers have
kms:Decrypt on the catalog key. Enabling EncryptionAtRest: SSE-KMS on
a previously-DISABLED catalog is a breaking change — cross-account
readers, Athena workgroups, and downstream ETL without the KMS grant
silently break. Surface this in REMEDIATION as a migration step.
NEVER treat JDBC_ENFORCE_SSL: true as sufficient alone for self-signed
certificates. The Glue runtime must trust the DB's CA. For RDS the
bundled CA suffices; for private-CA databases, JDBC_CUSTOM_CERT /
JDBC_CUSTOM_CERT_CHAIN must be set. A connection with SSL enforced but
an untrusted CA fails at runtime.
NEVER evaluate S3Encryptions as a multi-layer array. Glue uses only the
FIRST element. Multiple entries do not layer encryption — auditing
S3Encryptions[1+] produces false confidence.
NEVER downgrade the IAM role verdict when LakeFormation is enabled. LF
neutralizes IAM for governed tables, but a removed LF grant re-exposes the
IAM over-permission. The IAM policy is the classification truth; LF is a
defense-in-depth layer, not a replacement.
NEVER assume the Data Catalog encryption setting is global. It is
regional. A multi-region pipeline must enable encryption in EACH region
with --region <r>. A us-east-1 SSE-KMS setting does not propagate.
NEVER treat ConnectionPasswordEncryption: false as a benign config gap.
glue:GetConnection returns the JDBC password in plaintext in the API
response when ReturnConnectionPasswordEncrypted: false. Any principal
with glue:GetConnection on the connection ARN is one CLI call away from
the live database password. Flag the role's glue:GetConnection grant as
part of the blast-radius evaluation — the password is retrievable, not
just stored.
NEVER audit the catalog encryption setting without auditing the KMS key
policy behind it. Unlike S3 (where a bucket policy can enforce a CMK),
the Glue Data Catalog has NO resource-based policy — the catalog key's KMS
policy is the ONLY access-control layer for cross-account readers. A
cross-account reader returning AccessDenied after SSE-KMS enablement
almost always has a key-policy gap, not an IAM gap.
NEVER recommend deleting a Glue job or crawler as remediation without
first confirming no downstream consumers (Athena views, QuickSight
datasets, downstream ETL) depend on it. Catalog table drops cascade.
Pre-flight safety checks (run before any remediation CLI)
- MANDATORY CONFIRMATION GATE. Before any state-changing operation
(
UpdateJob, UpdateCrawler, PutDataCatalogEncryptionSettings,
CreateSecurityConfiguration, DeleteCrawler), the auditor MUST emit:
CONFIRM: About to <action> on <resource> in account <account>. This affects <consequence>. Proceed? (yes/no) Do NOT execute the CLI command
until the operator confirms.
- Verify remediation permissions. Before emitting
UpdateJob /
UpdateCrawler remediation, confirm the caller's role has
glue:UpdateJob / glue:UpdateCrawler. Most read-only auditor roles
CANNOT — the command will fail with AccessDeniedException.
- Catalog encryption migration is a breaking change. Before enabling
EncryptionAtRest: SSE-KMS on a DISABLED catalog, enumerate every
principal that reads the catalog (Athena workgroups, cross-account
readers, downstream ETL) and verify each has kms:Decrypt on the
catalog key. Enabling encryption without this coordination produces a
silent multi-workload outage.
- Capture current config for rollback.
aws glue get-job --job-name <name> > /tmp/<name>-backup-$(date +%s).json
BEFORE any modification. Glue job / crawler configs are not versioned —
there is no undo without a backup.
- Bookmark encryption role check. Before setting
JobBookmarksEncryptionMode: CSE-KMS, verify the execution role has
kms:Decrypt / kms:GenerateDataKey on the bookmark KMS key. A bookmark
key the role cannot decrypt is an operational break (job fails at bookmark
read).
- Prefer additive changes. Adding a SecurityConfiguration to a job is
reversible; dropping a wildcard statement may break the workload.
Sequence: (1) back up, (2) add the SecurityConfiguration, (3) verify the
job runs, (4) only then tighten the role policy.
Remediation guidance
Per-verdict remediation CLI (NO_ENCRYPTION, OVERPERMISSIVE_ROLE, CONFIG_GAP, OK) moved to references/error-handling.md — load on demand when emitting REMEDIATION.
Deep reference: Glue encryption layers
Encryption-layer deep reference (five surfaces, authorization layering, bookmark state semantics) moved to references/advanced-patterns.md — load on demand.
Recent AWS features (2024-2026)
Recent feature notes moved to references/advanced-patterns.md — load on demand.
References (load on demand)
- references/advanced-patterns.md — Step 0 expert-knowledge deep dives, edge-case catalog, Glue encryption-layer deep reference, recent AWS features.
- references/error-handling.md — remediation CLI per verdict (NO_ENCRYPTION, OVERPERMISSIVE_ROLE, CONFIG_GAP, OK) with breaking-change and rollback notes.
- references/diagnostic-commands.md — live-account pre-flight checks (permissions, SecurityConfiguration existence, connection password encryption).
Domain
AWS CloudOps / Glue Analytics Security & Compliance.
AWS documentation
1---2name: glue-crawler-job-auditor3description: Audits AWS Glue crawlers and jobs (plus their data-catalog encryption, JDBC connections, IAM execution roles, security configurations, job bookmarks, and S3 source encryption) for data-at-rest exposure, over-permissive pass-role blast radius, and configuration gaps. Emits a deterministic verdict — NO_ENCRYPTION | OVERPERMISSIVE_ROLE | CONFIG_GAP | OK — per crawler or job with enumerated findings and CLI remediation. Use when reviewing Glue crawlers/jobs before production, checking catalog encryption, validating JDBC SSL, tightening the execution role, or hardening ETL security posture.4license: Apache-2.05compatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline config classification. Live-account audits use aws glue get-data-catalog-encryption-settings, get-security- configuration, get-job, get-crawler, get-connection, and aws s3api get-bucket-encryption (AWS CLI v2, SSO or key-based credentials).6metadata:7 source: https://skillmd.com/skills/jhkchan/glue-crawler-job-auditor8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '2'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Analytics15 verdict_shape: NO_ENCRYPTION | OVERPERMISSIVE_ROLE | CONFIG_GAP | OK16 when_to_use: Reviewing a Glue crawler or job before production deployment, checking data-catalog encryption (EncryptionAtRest / ConnectionPasswordEncryption), validating JDBC connection SSL, auditing the execution role for pass-role or wildcard blast radius, inspecting a SecurityConfiguration for log / bookmark / spill encryption, flagging an EOL Glue version, or hardening ETL security posture across an account.17 activation_triggers: audit this Glue crawler, audit this Glue job, is my Glue catalog encrypted, check JDBC SSL on the Glue connection, Glue execution role too permissive, is the SecurityConfiguration set on the job, are Glue bookmarks encrypted, is the S3 source encrypted, harden Glue ETL, Glue 0.9 end of life18 invocation_schema: 'Input: either (a) a Glue crawler or job configuration (JSON / describe output) plus the DataCatalogEncryptionSettings, SecurityConfiguration, Connection, and IAM role policy documents, OR (b) a crawler / job name for live-account audit. Output: deterministic RESOURCE/VERDICT/REASON/ FINDINGS/REMEDIATION block per crawler or job, where VERDICT is in {NO_ENCRYPTION, OVERPERMISSIVE_ROLE, CONFIG_GAP, OK, ERROR}.'19 version: 0.1.020 author: Jacky Chan — AWS Community Builder21 keywords: Glue, crawler, Glue job, data catalog encryption, EncryptionAtRest, SecurityConfiguration, JDBC SSL, JDBC_ENFORCE_SSL, job bookmarks, S3 source encryption, execution role, PassRole, glue:CreateJob, glue:CreateCrawler, over-permissive role, Glue 0.9, EOL runtime, CloudWatch encryption, S3Encryptions, LakeFormation, ConnectionPasswordEncryption, ETL audit22 tags: glue, analytics, security, encryption, iam-role, jdbc, bookmarks, security-configuration, audit23---2425# Glue Crawler & Job Auditor2627## Mindset2829**One-line takeaway:** the verdict is always the **worst** finding across all30dimensions, and three Glue concepts are routinely misjudged —31**`EncryptionAtRest` leaks catalog *metadata*, not processed data**,32**`SecurityConfiguration` does NOT encrypt the source** (it covers logs,33spills, and bookmarks), and **`glue:CreateJob` / `glue:CreateCrawler` are34silent pass-role vectors** just like `iam:PassRole`.3536A Glue ETL pipeline has five independent security surfaces that operators37frequently conflate:38391. **Data Catalog encryption** (`EncryptionAtRest`, `ConnectionPasswordEncryption`)40 — two SEPARATE KMS-gated toggles. `EncryptionAtRest` encrypts catalog41 metadata (database / table / column names, partition values, schema JSON).42 `ConnectionPasswordEncryption` encrypts the JDBC password stored on the43 Connection object. Enabling one does NOT enable the other.442. **SecurityConfiguration on the resource** — a named Glue resource that45 encrypts CloudWatch logs, S3 spill / temp writes, and job bookmarks. It46 does NOT encrypt the source data the job reads — that is the *source47 bucket's* own SSE setting.483. **JDBC Connection transport** — `JDBC_ENFORCE_SSL` on the Connection's49 `ConnectionProperties`. Without it, Glue-to-DB traffic is cleartext.504. **IAM execution role** — the role attached to the crawler / job. Its51 identity-based policy is the real blast radius; `glue:*` and `s3:*` on `*`52 are common and dangerous.535. **Source S3 bucket encryption** — SSE-S3 or SSE-KMS on the bucket the54 crawler / job reads. This is the bucket's setting, not Glue's. Glue55 inherits; it does not control it.5657## Quick reference — severity thresholds5859| Condition | Verdict | Rule |60|---|---|---|61| `EncryptionAtRest.EncryptionMode: DISABLED` (catalog metadata in plaintext) | **NO_ENCRYPTION** | Step 1 |62| S3 source bucket with no SSE (no bucket-encryption config) | **NO_ENCRYPTION** | Step 2 |63| `SecurityConfiguration` missing AND `JobBookmarksEncryption` needed but absent | (no verdict alone — Step 4) | — |64| Role has admin wildcard (`Action: "*"` `Resource: "*"`) | **OVERPERMISSIVE_ROLE** | Step 3 |65| Role has `glue:*` / `s3:*` / `iam:PassRole` on `*` | **OVERPERMISSIVE_ROLE** | Step 3 |66| Role grants `glue:CreateJob` / `glue:CreateCrawler` on `*` + `iam:PassRole` on `*` | **OVERPERMISSIVE_ROLE** | Step 3 |67| JDBC Connection with `ConnectionType: JDBC` and no `JDBC_ENFORCE_SSL: true` | **CONFIG_GAP** | Step 4 |68| Job with no `SecurityConfiguration` (logs / spills / bookmarks unencrypted) | **CONFIG_GAP** | Step 4 |69| Job on Glue version `0.9` or `1.0` (EOL, no security patches) | **CONFIG_GAP** | Step 4 |70| `JobBookmarksEncryption.JobBookmarksEncryptionMode: DISABLED` on enabled bookmarks | **CONFIG_GAP** | Step 4 |71| All dimensions clean (catalog SSE-KMS, role least-privilege, SSL enforced, sec config present, Glue 2.0+, source encrypted) | **OK** | Step 5 |7273See the ordered steps below for edge cases. The non-obvious Glue behaviors74that drive classification live in Step 0.7576## Pre-flight: resource metadata gate (run before classification)7778Before evaluating the configuration, classify the resource and its dependent79artifacts. Several attributes **short-circuit** the audit — misclassifying80them produces false positives that erode trust.8182Live-account pre-flight commands moved to [references/diagnostic-commands.md](references/diagnostic-commands.md) — load on demand before a live audit.8384| Attribute | Value | Effect on audit |85|---|---|---|86| Resource type | `Crawler` | Crawlers do not have a `GlueVersion`; skip the EOL check (Step 4d). Crawlers have `Targets` (S3Targets, JdbcTargets) instead of `Connections` on the job; map JdbcTargets to the JDBC Connection audit path. |87| Resource type | `Job` | Full audit including GlueVersion and SecurityConfiguration. |88| `EncryptionAtRest.EncryptionMode` | `DISABLED` | Catalog metadata is plaintext. Proceed to Step 1. |89| `EncryptionAtRest.EncryptionMode` | `SSE-KMS` | Catalog metadata is encrypted. OK for this dimension. |90| `ConnectionPasswordEncryption.ReturnConnectionPasswordEncrypted` | `false` | JDBC connection passwords are retrievable in plaintext. Treat as CONFIG_GAP (Step 4) even if `EncryptionAtRest` is SSE-KMS — they are independent. |91| `SecurityConfiguration` (on job) | absent / null | Logs, S3 spills, and bookmarks are unencrypted. CONFIG_GAP (Step 4b). |92| Named SecurityConfiguration | deleted / `EntityNotFoundException` | Same as absent — CONFIG_GAP. The job holds a dangling reference. |93| `GlueVersion` | `0.9`, `1.0` | **EOL.** No security patches. CONFIG_GAP (Step 4d). |94| `GlueVersion` | `2.0`, `3.0`, `4.0` | Supported. OK for this dimension. |95| LakeFormation governance | `TRUE` on target database | IAM `glue:*` permissions are NEUTRALIZED for LF-governed tables — the crawler / job needs BOTH IAM and LakeFormation grants. Note in REMEDIATION; do not downgrade the IAM verdict (a removed LF grant re-exposes IAM). |9697**If the input config is malformed** (invalid JSON, missing `Role`, missing98`Targets` on a crawler), output:99100```text101RESOURCE: <name>102VERDICT: ERROR103REASON: Glue configuration is malformed or missing required fields — cannot classify.104REMEDIATION: Re-fetch with `aws glue get-job --job-name <name>` or `aws glue get-crawler --name <name>` and re-audit.105```106107## Process — Classification logic (apply in order, aggregate worst)108109The verdict priority order is **NO_ENCRYPTION > OVERPERMISSIVE_ROLE >110CONFIG_GAP > OK**. NO_ENCRYPTION is the headline because it is a confirmed111current-state data / metadata exposure; OVERPERMISSIVE_ROLE is a potential112escalation path that requires an actor to exploit; CONFIG_GAP is a113configuration weakness that raises exposure but is not itself a breach.114115### Step 0: Expert knowledge — non-obvious Glue behaviors that change classification116117Each of these changes a verdict if ignored:118119All 17 non-obvious-behaviour deep dives moved to [references/advanced-patterns.md](references/advanced-patterns.md) — load on demand before classifying edge findings.120121### Step 1: Data Catalog EncryptionAtRest (highest priority — metadata exposure)122123If `DataCatalogEncryptionSettings.EncryptionAtRest.EncryptionMode` is124`DISABLED` (or the field is absent, which Glue treats as DISABLED), the125catalog stores metadata in plaintext: database names, table names, column126names, partition values, and schema JSON. This is a metadata leak, not a127data leak — but column names frequently reveal PII attributes (`ssn`,128`email`, `date_of_birth`) and partition values can leak business structure.129130- **EncryptionAtRest DISABLED** → **NO_ENCRYPTION**. This is the worst131 verdict because it is a confirmed current-state exposure of catalog132 metadata, including any sensitive column names.133134- **EncryptionAtRest SSE-KMS (with or without a customer key)** → OK for135 this dimension. If `SseAwsKmsKeyId` is absent, Glue uses the136 AWS-managed `aws/glue` key — still encrypted, but note the key-ownership137 trade-off in REMEDIATION.138139### Step 2: S3 source bucket encryption (data-at-rest on the source)140141For each S3 target / source the crawler or job reads, check the bucket's142server-side encryption configuration (`aws s3api get-bucket-encryption`).143144- **No bucket-encryption configuration (no SSE)** → **NO_ENCRYPTION**. The145 processed data is plaintext at rest on S3. This is independent of catalog146 encryption — a job can read an unencrypted bucket into an encrypted147 catalog (and vice versa).148149- **SSE-S3 (AES256)** → OK for this dimension. SSE-S3 is the AWS default150 and provides at-rest encryption. Do NOT require SSE-KMS — SSE-S3 is a151 valid security posture for non-CMK-gated workloads.152153- **SSE-KMS** → OK for this dimension. If a customer-managed CMK is used,154 note that the execution role needs `kms:Decrypt` on the key to read the155 source — otherwise the job fails at read time.156157**Glue SecurityConfiguration does NOT cover the source.** Do NOT let a158present SecurityConfiguration on the job mask a Step 2 finding. The159SecurityConfiguration encrypts Glue's own writes (logs, spills, bookmarks),160not the source bucket.161162### Step 3: IAM execution role blast radius163164Classify the role's identity-based policy attached to the crawler / job165(`Role` field). The role is the real blast radius — Glue executes under it.166167- **Admin wildcard** (`Action: "*"` `Resource: "*"`) → **OVERPERMISSIVE_ROLE**.168 Equivalent to `AdministratorAccess`.169170- **Service wildcard on `*`** (`glue:*`, `s3:*`, or any privilege-escalation-171 service wildcard on `Resource: "*"`) → **OVERPERMISSIVE_ROLE**. `s3:*` on172 `*` grants read / write to every bucket in the account; `glue:*` on `*`173 grants catalog mutation including `glue:DeleteTable`.174175- **`iam:PassRole` on `"*"`** → **OVERPERMISSIVE_ROLE**. Combined with176 `glue:CreateJob` / `glue:CreateCrawler` on `*` (Step 0), this is a177 privilege-escalation vector — the principal can attach any role to a new178 Glue resource and execute under it.179180- **`NotAction` / `NotResource`** (inverse wildcards) → **OVERPERMISSIVE_ROLE**.181 These grant everything except the listed values; new Glue / S3 APIs are182 automatically included.183184- **Named actions on specific resources** (e.g., `glue:BatchCreatePartition`185 on `arn:aws:glue:us-east-1:111:catalog` / `arn:aws:glue:...:database/prod`,186 `s3:GetObject` on `arn:aws:s3:::etl-source/*`) → least-privilege. OK for187 this dimension.188189The role verdict is the worst statement (OVERPERMISSIVE_ROLE if any190statement is over-permissive). Apply the same logic as the191`iam-least-privilege-advisor` skill for the role policy.192193### Step 4: Configuration gaps (no single gap is NO_ENCRYPTION, but each raises risk)194195Each of these is CONFIG_GAP. They do not expose data directly but weaken the196security posture:197198**4a. JDBC Connection SSL not enforced.** If the crawler / job references a199JDBC Connection (`ConnectionType: JDBC`) and the Connection's200`ConnectionProperties` does NOT include `JDBC_ENFORCE_SSL: "true"`, the201Glue-to-DB transport is cleartext. CONFIG_GAP. If `JDBC_ENFORCE_SSL: "true"`202is set but the DB uses a self-signed cert and no `JDBC_CUSTOM_CERT` /203`JDBC_CUSTOM_CERT_CHAIN` is configured, flag as CONFIG_GAP (CA trust gap).204205**4b. SecurityConfiguration missing on job.** If the job has no206`SecurityConfiguration` field (or the named configuration was deleted),207CloudWatch logs, S3 spill / temp writes, and job bookmarks are all208unencrypted. CONFIG_GAP. For crawlers, this is less critical (crawlers209produce fewer spill writes) but logs and bookmarks still apply — flag210equally.211212**4c. Job bookmarks unencrypted.** If the job has bookmarks enabled213(`JobBookmarksEncryption` present in the SecurityConfiguration but214`JobBookmarksEncryptionMode: DISABLED`), the bookmark state (source offsets,215processed partitions) is stored in plaintext. CONFIG_GAP. Bookmarks are216regional state — same job name in different regions has independent217bookmark state.218219**4d. EOL Glue version.** If the job's `GlueVersion` is `0.9` or `1.0`,220the runtime is end-of-life with no security patches. CONFIG_GAP. Crawlers221do not have a `GlueVersion` — skip this check for crawler resources.222223**4e. Connection password encryption disabled.** If224`ConnectionPasswordEncryption.ReturnConnectionPasswordEncrypted: false`,225JDBC connection passwords are retrievable in plaintext via226`glue:GetConnection`. CONFIG_GAP. This is independent of EncryptionAtRest227(Step 1).228229### Step 5: Aggregation — worst finding wins230231The final verdict is the **maximum severity** across all findings, where232NO_ENCRYPTION > OVERPERMISSIVE_ROLE > CONFIG_GAP > OK:233234```text235verdict = max(catalog_encryption, s3_source_encryption, role_blast_radius, config_gap_findings)236```237238If no findings (all dimensions OK), the verdict is **OK**.239240## Output format (per resource)241242```text243RESOURCE: <crawler-or-job-name>244VERDICT: NO_ENCRYPTION | OVERPERMISSIVE_ROLE | CONFIG_GAP | OK245REASON: <1-2 sentences citing the worst finding and its step number>246FINDINGS:247 - [NO_ENCRYPTION] <finding description (Step N)>248 - [CONFIG_GAP] <finding description (Step 4x)>249 - [OK] <dimension that passed>250REMEDIATION: <specific action per finding, or "None required" if OK>251```252253### Worked example — catalog DISABLED + role wildcard254255```text256RESOURCE: no-encryption-catalog-disabled257VERDICT: NO_ENCRYPTION258REASON: DataCatalogEncryptionSettings.EncryptionAtRest.EncryptionMode is259DISABLED (Step 1) — catalog metadata including column names is stored in260plaintext. The execution role also grants s3:* on * (Step 3).261FINDINGS:262 - [NO_ENCRYPTION] EncryptionAtRest.EncryptionMode is DISABLED — catalog metadata is plaintext (Step 1)263 - [OVERPERMISSIVE_ROLE] Execution role grants s3:* on Resource "*" (Step 3)264 - [OK] S3 source bucket has SSE-S3 enabled (Step 2)265REMEDIATION:266 1. Enable catalog encryption:267 aws glue put-data-catalog-encryption-settings \268 --data-catalog-encryption-settings EncryptionAtRest={EncryptionMode=SSE-KMS},ConnectionPasswordEncryption={ReturnConnectionPasswordEncrypted=true}269 NOTE: this is a breaking change — verify all catalog readers have kms:Decrypt on the catalog key first.270 2. Scope the role's s3:* to the specific source bucket ARN(s).271```272273## Edge-case handling274275Edge-case catalog (malformed config, crawler vs job, multi-source, cross-account, LF-governed) moved to [references/advanced-patterns.md](references/advanced-patterns.md) — load on demand.276277## Anti-Patterns — NEVER278279- NEVER treat `SecurityConfiguration` as source-data encryption. It encrypts280 CloudWatch logs, S3 spills / temps, and bookmarks — NOT the S3 source the281 job reads. A job with a perfect SecurityConfiguration can still read an282 unencrypted source. Audit the source bucket separately (Step 2).283284- NEVER treat `EncryptionAtRest` and `ConnectionPasswordEncryption` as one285 setting. They are independent API fields with independent KMS keys.286 Enabling one and leaving the other disabled is a partial-config gap287 (CONFIG_GAP, Step 4e), not OK.288289- NEVER flag `ConnectionPasswordEncryption` with no `AwsKmsKeyId` as a290 vulnerability. Glue falls back to the AWS-managed `aws/glue` key — the291 password is still encrypted-at-rest. Note the key-ownership trade-off but292 do NOT downgrade the verdict for this alone.293294- NEVER treat SSE-S3 as insufficient. SSE-S3 (AES256) is a valid at-rest295 encryption posture. Requiring SSE-KMS for every bucket is a false296 positive. Only flag the ABSENCE of SSE (no bucket-encryption config) as297 NO_ENCRYPTION.298299- NEVER overlook `glue:CreateJob` / `glue:CreateCrawler` as pass-role300 vectors. Combined with `iam:PassRole` on `"*"`, these let a principal301 execute under any role in the account — a direct privilege-escalation302 path, structurally identical to the `iam:PassRole` + EC2 / Lambda pattern.303304- NEVER assume the named `SecurityConfiguration` exists. A job may305 reference a deleted configuration; Glue silently treats a missing306 reference as no encryption on logs / spills / bookmarks. Always307 `aws glue get-security-configuration --name <name>` and treat308 `EntityNotFoundException` as CONFIG_GAP.309310- NEVER flag a crawler for a missing `GlueVersion`. Crawlers do not have a311 `GlueVersion` field — only jobs do. Flagging EOL version on a crawler is312 a false positive (Step 4d applies to jobs only).313314- NEVER enable catalog encryption without verifying catalog readers have315 `kms:Decrypt` on the catalog key. Enabling `EncryptionAtRest: SSE-KMS` on316 a previously-DISABLED catalog is a breaking change — cross-account317 readers, Athena workgroups, and downstream ETL without the KMS grant318 silently break. Surface this in REMEDIATION as a migration step.319320- NEVER treat `JDBC_ENFORCE_SSL: true` as sufficient alone for self-signed321 certificates. The Glue runtime must trust the DB's CA. For RDS the322 bundled CA suffices; for private-CA databases, `JDBC_CUSTOM_CERT` /323 `JDBC_CUSTOM_CERT_CHAIN` must be set. A connection with SSL enforced but324 an untrusted CA fails at runtime.325326- NEVER evaluate `S3Encryptions` as a multi-layer array. Glue uses only the327 FIRST element. Multiple entries do not layer encryption — auditing328 `S3Encryptions[1+]` produces false confidence.329330- NEVER downgrade the IAM role verdict when LakeFormation is enabled. LF331 neutralizes IAM for governed tables, but a removed LF grant re-exposes the332 IAM over-permission. The IAM policy is the classification truth; LF is a333 defense-in-depth layer, not a replacement.334335- NEVER assume the Data Catalog encryption setting is global. It is336 regional. A multi-region pipeline must enable encryption in EACH region337 with `--region <r>`. A us-east-1 SSE-KMS setting does not propagate.338339- NEVER treat `ConnectionPasswordEncryption: false` as a benign config gap.340 `glue:GetConnection` returns the JDBC password in plaintext in the API341 response when `ReturnConnectionPasswordEncrypted: false`. Any principal342 with `glue:GetConnection` on the connection ARN is one CLI call away from343 the live database password. Flag the role's `glue:GetConnection` grant as344 part of the blast-radius evaluation — the password is retrievable, not345 just stored.346347- NEVER audit the catalog encryption setting without auditing the KMS key348 policy behind it. Unlike S3 (where a bucket policy can enforce a CMK),349 the Glue Data Catalog has NO resource-based policy — the catalog key's KMS350 policy is the ONLY access-control layer for cross-account readers. A351 cross-account reader returning `AccessDenied` after SSE-KMS enablement352 almost always has a key-policy gap, not an IAM gap.353354- NEVER recommend deleting a Glue job or crawler as remediation without355 first confirming no downstream consumers (Athena views, QuickSight356 datasets, downstream ETL) depend on it. Catalog table drops cascade.357358## Pre-flight safety checks (run before any remediation CLI)359360- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation361 (`UpdateJob`, `UpdateCrawler`, `PutDataCatalogEncryptionSettings`,362 `CreateSecurityConfiguration`, `DeleteCrawler`), the auditor MUST emit:363 `CONFIRM: About to <action> on <resource> in account <account>. This364 affects <consequence>. Proceed? (yes/no)` Do NOT execute the CLI command365 until the operator confirms.366- **Verify remediation permissions.** Before emitting `UpdateJob` /367 `UpdateCrawler` remediation, confirm the caller's role has368 `glue:UpdateJob` / `glue:UpdateCrawler`. Most read-only auditor roles369 CANNOT — the command will fail with `AccessDeniedException`.370- **Catalog encryption migration is a breaking change.** Before enabling371 `EncryptionAtRest: SSE-KMS` on a DISABLED catalog, enumerate every372 principal that reads the catalog (Athena workgroups, cross-account373 readers, downstream ETL) and verify each has `kms:Decrypt` on the374 catalog key. Enabling encryption without this coordination produces a375 silent multi-workload outage.376- **Capture current config for rollback.**377 `aws glue get-job --job-name <name> > /tmp/<name>-backup-$(date +%s).json`378 BEFORE any modification. Glue job / crawler configs are not versioned —379 there is no undo without a backup.380- **Bookmark encryption role check.** Before setting381 `JobBookmarksEncryptionMode: CSE-KMS`, verify the execution role has382 `kms:Decrypt` / `kms:GenerateDataKey` on the bookmark KMS key. A bookmark383 key the role cannot decrypt is an operational break (job fails at bookmark384 read).385- **Prefer additive changes.** Adding a SecurityConfiguration to a job is386 reversible; dropping a wildcard statement may break the workload.387 Sequence: (1) back up, (2) add the SecurityConfiguration, (3) verify the388 job runs, (4) only then tighten the role policy.389390## Remediation guidance391392Per-verdict remediation CLI (NO_ENCRYPTION, OVERPERMISSIVE_ROLE, CONFIG_GAP, OK) moved to [references/error-handling.md](references/error-handling.md) — load on demand when emitting REMEDIATION.393394## Deep reference: Glue encryption layers395396Encryption-layer deep reference (five surfaces, authorization layering, bookmark state semantics) moved to [references/advanced-patterns.md](references/advanced-patterns.md) — load on demand.397398## Recent AWS features (2024-2026)399400Recent feature notes moved to [references/advanced-patterns.md](references/advanced-patterns.md) — load on demand.401402## References (load on demand)403404- [references/advanced-patterns.md](references/advanced-patterns.md) — Step 0 expert-knowledge deep dives, edge-case catalog, Glue encryption-layer deep reference, recent AWS features.405- [references/error-handling.md](references/error-handling.md) — remediation CLI per verdict (NO_ENCRYPTION, OVERPERMISSIVE_ROLE, CONFIG_GAP, OK) with breaking-change and rollback notes.406- [references/diagnostic-commands.md](references/diagnostic-commands.md) — live-account pre-flight checks (permissions, SecurityConfiguration existence, connection password encryption).407408## Domain409410AWS CloudOps / Glue Analytics Security & Compliance.411412## AWS documentation413414- **AWS Glue Developer Guide** — https://docs.aws.amazon.com/glue/latest/dg/what-is-glue.html415- **Glue Security** — https://docs.aws.amazon.com/glue/latest/dg/security.html416- **Glue API Reference** — https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api.html417- **Glue CLI Reference** — https://docs.aws.amazon.com/cli/latest/reference/glue/418- **Glue Data Quality** — https://docs.aws.amazon.com/glue/latest/dg/data-quality.html