mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
feat(generic-api-key): detect base64 (#1598)
This commit is contained in:
1 parent
d6a828a530
commit
f3ae52e138
2 files changed
+5
-4
No files matched your search
@@ -564,7 +564,7 @@ regexes = [
|
||||
[[rules]]
|
||||
id = "generic-api-key"
|
||||
description = "Detected a Generic API Key, potentially exposing access to various services and sensitive operations."
|
||||
regex = '''(?i)[\w.-]{0,50}?(?:access|auth|(?-i:[Aa]pi|API)|credential|creds|key|passwd|password|secret|token)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([\w.=-]{10,150})(?:[\x60'"\s;]|\\[nr]|$)'''
|
||||
regex = '''(?i)[\w.-]{0,50}?(?:access|auth|(?-i:[Aa]pi|API)|credential|creds|key|passw(?:or)?d|secret|token)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([\w.=-]{10,150}|[a-z0-9][a-z0-9+/]{11,}={0,3})(?:[\x60'"\s;]|\\[nr]|$)'''
|
||||
entropy = 3.5
|
||||
keywords = [
|
||||
"access",
|
||||
|
||||
Reference in new issue
Block a user