AWS awscloudtrail: Corrected S3 auth failure event names in CloudTrail filter example
Summary
Updates the example event names for Amazon S3 authentication failure events (e.g., SignatureDoesNotMatch, InvalidAccessKeyId, ExpiredToken) and removes the note describing the Authenticate-prefixed naming pattern and cost-reduction guidance for excluding auth failure events.
Security assessment
The change corrects the event names used to filter Amazon S3 authentication failure events in CloudTrail advanced event selectors, which affects audit logging of failed authentication attempts; it is documentation of logging behavior rather than a fix for a specific vulnerability.
Evidence
+The following example shows how to log all Amazon S3 data events but exclude Amazon S3 authentication failure events, such as `SignatureDoesNotMatch`, `InvalidAccessKeyId`, and `ExpiredToken`. Amazon S3 authentication failure events use the `s3-authn-errors.amazonaws.com` event source. By filtering on the `s3-authn-errors.amazonaws.com` event source using the `NotEquals` operator, you can exclude these events while continuing to log all successful Amazon S3 data events.
Diff
diff --git a/awscloudtrail/latest/userguide/filtering-data-events.md b/awscloudtrail/latest/userguide/filtering-data-events.md index 030c74c..659ed51 100644 --- a//awscloudtrail/latest/userguide/filtering-data-events.md +++ b//awscloudtrail/latest/userguide/filtering-data-events.md @@ -363 +363 @@ The following example shows how to log all Amazon S3 data events but exclude Ama -The following example shows how to log all Amazon S3 data events but exclude Amazon S3 authentication failure events, such as `AuthenticateSignatureDoesNotMatch`, `AuthenticateInvalidAccessKeyId`, and `AuthenticateExpiredToken`. Amazon S3 authentication failure events use the `s3-authn-errors.amazonaws.com` event source. By filtering on the `s3-authn-errors.amazonaws.com` event source using the `NotEquals` operator, you can exclude these events while continuing to log all successful Amazon S3 data events. +The following example shows how to log all Amazon S3 data events but exclude Amazon S3 authentication failure events, such as `SignatureDoesNotMatch`, `InvalidAccessKeyId`, and `ExpiredToken`. Amazon S3 authentication failure events use the `s3-authn-errors.amazonaws.com` event source. By filtering on the `s3-authn-errors.amazonaws.com` event source using the `NotEquals` operator, you can exclude these events while continuing to log all successful Amazon S3 data events. @@ -381,2 +380,0 @@ The following example shows how to log all Amazon S3 data events but exclude Ama -This advanced event selector filters out all events where the `eventSource` is `s3-authn-errors.amazonaws.com`. Authentication failure events follow the naming pattern `Authenticate` followed by error code (for example, `AuthenticateSignatureDoesNotMatch`, `AuthenticateInvalidAccessKeyId`, `AuthenticateExpiredToken`, `AuthenticateInvalidToken`). Excluding these events can help reduce costs if you do not need to audit failed authentication attempts against your Amazon S3 resources. -