id: bitrat-c2

info:
  name: Bitrat C2 - Detect
  author: pussycat0x
  severity: info
  description: |
    BitRAT is a fairly recent, notorious remote access trojan (RAT) marketed on underground cybercriminal web markets and forums since Feb 2021. The RAT is particularly well known for its social media presence and functionality such as: Data exfiltration. Execution of payloads with bypasses.
  reference:
    https://github.com/thehappydinoa/awesome-censys-queries#bitrat--
  metadata:
    verified: true
    max-request: 1
    censys-query: 'services.tls.certificates.leaf_data.subject.common_name: "BitRAT"'
  tags: ssl,tls,c2,ir,osint,malware,bitrat,discovery
ssl:
  - address: "{{Host}}:{{Port}}"
    matchers:
      - type: word
        part: issuer_cn
        words:
          - "BitRAT"

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