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,discovery,ai

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: 4a0a00473045022025088ab4f989d64b738ea9f772b91e8df86db327bef7369e2d4217b08ffc6f92022100d5104d6ebdad285b3c10f4f1e3759ee1a42d0189db56ced823ecff2f9242fda8:922c64590222798bb761d5b6d8e72950