id: worksites-takeover

info:
  name: Worksites Takeover Detection
  author: melbadry9,dogasantos
  severity: high
  description: Worksites takeover was detected.
  reference:
    - https://melbadry9.gitbook.io/blog/dangling-dns/xyz-services/ddns-worksites
  metadata:
    verified: true
    max-request: 2
  tags: takeover

dns:
  - name: "{{FQDN}}"
    type: A
    class: inet
    recursion: true
    retries: 3
    matchers:
      - type: word
        words:
          - "69.164.223.206"

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

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

      - type: word
        words:
          - "Company Not Found"
          - "worksites.net"
        condition: and

      - type: status
        status:
          - 404
# digest: 490a0046304402204e2d005028e1b5fb6ba7e6243c849abd05ec642d375a0195e3811f190d1fdf2c022041abef7bd43996067c23c2e2d2f2cca0780d750a1466406fc903aefecc2e476b:922c64590222798bb761d5b6d8e72950