kingfisher/data/rules/eraserio.yml
Mick Grove 17e0ca3594 - Updating to support Bitbucket App Passwords
- Improved boundaries for several rules
- Added more rules
2025-11-20 16:33:28 -08:00

34 lines
No EOL
823 B
YAML

rules:
- name: Eraser API Key
id: kingfisher.eraser.1
pattern: |
(?xi)
\b
eraser
(?:[^A-Za-z0-9]{0,16})?
(?:SECRET|PRIVATE|ACCESS|KEY|TOKEN)
(?:[^A-Za-z0-9]{0,16})?
\b
(
[A-Za-z0-9]{20}
)
\b
min_entropy: 3.5
confidence: medium
examples:
- eraser_token = Q7MD4J9L2X0B6R3T8W1P
references:
- https://eraser.io/docs/api/authentication
validation:
type: Http
content:
request:
method: GET
url: https://app.eraser.io/api/reports/usage?rangeDays=1
headers:
Authorization: "Bearer {{ TOKEN }}"
accept: application/json
response_matcher:
- report_response: true
- type: StatusMatch
status: [200, 403]