improved youtube and google rules

This commit is contained in:
Mick Grove 2026-04-01 19:51:36 -07:00
commit c8d34d8e44

View file

@ -2,12 +2,15 @@ rules:
- name: YouTube API Key
id: kingfisher.youtube.1
pattern: |
(?xi)
\b
(
AIza[a-zA-Z0-9_\-\\]{35}
)
\b
(?x)
\b
(?i:youtube)
(?:.|[\n\r]){0,32}?
\b
(
AIza[a-zA-Z0-9_\-\\]{35}
)
\b
min_entropy: 2.0
confidence: medium
examples:
@ -20,6 +23,8 @@ rules:
url: https://www.googleapis.com/youtube/v3/videos?part=id&id=dummy&key={{ TOKEN }}
response_matcher:
- report_response: true
- type: StatusMatch
status: [200]
- type: WordMatch
words:
- "API key not valid"