id: tox-malware

info:
  name: Tox Malware - Detect
  author: daffainfo
  severity: info
  reference: https://github.com/Yara-Rules/rules/blob/master/malware/RANSOM_Tox.yar
  tags: malware,file
file:
  - extensions:
      - all

    matchers-condition: or
    matchers:
      - type: word
        part: raw
        words:
          - "n:;;t:;;t:;;t:;;t:;;t:;;t:;;t:;;t:;;t:;;t:;;t:;;t:;;t;<<t;<<t;<<t;<<t;<<t;<<t;<<t;<<t<<<t;<<t;<<t;<<"
          - "t;<<t;<<t<<<t<<"
        condition: and

      - type: word
        part: raw
        words:
          - "t;<<t;<<t<<<t<<"
          - ">>><<<"
        condition: and

      - type: word
        part: raw
        words:
          - "n:;;t:;;t:;;t:;;t:;;t:;;t:;;t:;;t:;;t:;;t:;;t:;;t:;;t;<<t;<<t;<<t;<<t;<<t;<<t;<<t;<<t<<<t;<<t;<<t;<<"
          - ">>><<<"
        condition: and
# digest: 4a0a0047304502204e185049a1f67d7b3de481261ecc9c2fefcd0649bc81eb0cee2d8f850b4448d9022100a6a0193644bb6c7bd4837804d372fe9bc5f4467f768361de2538bde5e41e417b:922c64590222798bb761d5b6d8e72950