kingfisher/crates/kingfisher-rules/data/rules/wistia.yml
2026-04-14 22:56:19 -07:00

36 lines
921 B
YAML

rules:
- name: Wistia API Token
id: kingfisher.wistia.1
pattern: |
(?xi)
\b
wistia
(?:.|[\n\r]){0,32}?
(?:API[_-]?(?:KEY|TOKEN|PASSWORD)|TOKEN|SECRET|KEY)
(?:.|[\n\r]){0,16}?
\b
(
[0-9a-f]{64}
)
\b
pattern_requirements:
min_digits: 4
min_entropy: 3.5
confidence: medium
examples:
- 'WISTIA_API_TOKEN=a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2'
references:
- https://wistia.com/support/developers/data-api
validation:
type: Http
content:
request:
method: GET
url: "https://api.wistia.com/v1/account.json?api_password={{ TOKEN }}"
headers:
Accept: application/json
response_matcher:
- report_response: true
- type: StatusMatch
status: [200]
- type: JsonValid