kingfisher/data/rules/scale.yml
Mick Grove 1f1dbf312f - Now generating DEB and RPM packages
- Now releasing Docker images, and updated README
- Added rule for Scale, Deepgram, AssemblyAI
2025-07-21 15:21:10 -07:00

60 lines
1.7 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

rules:
- name: Scale API Key
id: kingfisher.scale.1
pattern: |
(?x)
\b
( # capture => TOKEN
live_ # live-mode prefix per docs
[0-9a-f]{32} # 32 lowercase hex chars
)
\b
min_entropy: 3.1
confidence: medium
examples:
- live_8df31399ec4a4755a7cf9e0fb59f967a
- live_54d1bd2d1e62430bb2d521d298ec4231
- live_1b9fc721a4624a478211ce613c674a03
references:
- https://scale.com/docs/api-reference/authentication
- https://scale.com/docs/api-reference/studio#list-all-teammates
- https://scale.com/docs/api-reference/authentication#test-and-live-modes
validation:
type: Http
content:
request:
method: GET
url: https://api.scale.com/v1/teams
headers:
Authorization: 'Basic {{ TOKEN | append: ":" | b64enc }}'
Accept: application/json
response_matcher:
- report_response: true
- type: StatusMatch
status: [200]
- type: JsonValid
- type: WordMatch
match_all_words: true
words:
- '"email"'
- '"role"'
- name: Scale Callback Auth Key
id: kingfisher.scale.2
pattern: |
(?x)
\b
(
live_auth_
[0-9a-f]{32}
)
\b
min_entropy: 3.1
confidence: medium
examples:
- live_auth_250ae896ada542c08a95734f935c871a
references:
- https://scale.com/docs/api-reference/authentication#callback-authentication
# Callback keys are *only* echoed by Scale in webhook headers and
# cant be validated via an API call, so no `validation:` block.