mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
feat(config): add curl header rule (#1576)
This commit is contained in:
1 parent
cf5334fd61
commit
83a57244cd
3 files changed
+104
No files matched your search
@@ -251,6 +251,13 @@ description = "Discovered a Contentful delivery API token, posing a risk to cont
|
||||
regex = '''(?i)(?:contentful)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}([a-z0-9=_\-]{43})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
keywords = ["contentful"]
|
||||
|
||||
[[rules]]
|
||||
id = "curl-auth-header"
|
||||
description = ""
|
||||
regex = '''\bcurl\b(?:.*?|.*?(?:[\r\n]{1,2}.*?){1,5})[ \t\n\r](?:-H|--header)[ =](?:"(?i)(?:Authorization:[ \t]?(?:Basic[ \t]([a-z0-9+/]{8,}={0,3})|(?:Bearer|Token)[ \t]([\w=@.+/-]{8,})|([\w=.+/-]{8,}))|(?:ApiKey|Token|X-API-KEY):[ \t]?([\w=@.+/-]{8,}))"|'(?i)(?:Authorization:[ \t]?(?:Basic[ \t]([a-z0-9+/]{8,}={0,3})|(?:Bearer|Token)[ \t]([\w=@.+/-]{8,})|([\w=.+/-]{8,}))|(?:ApiKey|Token|X-API-KEY):[ \t]?([\w=@.+/-]{8,}))')(?:\B|\s|\z)'''
|
||||
entropy = 2.75
|
||||
keywords = ["curl"]
|
||||
|
||||
[[rules]]
|
||||
id = "curl-auth-user"
|
||||
description = ""
|
||||
|
||||
Reference in new issue
Block a user