{
    "Provider": "aws",
    "CheckID": "cloudtrail_log_file_validation_enabled",
    "CheckTitle": "Ensure CloudTrail log file validation is enabled",
    "CheckType": ["Software and Configuration Checks", "Industry and Regulatory Standards" ,"CIS AWS Foundations Benchmark"],
    "ServiceName": "cloudtrail",
    "SubServiceName": "",
    "ResourceIdTemplate": "arn:partition:service:region:account-id:resource-id",
    "Severity": "medium",
    "ResourceType": "AwsCloudTrailTrail",
    "Description": "Ensure CloudTrail log file validation is enabled",
    "Risk": "Enabling log file validation will provide additional integrity checking of CloudTrail logs. ",
    "RelatedUrl": "",
    "Remediation": {
      "Code": {
        "CLI": "aws cloudtrail update-trail --name <trail_name>  --enable-log-file-validation",
        "NativeIaC": "https://docs.bridgecrew.io/docs/logging_2#cloudformation",
        "Other": "",
        "Terraform": "https://docs.bridgecrew.io/docs/logging_2#terraform"
      },
      "Recommendation": {
        "Text": "Ensure LogFileValidationEnabled is set to true for each trail.",
        "Url": "http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-log-filevalidation-enabling.html"
      }
    },
    "Categories": [],
    "Tags": {
      "Tag1Key": "value",
      "Tag2Key": "value"
    },
    "DependsOn": [],
    "RelatedTo": [],
    "Notes": "",
    "Compliance": []
  }
