kingfisher/data/rules/tailscale.yml

30 lines
756 B
YAML
Raw Normal View History

2025-06-24 17:17:16 -07:00
rules:
- name: Tailscale API Key
id: kingfisher.tailscale.1
pattern: |
2025-06-26 11:31:41 -07:00
(?xi)
2025-06-24 17:17:16 -07:00
\b
(
2025-06-26 11:31:41 -07:00
tskey-[a-z]+-[A-Z0-9_-]{20,24}
2025-06-24 17:17:16 -07:00
)
\b
min_entropy: 3.0
confidence: medium
examples:
- tskey-secret-12345678-abcdefghijkl
- tskey-api-abcdefg-1234567890123
2025-06-24 17:17:16 -07:00
references:
- https://tailscale.com/kb/1215/oauth-clients
validation:
type: Http
content:
request:
method: GET
url: https://api.tailscale.com/api/v2/tailnet/-/devices
headers:
Authorization: "Bearer {{ TOKEN }}"
Accept: application/json
response_matcher:
- report_response: true
- type: StatusMatch
status: [200]