Skip to content

Commit

Permalink
Improve FilterPattern for ConsoleSignInWithoutMfaCount and improve Th…
Browse files Browse the repository at this point in the history
…reshold of AuthorizationFailuresAlarm
  • Loading branch information
renato-dnx committed Aug 22, 2024
1 parent 34da9be commit e5727ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudtrail-alarms-full.cf.json
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@
"EvaluationPeriods" : "1",
"Period" : "300",
"Statistic" : "Sum",
"Threshold" : "1"
"Threshold" : "5"

}
},
Expand Down Expand Up @@ -483,7 +483,7 @@
"Type": "AWS::Logs::MetricFilter",
"Properties": {
"LogGroupName": { "Ref" : "CloudTrailLogGroupName" },
"FilterPattern": "{ $.eventName = ConsoleLogin && $.additionalEventData.MFAUsed = No }",
"FilterPattern": "{ $.eventName = ConsoleLogin && $.additionalEventData.MFAUsed = No && $.userIdentity.type = IAMUser && $.responseElements.ConsoleLogin = Success }",
"MetricTransformations": [
{
"MetricNamespace": "CloudTrailMetrics",
Expand Down

0 comments on commit e5727ea

Please sign in to comment.