forked from mirrors/kingfisher
31 lines
761 B
YAML
31 lines
761 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-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]
|