CloudTrail trail has logging disabled Affecting CloudTrail service in AWS


Severity

0.0
high
0
10
Severity Framework
Snyk CCSS
Rule category
Logging/ Access

Is your environment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
Frameworks
CIS-ControlsHIPAAISO-27001NIST-800-53PCI-DSSSOC-2
  • Snyk IDSNYK-CC-00006
  • creditSnyk Research Team

Description

Without CloudTrail logging enabled, you cannot keep a record of all access and events on your account.

How to fix?

Set the trail's enable_logging attribute to true.

Example Configuration

resource "aws_cloudtrail" "secure" {
  name           = "secure"
  s3_bucket_name = "example-bucket"
  enable_logging = true
}