kingfisher/data/rules/tailscale.yml
2025-06-24 17:17:16 -07:00

31 lines
749 B
YAML

rules:
- name: Tailscale API Key
id: kingfisher.tailscale.1
pattern: |
(?x)
(?i)
\b
(
tskey-[a-z]+-[A-Za-z0-9_-]{20,24}
)
\b
min_entropy: 3.0
confidence: medium
examples:
- tskey-secret-12345678-abcd
- tskey-api-abcdefg-123456789
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]