mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
feat: add cohere rule (#1549)
This commit is contained in:
1 parent
82d737d851
commit
1a2f656278
3 files changed
+43
No files matched your search
@@ -196,6 +196,16 @@ description = "Found a pattern resembling a Codecov Access Token, posing a risk
|
||||
regex = '''(?i)(?:codecov)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{32})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
keywords = ["codecov"]
|
||||
|
||||
[[rules]]
|
||||
id = "cohere-api-token"
|
||||
description = "Identified a Cohere Token, posing a risk of unauthorized access to AI services and data manipulation."
|
||||
regex = '''(?i:(?:cohere|CO_API_KEY)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3})(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}([a-zA-Z0-9]{40})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
entropy = 4
|
||||
keywords = [
|
||||
"cohere",
|
||||
"co_api_key",
|
||||
]
|
||||
|
||||
[[rules]]
|
||||
id = "coinbase-access-token"
|
||||
description = "Detected a Coinbase Access Token, posing a risk of unauthorized access to cryptocurrency accounts and financial transactions."
|
||||
|
||||
Reference in new issue
Block a user