id: onimai-rat-c2

info:
  name: Onimai RAT C2 SSL Certificate - Detect
  author: worldwidefuckfest
  severity: info
  description: |
    Onimai is a relatively new closed-source Remote Administration Trojan (RAT) based on Quasar.
  metadata:
    verified: true
    max-request: 1
    shodan-query: ssl.cert.subject.cn:"Onimai Academies CA"
    censys-query: 'services.tls.certificates.leaf_data.subject.common_name: {"Onimai Academies CA"}'
  tags: c2,ir,osint,malware,onimai,rat,discovery

ssl:
  - address: "{{Host}}:{{Port}}"

    matchers:
      - type: word
        part: issuer_cn
        words:
          - "Onimai Academies CA"

    extractors:
      - type: json
        json:
          - " .issuer_cn"
# digest: 4a0a00473045022100e03a215a4d2331146683d0432a4278bf6d176585039b54768644c617298c819102207b123a4c39fc3387f09e885389488c2f52d816ac71f942e8276ca8296f8cfe1c:922c64590222798bb761d5b6d8e72950