kingfisher/data/rules/tailscale.yml
2025-06-26 11:31:41 -07:00

30 lines
756 B
YAML

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