id: serge-panel

info:
  name: Serge Panel - Detect
  author: rxerium
  severity: info
  description: |
    Serge is a web interface for chatting with Alpaca through llama.cpp. This template detects the presence of a Serge chat interface.
  reference:
    - https://github.com/serge-chat/serge
    - https://serge.chat
  metadata:
    verified: true
    max-request: 1
    vendor: serge-chat
    product: serge
    shodan-query: 'http.title:"Serge" port:8008'
  tags: panel,serge,llm,ai,chat,detect,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Serge - Powered by LLaMA"

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100d0330b98691cff0e640286b5627175137774808477e2299b1cb69ed232b81d85022100c743a9994f222e3a19bc8c2fcee0d14606b5b7c217e6953dba0ceda3632e1708:922c64590222798bb761d5b6d8e72950