From ba39abfb19ce04df3eb994949531ae346efe5d7c Mon Sep 17 00:00:00 2001 From: Manas Bellani Date: Tue, 16 Jul 2019 12:31:49 +1000 Subject: [PATCH] constants.go(enhance): added an enhancement to include apikey without underscore as another detection for api keys that might be present in source code --- src/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constants.go b/src/constants.go index d37f99e1..a1a71783 100644 --- a/src/constants.go +++ b/src/constants.go @@ -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]]