You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Description
The advanced event selector "No Log Archive Buckets" of the organizational trail "aws-aft-CustomizationsCloudTrail" is configured in a way, that does not exclude data events from all AFT and Control Tower S3 buckets in the Log Archive account.
The selector uses an incorrect operator for this data event type and tries to match the S3 bucket ARN with RegEx which is not allowed.
To Reproduce
Go to the Log Archive account and open the "aws-aft-logs-..." bucket.
Navigate to the CloudTrail logs of the Log Archive account.
(e.g. AWSLogs/<org-id>/<log-archive-account-id>/CloudTrail/eu-central-1/2024/11/28/)
Download and unzip any of the logs.
Search for "PutObject" and observe all the data events of CloudTrail writing objects into AFT or CT S3 buckets.
Expected behavior
The CloudTrail should not collect any data events from the 4 AFT and Control Tower S3 buckets in the Log Archive account.
Switching the operators from NotEquals to NotStartsWith and removing the * at the end of each log bucket ARN fixes the issue in the advanced event selector.
(Manually tested such a fix in my organization: CloudTrail no longer logs data events from AFT/CT S3 buckets in Log Archive, but keeps collecting data events from the rest of the organization.)
The text was updated successfully, but these errors were encountered:
AFT Version:
Bug Description
The advanced event selector "No Log Archive Buckets" of the organizational trail "aws-aft-CustomizationsCloudTrail" is configured in a way, that does not exclude data events from all AFT and Control Tower S3 buckets in the Log Archive account.
The selector uses an incorrect operator for this data event type and tries to match the S3 bucket ARN with RegEx which is not allowed.
To Reproduce
(e.g. AWSLogs/<org-id>/<log-archive-account-id>/CloudTrail/eu-central-1/2024/11/28/)
Expected behavior
The CloudTrail should not collect any data events from the 4 AFT and Control Tower S3 buckets in the Log Archive account.
Proposed fix/solution
The AWS documentation states, that advanced event selectors that filter S3 objects based on the
resources.ARN
should useStartsWith
orNotStartsWith
operators instead ofEquals/NotEquals
and use the bucket ARN with a trailing slash.(https://docs.aws.amazon.com/awscloudtrail/latest/userguide/filtering-data-events.html#filtering-data-events-resourcearn)
Switching the operators from
NotEquals
toNotStartsWith
and removing the*
at the end of each log bucket ARN fixes the issue in the advanced event selector.(Manually tested such a fix in my organization: CloudTrail no longer logs data events from AFT/CT S3 buckets in Log Archive, but keeps collecting data events from the rest of the organization.)
The text was updated successfully, but these errors were encountered: