kingfisher/data/rules/prefect.yml
Mick Grove 212bda4100 - Fixed kingfisher scan so that providing --branch without --since-commit now diffs the branch against the empty tree and scans every commit reachable from that branch.
- Added rules for meraki, duffel, finnhub, frameio, freshbooks, gitter, infracost, launchdarkly, lob, maxmind, messagebird, nytimes, prefect, salingo, sendinblue, sentry, shippo, twitch, typeform
2025-10-20 18:23:12 -07:00

31 lines
797 B
YAML

rules:
- name: Prefect API Token
id: kingfisher.prefect.1
pattern: |
(?xi)
\b
(
pnu_[a-z0-9]{36}
)
\b
min_entropy: 3.0
confidence: medium
examples:
- PREFECT_API_TOKEN=pnu_1234567890abcdef1234567890abcdef1234
- '"prefectToken": "pnu_abcdefabcdefabcdefabcdefabcdefabcdef"'
references:
- https://docs.prefect.io/latest/concepts/api_keys/
validation:
type: Http
content:
request:
method: GET
url: https://api.prefect.cloud/api/me
headers:
Authorization: 'Bearer {{ TOKEN }}'
Accept: application/json
response_matcher:
- report_response: true
- type: StatusMatch
status:
- 200