kingfisher/crates/kingfisher-rules/data/rules/googleoauth2.yml
Mick Grove ab811c8bcf v1.87.0
2026-03-09 20:11:58 -07:00

34 lines
No EOL
929 B
YAML

rules:
- name: Google OAuth2 Access Token
id: kingfisher.google.oauth2.1
pattern: |
(?x)
\b
(
ya29\.(?i:[a-zA-Z0-9_-]{30,})
)
\b
min_entropy: 3.5
confidence: medium
examples:
- "ya29.A0ARrdaM9Ra8K7R9AcxA1PpIMLVQ021H0TL0PRh2s_HH0_tn5gCSSf"
- "ya29.Cj0KCQjwgLr5BRC3ARIsAKEd0AR9_Fg5fjV5pVXZlFYobyfz7Bb9SyOv"
validation:
type: Http
content:
request:
headers:
Authorization: "Bearer {{ TOKEN }}"
Accept: application/json
method: GET
url: https://www.googleapis.com/oauth2/v3/userinfo
response_matcher:
- report_response: true
- status:
- 200
type: StatusMatch
- type: WordMatch
words:
- '"email":'
references:
- https://developers.google.com/identity/protocols/oauth2