소스 검색

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 6 년 전
부모
커밋
ba39abfb19
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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]]