feat(gcp): update api key rule (#1481)

This commit is contained in:
Richard Gomez authored and GitHub committed 2024-09-18 10:23:18 -05:00
1 parent 75dd70e59a
commit df126a7473
2 files changed
+14 -5

No files matched your search

+2 -1
View File
@@ -499,7 +499,8 @@ keywords = [
[[rules]]
id = "gcp-api-key"
description = "Uncovered a GCP API key, which could lead to unauthorized access to Google Cloud services and data breaches."
regex = '''(?i)\b(AIza[0-9A-Za-z\\-_]{35})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
regex = '''\b(AIza[\w-]{35})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
entropy = 3
keywords = [
"aiza",
]