Skip to content

OpenAI API Key

ID: openai-api-key

Severity: info

Author: DhiyaneshDK

Tags: openai,token,exposure

id: openai-api-key
info:
name: OpenAI API Key
author: DhiyaneshDK
severity: info
reference:
- https://github.com/praetorian-inc/noseyparker/blob/main/data/default/rules/openai.yml
- https://platform.openai.com/docs/api-reference
- https://platform.openai.com/docs/api-reference/authentication
metadata:
verified: true
max-request: 1
tags: openai,token,exposure
http:
- method: GET
path:
- "{{BaseURL}}"
extractors:
- type: regex
part: body
regex:
- "(sk-[a-zA-Z0-9]{48})"
# digest: 4b0a00483046022100f370d4ec1080dabc3583d156f453128365fb99afe11fb76a9f2d40246a1ad9ef022100a23ef631bdafe02d0d5d57d71bea25485b8b1a1f0bbde1ecba33c52e9841fc19:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/exposures/tokens/openai/openai-api-key.yaml"

View on Github