Skip to content

Commit

Permalink
fix: Make unauthorized pattern match exact (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
P氓l-Magnus Sl氓tto committed Jan 10, 2023
1 parent 53792c5 commit 03d43d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/cis-alarms/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
locals {
all_controls = {
UnauthorizedAPICalls = {
pattern = "{ (($.errorCode=\"*UnauthorizedOperation\") || ($.errorCode=\"AccessDenied*\")) }"
pattern = "{ ($.errorCode=\"*UnauthorizedOperation\") || ($.errorCode=\"AccessDenied*\") }"
description = "Monitoring unauthorized API calls will help reveal application errors and may reduce time to detect malicious activity."
}

Expand Down

0 comments on commit 03d43d5

Please sign in to comment.