Add detection for OpenAI API keys (#1148)

* Add detection for OpenAI API keys

* Remove `sk-` keyword
This commit is contained in:
Becojo authored and GitHub committed 2023-06-14 09:02:37 -05:00
1 parent c101fa88d2
commit 7dc9ba40a7
3 files changed
+35

No files matched your search

+9
View File
@@ -2371,6 +2371,15 @@ keywords = [
"okta",
]
[[rules]]
description = "OpenAI API Key"
id = "openai-api-key"
regex = '''(?i)\b(sk-[a-zA-Z0-9]{20}T3BlbkFJ[a-zA-Z0-9]{20})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
secretGroup = 1
keywords = [
"sk-","t3blbkfj",
]
[[rules]]
description = "Plaid API Token"
id = "plaid-api-token"