kingfisher/crates/kingfisher-rules/data/rules/bitbucket.yml
2026-04-24 00:23:50 -07:00

73 lines
No EOL
1.9 KiB
YAML

rules:
- name: Bitbucket Client ID
id: kingfisher.bitbucket.1
pattern: |
(?xi)
\b
bitbucket
(?:.|[\n\r]){0,16}?
(?:client|id)
(?:.|[\n\r]){0,16}?
(
[a-z0-9]{30,40}
)
\b
pattern_requirements:
min_digits: 2
min_entropy: 3.5
confidence: medium
examples:
- bitbucket_id=byl2nhrv34zaclukjhvomlvjabkujf
- bitbucket.client.ID=abcdefghij1234567890klmnopqrst
validation:
type: Http
content:
request:
headers:
Authorization: Basic {{ TOKEN | b64enc }}
method: GET
response_matcher:
- report_response: true
- status:
- 200
type: StatusMatch
url: https://api.bitbucket.org/2.0/user
references:
- https://developer.atlassian.com/cloud/bitbucket/oauth-2/
- https://developer.atlassian.com/cloud/bitbucket/rest/intro/#authentication
- name: Bitbucket Secret
id: kingfisher.bitbucket.3
pattern: |
(?xi)
\b
bitbucket
(?:.|[\n\r]){0,32}?
\b
(
[a-z0-9+_\-+]{44}
)
\b
pattern_requirements:
min_digits: 2
min_entropy: 3.5
confidence: medium
examples:
- bitbucket_key=HedmnK9h6KD_eh9KK8FlI9ahUc8WfaNZ4gulbrtN2ouV
- bitbucket_secret=kd8j2h4jf9s8mf6l4k9j2h4jf9s8mf6l4k9j2h4jf9s8
validation:
type: Http
content:
request:
headers:
Authorization: Bearer {{ TOKEN }}
method: GET
response_matcher:
- report_response: true
- status:
- 200
type: StatusMatch
url: https://api.bitbucket.org/2.0/user
references:
- https://developer.atlassian.com/cloud/bitbucket/oauth-2/
- https://developer.atlassian.com/cloud/bitbucket/rest/intro/#authentication