id: kong-detect

info:
  name: Detect Kong
  author: geeknik,joshlarsen
  severity: info
  description: The Cloud-Native API Gateway
  reference:
    - https://github.com/Kong/kong
  metadata:
    max-request: 1
  tags: tech,kong

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

    matchers:
      - type: word
        part: header
        words:
          - "server: kong"
          - "x-kong-response-latency"
          - "x-kong-upstream-latency"
          - "x-kong-proxy-latency"
          - "x-kong-admin-request-id"
        condition: or
        case-insensitive: true

    extractors:
      - type: kval
        kval:
          - server
# digest: 4b0a00483046022100ed86556ed7d47ba939f02634c76633b67b4d9cb4c718ec9123ea5ebd4d952908022100ee4c8b8a3628d82b42691e16642d407357bf55499be746d9390f981eb956867e:922c64590222798bb761d5b6d8e72950