Check ID:
Provider: AWS
Service:
Severity: HIGH
Categories:
Resource type:
datasync_task_logging_enabledProvider: AWS
Service:
datasyncSeverity: HIGH
Categories:
loggingResource type:
OtherWhat this check verifies
AWS DataSync tasks are evaluated for a configured CloudWatch Logs destination (CloudWatchLogGroupArn).
Tasks that specify a log group are recognized as logging-enabled; those without one are identified as not publishing execution events.
Risk
Absent DataSync task logs create blind spots, preventing timely detection of failed or partial transfers, unexpected deletions, or anomalies. This undermines data integrity verification, obscures potential exfiltration indicators, and slows forensics and recovery, reducing availability during incidents.Recommendation
Configure each task to publish logs to a dedicated CloudWatch Logs group. Select an appropriate log level (e.g.,BASIC or TRANSFER), enforce least privilege for log access, set retention and immutability, and integrate alerts. Centralize and monitor logs to support defense in depth and incident response.
Remediation
- CLI
- Terraform
- Native IaC
- Dashboard steps
aws datasync update-task —task-arn <task-arn> —cloud-watch-log-group-arn <log-group-arn>
References
- https://support.icompaas.com/support/solutions/articles/62000233637-ensure-datasync-tasks-should-have-logging-enabled
- https://docs.aws.amazon.com/datasync/latest/userguide/monitor-datasync.html#enable-logging
Where this check fires
This check runs on every scheduled scan against your AWS account. Findings appear at Cloud Security → Findings filterable byCheck ID = datasync_task_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