id: ibm-api-connect-panel

info:
  name: IBM API Connect Panel - Detect
  author: righettod
  severity: info
  description: IBM API Connect login panel was detected.
  reference:
    - https://www.ibm.com/products/api-connect/developer-portal
  metadata:
    max-request: 1
  tags: panel,ibm,api,detect,login

http:
  - method: GET
    path:
      - '{{BaseURL}}/auth/manager/sign-in/'
      - '{{BaseURL}}'

    stop-at-first-match: true
    host-redirects: true
    max-redirects: 2
    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200 || status_code == 404'

      - type: dsl
        dsl:
          - 'contains_any(to_lower(body), "content=\"ibm api connect", "ibm api connect</title>")'
          - 'contains_all(to_lower(body), "window.apiConnectCfg", "ibm-cloud", "<title>api connect")'
        condition: or
# digest: 490a00463044022052d79b5d9aa9b414b4101fccdc0e270a8bd3d7cad874287696d17ec38badde3e022056f84022c93844574f49f855728866c8dc4ea0eaf16316d46a02c973e6fe96c7:922c64590222798bb761d5b6d8e72950