{
    "Provider": "aws",
    "CheckID": "cloudtrail_logs_s3_bucket_is_not_publicly_accessible",
    "CheckTitle": "Ensure the S3 bucket CloudTrail logs is not publicly accessible",
    "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": "critical",
    "ResourceType": "AwsCloudTrailTrail",
    "Description": "Ensure the S3 bucket CloudTrail logs to is not publicly accessible",
    "Risk": "Allowing public access to CloudTrail log content may aid an adversary in identifying weaknesses in the affected accounts use or configuration.",
    "RelatedUrl": "",
    "Remediation": {
      "Code": {
        "CLI": "",
        "NativeIaC": "",
        "Other": "https://docs.bridgecrew.io/docs/logging_3#aws-console",
        "Terraform": ""
      },
      "Recommendation": {
        "Text": "Analyze Bucket policy to validate appropriate permissions. Ensure the AllUsers principal is not granted privileges. Ensure the AuthenticatedUsers principal is not granted privileges.",
        "Url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html"
      }
    },
    "Categories": [],
    "Tags": {
      "Tag1Key": "value",
      "Tag2Key": "value"
    },
    "DependsOn": [],
    "RelatedTo": [],
    "Notes": "",
    "Compliance": []
  }
