kingfisher/crates/kingfisher-rules/data/rules/fastly.yml

36 lines
840 B
YAML
Raw Normal View History

2025-06-24 17:17:16 -07:00
rules:
- name: Fastly API token
id: kingfisher.fastly.1
pattern: |
2025-06-26 11:31:41 -07:00
(?xi)
2025-06-24 17:17:16 -07:00
\b
fastly
(?:.|[\n\r]){0,32}?
(?:SECRET|PRIVATE|ACCESS|KEY|TOKEN)
(?:.|[\n\r]){0,32}?
\b
2025-08-13 15:35:04 -07:00
(
[a-z0-9_-]{32}
)
2025-06-24 17:17:16 -07:00
\b
pattern_requirements:
min_digits: 2
2025-06-24 17:17:16 -07:00
min_entropy: 3.5
confidence: medium
examples:
- 'Fastly token: fgsb3ef237afd6c1b9d91f81cdba64f3'
references:
- https://developer.fastly.com/reference/api/#authentication
validation:
type: Http
content:
request:
headers:
Fastly-Key: '{{ TOKEN }}'
method: GET
response_matcher:
- report_response: true
- status:
- 200
type: StatusMatch
url: https://api.fastly.com/current_user