Explorar el Código

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

Manas Bellani hace 6 años
padre
commit
ba39abfb19
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/constants.go

+ 1 - 1
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]]