forked from mirrors/kingfisher
75 lines
2.1 KiB
YAML
75 lines
2.1 KiB
YAML
rules:
|
|
- name: MailJetSMS API Key
|
|
id: kingfisher.mailjet.1
|
|
pattern: |
|
|
(?xi)
|
|
\b
|
|
mailjet
|
|
(?:.|[\n\r]){0,32}?
|
|
\b
|
|
(
|
|
[A-Z0-9]{32}
|
|
)
|
|
\b
|
|
pattern_requirements:
|
|
min_digits: 2
|
|
min_entropy: 3.5
|
|
confidence: medium
|
|
examples:
|
|
- mailjet ABCDEFGHIJKLMNOPQRSTUVWXYZ012345
|
|
- mailjet-token 9A1B2C3D4E5F6G7H8I9J0K1L2M3N4O5P
|
|
references:
|
|
- https://dev.mailjet.com/sms/reference/overview/authentication/
|
|
- https://www.postman.com/mailjet-api/mailjet-s-public-workspace/request/velnqvd/retrieve-a-count-of-all-sms-messages
|
|
validation:
|
|
type: Http
|
|
content:
|
|
request:
|
|
method: GET
|
|
url: "https://api.mailjet.com/v4/sms/count"
|
|
headers:
|
|
Accept: "application/vnd.mailjetsms+json; version=3"
|
|
Authorization: "Bearer {{ TOKEN }}"
|
|
response_matcher:
|
|
- report_response: true
|
|
- type: StatusMatch
|
|
status: [200]
|
|
- type: WordMatch
|
|
words: ['"Count"']
|
|
- name: MailJet Basic Auth
|
|
id: kingfisher.mailjet.2
|
|
pattern: |
|
|
(?xi)
|
|
\b
|
|
mailjet
|
|
(?:.|[\n\r]){0,32}?
|
|
(?:SECRET|PRIVATE|ACCESS|KEY|TOKEN)
|
|
(?:.|[\n\r]){0,32}?
|
|
\b
|
|
(
|
|
[A-Z0-9]{87}=
|
|
)
|
|
pattern_requirements:
|
|
min_digits: 2
|
|
min_entropy: 3.5
|
|
confidence: medium
|
|
examples:
|
|
- mailjet_token = neno01fy530zukbtvq8xunwec74b7m7lsmzha8su93zdvy4mp4dc5gctfa2rcwetllcjzncirjv58se7iwkehhh=
|
|
references:
|
|
- https://dev.mailjet.com/email/reference/overview/authentication/
|
|
- https://www.postman.com/mailjet-api/mailjet-s-public-workspace/request/5pnoxig/retrieve-all-api-keys
|
|
validation:
|
|
type: Http
|
|
content:
|
|
request:
|
|
method: GET
|
|
url: "https://api.mailjet.com/v3/REST/apikey?Limit=1"
|
|
headers:
|
|
Authorization: "Basic {{ TOKEN }}"
|
|
Accept: "application/json"
|
|
response_matcher:
|
|
- report_response: true
|
|
- type: StatusMatch
|
|
status: [200]
|
|
- type: WordMatch
|
|
words: ['"Data"', '"Count"']
|