Skip to content

Commit 03d43d5

Browse files
author
Pål-Magnus Slåtto
authored
fix: Make unauthorized pattern match exact (#50)
1 parent 53792c5 commit 03d43d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/cis-alarms/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
locals {
22
all_controls = {
33
UnauthorizedAPICalls = {
4-
pattern = "{ (($.errorCode=\"*UnauthorizedOperation\") || ($.errorCode=\"AccessDenied*\")) }"
4+
pattern = "{ ($.errorCode=\"*UnauthorizedOperation\") || ($.errorCode=\"AccessDenied*\") }"
55
description = "Monitoring unauthorized API calls will help reveal application errors and may reduce time to detect malicious activity."
66
}
77

0 commit comments

Comments
 (0)