id: quasar-rat-c2

info:
  name: Quasar RAT C2 SSL Certificate - Detect
  author: johnk3r,pussycat0x,adilsoybali
  severity: info
  description: |
    Quasar RAT is a malware family written in .NET which is used by a variety of attackers. The malware is fully functional and open source, and is often packed to make analysis of the source more difficult.
  reference:
    - https://malpedia.caad.fkie.fraunhofer.de/details/win.quasar_rat
  metadata:
    verified: "true"
    max-request: 1
    shodan-query: ssl.cert.subject.cn:"Quasar Server CA"
    censys-query: 'services.tls.certificates.leaf_data.subject.common_name: {"Quasar Server CA"}'
  tags: c2,ssl,tls,ir,osint,malware,quasar,discovery
ssl:
  - address: "{{Host}}:{{Port}}"
    matchers:
      - type: word
        part: issuer_cn
        words:
          - "Quasar Server CA"

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