forked from mirrors/kingfisher
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
rules:
|
|
- name: Jumpcloud API Key
|
|
id: kingfisher.jumpcloud.1
|
|
pattern: |
|
|
(?xi)
|
|
\b
|
|
jumpcloud
|
|
(?:.|[\n\r]){0,32}?
|
|
(?:SECRET|PRIVATE|ACCESS|KEY|TOKEN)
|
|
(?:.|[\n\r]){0,32}?
|
|
\b
|
|
(
|
|
[a-zA-Z0-9]{40}
|
|
)
|
|
\b
|
|
pattern_requirements:
|
|
min_digits: 2
|
|
min_entropy: 3.5
|
|
confidence: medium
|
|
examples:
|
|
- jumpcloud_api_key=1a2b3c4d5e6f7g8h9i0j1a2b3c4d5e6f7g8h9i0j
|
|
- JUMPCLOUD_SECRET=k9l8m7n6o5p4q3r2s1t0k9l8m7n6o5p4q3r2s1t0
|
|
references:
|
|
- https://docs.jumpcloud.com/api/
|
|
- https://jumpcloud.com/support/retrieve-object-ids-from-the-api
|
|
validation:
|
|
type: Http
|
|
content:
|
|
request:
|
|
method: GET
|
|
url: "https://console.jumpcloud.com/api/systemusers?limit=1&skip=0"
|
|
headers:
|
|
x-api-key: "{{ TOKEN }}"
|
|
Accept: application/json
|
|
response_matcher:
|
|
- report_response: true
|
|
- type: StatusMatch
|
|
status: [200]
|
|
- type: WordMatch
|
|
words: ['"results"', '"totalCount"']
|