id: covenant-c2-ssl

info:
  name: Covenant C2 SSL - Detect
  author: pussycat0x
  severity: info
  description: |
    Covenant is a .NET command and control framework that aims to highlight the attack surface of .NET, make the use of offensive .NET tradecraft easier,and serve as a collaborative command and control platform for red teamers.
  reference:
    - https://twitter.com/MichalKoczwara/status/1548685058403360770
  metadata:
    verified: "true"
    max-request: 1
    shodan-query: ssl:”Covenant” http.component:”Blazor”
  tags: ssl,tls,c2,ir,osint,malware,covenant,discovery
ssl:
  - address: "{{Host}}:{{Port}}"
    matchers:
      - type: word
        part: subject_dn
        words:
          - "CN=Covenant"

    extractors:
      - type: json
        json:
          - ".subject_dn"
# digest: 4a0a00473045022100c466574105a168a328c36ad33f454e9223c3b9db1335692acb545810a2d3d2f40220045790139e66081a43d99432f8ad453810d4cf142c032048b6b24064bb26e0e7:922c64590222798bb761d5b6d8e72950