mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
feat: add PrivateAI rule (#1548)
This commit is contained in:
1 parent
445abe356b
commit
00bb82153e
3 files changed
+43
No files matched your search
@@ -2426,6 +2426,17 @@ description = "Identified a Private Key, which may compromise cryptographic secu
|
||||
regex = '''(?i)-----BEGIN[ A-Z0-9_-]{0,100}PRIVATE KEY(?: BLOCK)?-----[\s\S-]*?KEY(?: BLOCK)?-----'''
|
||||
keywords = ["-----begin"]
|
||||
|
||||
[[rules]]
|
||||
id = "privateai-api-token"
|
||||
description = "Identified a PrivateAI Token, posing a risk of unauthorized access to AI services and data manipulation."
|
||||
regex = '''(?i:(?:private[_-]?ai)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3})(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{32})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
entropy = 3
|
||||
keywords = [
|
||||
"privateai",
|
||||
"private_ai",
|
||||
"private-ai",
|
||||
]
|
||||
|
||||
[[rules]]
|
||||
id = "pulumi-api-token"
|
||||
description = "Found a Pulumi API token, posing a risk to infrastructure as code services and cloud resource management."
|
||||
|
||||
Reference in new issue
Block a user