text code block:data_stream.dataset: "aws.cloudtrail" and event.provider: "s3.amazonaws.com" and event.action: "PutBucketAcl" and event.outcome: "success" and not aws.cloudtrail.user_identity.type: "AWSService" and aws.cloudtrail.flattened.request_parameters.x-amz-acl: ("public-read" or "public-read-write") and not user_agent.original: (*Terraform* or *terraform* or "cloudformation.amazonaws.com" or *pulumi* or *Pulumi*)
Install detection rules in Elastic Security
Detect AWS S3 Bucket ACL Modified to Allow Public Access by New Identity in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).