id: pubsab-malware

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

    matchers-condition: or
    matchers:
      - type: word
        part: raw
        words:
          - "_deamon_init"
          - "com.apple.PubSabAgent"
          - "/tmp/screen.jpeg"
        condition: or

      - type: binary
        binary:
          - "6B45E43789CA29C28955E4"
# digest: 4a0a00473045022100c8cffdf86926214fd29a783f45541dd997f38dd189ae3348709ab562ea12cbba02207ea2997a0ce2fa069ca576efdc65e87f8a5ea6b617a94a362f37edbe1cc0953a:922c64590222798bb761d5b6d8e72950