id: openai-plugin

info:
  name: OpenAI Plugin Detection
  author: pdteam
  severity: info
  description: |
    OpenAI plugins connect ChatGPT to third-party applications. These plugins enable ChatGPT to interact with APIs defined by developers, enhancing ChatGPT's capabilities and allowing it to perform a wide range of actions.
  reference:
    - https://platform.openai.com/docs/plugins/introduction
  metadata:
    verified: true
    max-request: 1
  tags: tech,openai,plugin

http:
  - method: GET
    path:
      - "{{BaseURL}}/.well-known/ai-plugin.json"

    matchers:
      - type: word
        words:
          - '"schema_version":'
          - '"name_for_model":'
        condition: and

    extractors:
      - type: json
        json:
          - '.name_for_human'
# digest: 4a0a00473045022100a48f7d243d6e8ac325fc647394d362bdfc86ed8ef66e4480365f8ccfe96bd91c02205df6bbbd97b6fec9f69dc3b445038d32c560889a1a520040d19a9fa026be08bf:922c64590222798bb761d5b6d8e72950