forked from mirrors/kingfisher
New rule: Groq
This commit is contained in:
parent
8a74eba160
commit
3a3db4a7d3
2 changed files with 37 additions and 0 deletions
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [1.32.0]
|
||||
- New rules: Groq
|
||||
|
||||
## [1.31.0]
|
||||
- New rules: Telegram bot token, OpenWeatherMap, Apify
|
||||
- New OpenAI detectors added (@joshlarsen)
|
||||
|
|
|
|||
34
data/rules/groq.yml
Normal file
34
data/rules/groq.yml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
rules:
|
||||
- name: Groq API Key
|
||||
id: kingfisher.groq.1
|
||||
pattern: |
|
||||
(?xi)
|
||||
\b
|
||||
(
|
||||
gsk_[a-zA-Z0-9]{52}
|
||||
)
|
||||
\b
|
||||
confidence: medium
|
||||
min_entropy: 4.5
|
||||
validation:
|
||||
type: Http
|
||||
content:
|
||||
request:
|
||||
method: GET
|
||||
url: "https://api.groq.com/openai/v1/models"
|
||||
headers:
|
||||
Authorization: "Bearer {{TOKEN}}"
|
||||
response_matcher:
|
||||
- type: StatusMatch
|
||||
status: [200]
|
||||
- type: WordMatch
|
||||
words:
|
||||
- '"id"'
|
||||
- '"data"'
|
||||
match_all_words: true
|
||||
references:
|
||||
- https://console.groq.com/docs/api-keys
|
||||
- https://console.groq.com/docs/api-reference#models
|
||||
examples:
|
||||
- "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"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue