2025-06-24 17:17:16 -07:00
|
|
|
rules:
|
|
|
|
|
- name: OpenAI API Key
|
|
|
|
|
id: kingfisher.openai.1
|
|
|
|
|
pattern: |
|
2025-06-26 11:31:41 -07:00
|
|
|
(?xi)
|
2026-01-14 21:45:55 -08:00
|
|
|
\b
|
2025-06-24 17:17:16 -07:00
|
|
|
(
|
2025-06-26 11:31:41 -07:00
|
|
|
sk-[A-Z0-9]{48}
|
2025-06-24 17:17:16 -07:00
|
|
|
)
|
2026-01-14 21:45:55 -08:00
|
|
|
\b
|
2025-11-04 13:55:31 -05:00
|
|
|
pattern_requirements:
|
|
|
|
|
min_digits: 2
|
2025-06-24 17:17:16 -07:00
|
|
|
min_entropy: 3.3
|
|
|
|
|
confidence: medium
|
|
|
|
|
examples:
|
|
|
|
|
- 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
|
|
|
|
|
- curl https://api.openai.com/v1/images/generations -H 'Content-Type application/json' -H "Authorization Bearer sk-mxIt5s1tyfCJyIKHwrqOT4BlbkFJT3VVmv6VdSwB7XXIq1TO"
|
|
|
|
|
references:
|
|
|
|
|
- https://help.openai.com/en/articles/9132009-how-can-i-view-the-users-or-organizations-associated-with-an-api-key
|
|
|
|
|
validation:
|
|
|
|
|
type: Http
|
|
|
|
|
content:
|
|
|
|
|
request:
|
|
|
|
|
headers:
|
2025-08-01 15:04:37 -04:00
|
|
|
Authorization: 'Bearer {{ TOKEN }}'
|
2025-06-24 17:17:16 -07:00
|
|
|
method: GET
|
|
|
|
|
response_matcher:
|
|
|
|
|
- report_response: true
|
|
|
|
|
- status:
|
|
|
|
|
- 200
|
|
|
|
|
type: StatusMatch
|
2025-08-01 15:04:37 -04:00
|
|
|
url: https://api.openai.com/v1/me
|
|
|
|
|
|
|
|
|
|
- name: OpenAI API Key
|
|
|
|
|
id: kingfisher.openai.2
|
|
|
|
|
pattern: |
|
|
|
|
|
(?xi)
|
2026-01-14 21:45:55 -08:00
|
|
|
\b
|
2025-08-01 15:04:37 -04:00
|
|
|
(
|
2025-08-01 15:31:29 -07:00
|
|
|
(sk-(?:proj|svcacct|None)-[A-Z0-9_-]{100,})
|
2025-08-01 15:04:37 -04:00
|
|
|
)
|
|
|
|
|
\b
|
2025-11-04 13:55:31 -05:00
|
|
|
pattern_requirements:
|
|
|
|
|
min_digits: 2
|
2025-08-01 15:04:37 -04:00
|
|
|
min_entropy: 4.0
|
|
|
|
|
confidence: medium
|
|
|
|
|
examples:
|
|
|
|
|
- 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
|
|
|
|
|
- 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
|
|
|
|
|
- sk-None-JEBiV9H-bLEZoOhNvLWmCNR74dIbql-p3yWFmWpdYCjeR1PWM_PS40yTLowkF3VzXHYJ3VbFarT3BlbkFJYznRo8bADhczK0Ca7t-WRbdwRlC1DPc8P2EaJm03OIg01Uj0cQxRAPO-4Rjs_TNyKXnVePtkcA
|
|
|
|
|
references:
|
|
|
|
|
- https://help.openai.com/en/articles/9132009-how-can-i-view-the-users-or-organizations-associated-with-an-api-key
|
|
|
|
|
validation:
|
|
|
|
|
type: Http
|
|
|
|
|
content:
|
|
|
|
|
request:
|
|
|
|
|
headers:
|
|
|
|
|
Authorization: 'Bearer {{ TOKEN }}'
|
|
|
|
|
method: GET
|
|
|
|
|
response_matcher:
|
|
|
|
|
- report_response: true
|
|
|
|
|
- status:
|
|
|
|
|
- 200
|
|
|
|
|
type: StatusMatch
|
|
|
|
|
url: https://api.openai.com/v1/models
|
2026-01-13 13:00:55 +05:30
|
|
|
|
|
|
|
|
- name: OpenAI API Key (Short Prefixed)
|
|
|
|
|
id: kingfisher.openai.3
|
|
|
|
|
pattern: |
|
|
|
|
|
(?xi)
|
2026-01-14 21:45:55 -08:00
|
|
|
\b
|
2026-01-13 13:00:55 +05:30
|
|
|
(
|
|
|
|
|
sk-None-[A-Z0-9]{48}
|
|
|
|
|
)
|
2026-01-14 21:45:55 -08:00
|
|
|
\b
|
2026-01-13 13:00:55 +05:30
|
|
|
pattern_requirements:
|
|
|
|
|
min_digits: 2
|
|
|
|
|
min_entropy: 3.3
|
|
|
|
|
confidence: medium
|
|
|
|
|
examples:
|
|
|
|
|
- sk-None-abcdefghij1234567890ABCDEFGHIJ1234567890abcdefgh
|
|
|
|
|
references:
|
|
|
|
|
- https://help.openai.com/en/articles/9132009-how-can-i-view-the-users-or-organizations-associated-with-an-api-key
|
|
|
|
|
validation:
|
|
|
|
|
type: Http
|
|
|
|
|
content:
|
|
|
|
|
request:
|
|
|
|
|
headers:
|
|
|
|
|
Authorization: 'Bearer {{ TOKEN }}'
|
|
|
|
|
method: GET
|
|
|
|
|
response_matcher:
|
|
|
|
|
- report_response: true
|
|
|
|
|
- status:
|
|
|
|
|
- 200
|
|
|
|
|
type: StatusMatch
|
|
|
|
|
url: https://api.openai.com/v1/me
|