Check ID:
Provider: AWS
Service:
Severity: MEDIUM
Categories:
Resource type:
athena_workgroup_logging_enabledProvider: AWS
Service:
athenaSeverity: MEDIUM
Categories:
loggingResource type:
AwsAthenaWorkGroupWhat this check verifies
Athena workgroups publish query metrics to CloudWatch. This evaluation determines whether each workgroup has query activity logging enabled in CloudWatch.Risk
Without CloudWatch query logging, risky or anomalous queries go unobserved, weakening confidentiality and integrity. Compromised or insider accounts can exfiltrate data and alter datasets without timely detection, hampering forensics and containment.Recommendation
Enable and enforce CloudWatch query logging for all workgroups (PublishCloudWatchMetricsEnabled).
- Apply least privilege to logs and encrypt at rest
- Set retention and anomaly alerts
- Correlate with CloudTrail for user attribution
- Centralize logs to a monitoring account
Remediation
- CLI
- Terraform
- Native IaC
- Dashboard steps
References
- https://docs.aws.amazon.com/athena/latest/ug/security-logging-monitoring.html
- https://docs.aws.amazon.com/athena/latest/ug/athena-cloudwatch-metrics-enable.html
- https://stackoverflow.com/questions/68896809/how-to-save-queries-executed-by-athena-in-logsgroup-cloudwatch
- https://support.icompaas.com/support/solutions/articles/62000233405-ensure-that-logging-is-enabled-for-amazon-athena-workgroups-to-capture-query-activity-
- https://docs.aws.amazon.com/securityhub/latest/userguide/athena-controls.html#athena-4
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_logging_enabled. 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