forked from mirrors/kingfisher
Added rules for Cohere and Stability.ai
This commit is contained in:
parent
bf24b0c563
commit
96943c72da
3 changed files with 80 additions and 0 deletions
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [1.22.0]
|
||||
- Added rules for Google Gemini AI, Cohere, Stability.ai
|
||||
|
||||
## [1.21.0]
|
||||
- Improved Azure Storage rule
|
||||
- Added rule to detect TravisCI encrypted values
|
||||
|
|
|
|||
39
data/rules/cohere.yml
Normal file
39
data/rules/cohere.yml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
rules:
|
||||
- name: Cohere API Key
|
||||
id: kingfisher.cohere.1
|
||||
pattern: |
|
||||
(?xi)
|
||||
\b
|
||||
cohere
|
||||
(?:.|[\n\r]){0,16}?
|
||||
(
|
||||
[A-Z0-9]{40}
|
||||
)
|
||||
\b
|
||||
min_entropy: 3.5
|
||||
confidence: medium
|
||||
examples:
|
||||
- 'cohere_key = 5fNtU1ytdUcOX3jfvgjlr61EPxBqxOojOklDD6BG'
|
||||
- "cohere secret key = QfsfCM0HdHH9x5ZlhsGzeignSk4pCeBwBrzYqgGV"
|
||||
- 'cohere_token: x7PX0fac8a2GW2fgnNqdtqIwMQvFbrL6E7lKrKOv'
|
||||
references:
|
||||
- https://docs.cohere.com/reference/list-connectors
|
||||
validation:
|
||||
type: Http
|
||||
content:
|
||||
request:
|
||||
method: GET
|
||||
url: https://api.cohere.com/v1/connectors
|
||||
headers:
|
||||
Authorization: Bearer {{ TOKEN }}
|
||||
response_matcher:
|
||||
- report_response: true
|
||||
- type: StatusMatch
|
||||
status: [200]
|
||||
- type: JsonValid
|
||||
- type: WordMatch
|
||||
match_all_words: true
|
||||
words:
|
||||
- '"connectors"'
|
||||
- '"id"'
|
||||
- '"organization_id"'
|
||||
38
data/rules/stabilityai.yml
Normal file
38
data/rules/stabilityai.yml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
rules:
|
||||
- name: Stability AI API Key
|
||||
id: kingfisher.stabilityai.1
|
||||
pattern: |
|
||||
(?x)
|
||||
\b
|
||||
(
|
||||
sk-
|
||||
[A-Za-z0-9]{48}
|
||||
)
|
||||
\b
|
||||
min_entropy: 4.0
|
||||
confidence: medium
|
||||
examples:
|
||||
- sk-AnmgropvAII5XEoxVPjbnSMG3XhacEwhJlLh8ossXh7K1iLP
|
||||
- sk-gQHyuK4k6Vw2viJRaAnLh6zAULaWtUg40ZHWcYjw7JGutlW6
|
||||
- sk-nwvJypEMFNASJLiPBgNnzJj1xsDwlHChbFRMNwVkzy3e4UJg
|
||||
references:
|
||||
- https://platform.stability.ai/docs/api-reference#v1-user-account
|
||||
validation:
|
||||
type: Http
|
||||
content:
|
||||
request:
|
||||
method: GET
|
||||
url: https://api.stability.ai/v1/user/account
|
||||
headers:
|
||||
Authorization: "Bearer {{ TOKEN }}"
|
||||
Accept: application/json
|
||||
response_matcher:
|
||||
- report_response: true
|
||||
- type: StatusMatch
|
||||
status: [200]
|
||||
- type: JsonValid
|
||||
- type: WordMatch
|
||||
match_all_words: true
|
||||
words:
|
||||
- '"id"'
|
||||
- '"email"'
|
||||
Loading…
Add table
Add a link
Reference in a new issue