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

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: 490a004630440220052953f4302f9c2fc857ee007ac6e1dafae250c6c553dcfa826eb5c5e31567e102200d441ce6e47decde309ce5f067e923cbdd1604372a15d0edf3306a36934e8499:922c64590222798bb761d5b6d8e72950