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: 490a0046304402201201560c3a42ec68c52e1881cf08bdd70bd8ef0873765f64a022908873d47f1002203c4a3223a1e63513eeb4abfa5a9b1532b018cfde4cd8ab3df2f3027c910efe8c:922c64590222798bb761d5b6d8e72950