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: 4a0a00473045022028c177d174a4ebb7ed39167830ff14614485adedfe9acb717ab802b8a5969822022100abee517691e4927f666216782338cb8445018cef1ebc4f18850cefb9206bbe46:922c64590222798bb761d5b6d8e72950