constants.go(enhance): added an enhancement to include apikey without underscore as another detection for api keys that might be present in source code

This commit is contained in:
Manas Bellani committed 2019-07-16 12:31:49 +10:00
1 parent f47e1f71ee
commit ba39abfb19
1 file changed
+1 -1
+1 -1
View File
@@ -109,7 +109,7 @@ tags = ["key", "EC"]
[[rules]]
description = "Generic API key"
regex = '''(?i)api_key(.{0,20})?['|"][0-9a-zA-Z]{32,45}['|"]'''
regex = '''(?i)(api_key|apikey)(.{0,20})?['|"][0-9a-zA-Z]{32,45}['|"]'''
tags = ["key", "API", "generic"]
[[rules]]