id: twitter-phish

info:
  name: Twitter/X phishing Detection
  author: rxerium
  severity: info
  description: |
    A Twitter/X phishing website was detected
  reference:
    - https://twitter.com
    - https://x.com
  metadata:
    max-request: 1
  tags: phishing,twitter,x,osint,discovery
http:
  - method: GET
    path:
      - "{{BaseURL}}"

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'Sign in to X'
          - 'Happening now'
          - 'Join today'
        condition: or

      - type: status
        status:
          - 200

      - type: dsl
        dsl:
          - '!contains(host,"twitter.com")'
          - '!contains(host,"x.com")'
# digest: 4a0a0047304502204f8dc8e3507d352b671701910e128c8170ad4e2532ac6330f03d3f07dbacbad7022100ce8d7cff9eeadc54989ea74175028d4d626940deddef34b230642e4f4561ca94:922c64590222798bb761d5b6d8e72950