id: tyk-gateway-detect

info:
  name: Tyk API Gateway - Detection
  author: davidfegyver
  severity: info
  description: |
    Detects if the application uses Tyk API Gateway
  reference:
    - https://github.com/TykTechnologies/tyk
  metadata:
    verified: true
    max-request: 1
  tags: tyk,gateway,tech,detect,discovery

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Tyk GW"
          - "description"
        condition: and

      - type: word
        part: content_type
        words:
          - application/json

    extractors:
      - type: regex
        name: version
        part: body
        regex:
          - "\"version\":\"([^\"]*)\""
# digest: 4a0a004730450220507c421ba38e391b181ac3ba0491f48abd5d249c0018b6fd987afb7705de60bb0221008e10a4e4a65a252f482d35d16e407a4fddb3d958e1f9bbad9afbbe31f8605bd9:922c64590222798bb761d5b6d8e72950