id: beyondtrust-login-server

info:
  name: BeyondTrust Privileged Access Management Login - Detect
  author: r3dg33k,nuk3s3c
  severity: info
  description: BeyondTrust Privileged Access Management login panel was detected.
  reference:
    - https://www.beyondtrust.com/brand
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: beyondtrust,pam,panel

http:
  - method: GET
    path:
      - '{{BaseURL}}/WebConsole/api/security/auth/loginServers'

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: regex
        regex:
          - '"DomainName":"(.*)"'
          - '"domains":'
        condition: and

    extractors:
      - type: json
        part: body
        json:
          - ".domains[] | .DomainName"
          - ".domains[] | .ldapservers"
# digest: 490a004630440220544784d274f6f0f84933a2d0db6005a75b66e1a27e4fc7630740b8fa03fa95ab02207d82a93e620c4ec70552eae707c7b55de2ff43e3136f72097cae51facc4e7604:922c64590222798bb761d5b6d8e72950