id: jetbrains-takeover

info:
  name: Jetbrains Takeover Detection
  author: pdteam
  severity: high
  description: Jetbrains takeover was detected.
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz/pull/107
  metadata:
    max-request: 1
  tags: takeover,jetbrains

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

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - Host != ip

      - type: word
        words:
          - is not a registered InCloud YouTrack.

    extractors:
      - type: dsl
        dsl:
          - cname
# digest: 490a00463044022054865f30a578aae3532e7b2441b17a16331dc841fe496cae384f5eb70099ca8f02201250f7b9464eaed8f7ed9503f623fd0f1328324e965986c24a9c3fdf262ac865:922c64590222798bb761d5b6d8e72950