id: poetrat-malware

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

    matchers-condition: and
    matchers:
      - type: word
        part: raw
        words:
          - "launcher.py"
          - "smile.zip"
          - "smile_funs.py"
          - "frown.py"
          - "backer.py"
          - "smile.py"
          - "affine.py"
          - "cmd"
          - ".exe"
        condition: and

      - type: regex
        regex:
          - '(\.py$|\.pyc$|\.pyd$|Python)'
          - '\.dll'
        condition: and
# digest: 490a00463044022062fdc24ad76c10a0b5c759fea6eaefc71a0bf938acbdf00a7e2faa91566699da02203ce96d5d93d0b4e9b988142968909bab48c2a5a10fe2302daaab73281f348cc9:922c64590222798bb761d5b6d8e72950