Check ID:
Provider: AWS
Service:
Severity: MEDIUM
Categories:
Resource type:
athena_workgroup_enforce_configurationProvider: AWS
Service:
athenaSeverity: MEDIUM
Categories:
encryptionResource type:
AwsAthenaWorkGroupWhat this check verifies
Athena workgroups that setenforce_workgroup_configuration=true apply the workgroup’s settings to every query, overriding client-side options for results location, expected bucket owner, encryption, and control of objects written to the results bucket.
Risk
Without enforcement, clients may disable or change result encryption, redirect outputs to unintended or cross-account buckets, and bypass retention controls. This enables data exposure (C), result tampering (I), and weak auditability, complicating incident response.Recommendation
Setenforce_workgroup_configuration=true to centralize control.
Require encrypted results (prefer SSE-KMS), restrict output to approved S3 locations with expected bucket owner, and apply least privilege. Monitor results access and logs as part of defense in depth.
Remediation
- CLI
- Terraform
- Native IaC
- Dashboard steps
References
- https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html
- https://support.icompaas.com/support/solutions/articles/62000233407-ensure-that-workgroup-configuration-is-enforced-so-it-cannot-be-overriden-by-client-side-settings-
Where this check fires
This check runs on every scheduled scan against your AWS account. Findings appear at Cloud Security → Findings filterable byCheck ID = athena_workgroup_enforce_configuration. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to AWS checks