id: defaced-website-detect

info:
  name: Defaced Website - Detection
  author: ggranjus
  severity: info
  description: The detected website is defaced.
  metadata:
    verified: 'true'
    max-request: 1
    shodan-query: http.title:"Hacked By"
  tags: miscellaneous,defacement,misc

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

    matchers:
      - type: regex
        part: body
        regex:
          - '(?i)<title>.*Hacked( By .+)?<\/title>'

    extractors:
      - type: xpath
        xpath:
          - '/html/head/title'
# digest: 4a0a00473045022047e9a2c505de323d82630884015102d4377717acf1f0805a3ba16858faf5baf7022100ac1eab271b2230981df2ef43bed59134138507570883179496fb1ec621d0fb24:922c64590222798bb761d5b6d8e72950