id: shimrat-malware

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

    matchers-condition: or
    matchers:
      - type: word
        part: raw
        words:
          - ".dll"
          - ".dat"
          - "QWERTYUIOPLKJHG"
          - "MNBVCXZLKJHGFDS"
        condition: and

      - type: word
        part: raw
        words:
          - "Data$$00"
          - "Data$$01%c%sData"
        condition: and

      - type: word
        part: raw
        words:
          - "ping localhost -n 9 /c %s > nul"
          - "Demo"
          - "Win32App"
          - "COMSPEC"
          - "ShimMain"
          - "NotifyShims"
          - "GetHookAPIs"
        condition: and
# digest: 490a0046304402202310c607b69f8f5549ee0591e4da377260e661b38ad0f3ceb9f68ed8d64384520220483c7093fdd1828f8cf00bfcbe23ff5827f9cfa93c23d6bd7f48dc78cf60514b:922c64590222798bb761d5b6d8e72950