id: metasploit-c2

info:
  name: Metasploit C2 - Detect
  author: pussycat0x
  severity: info
  description: |
    A Metasploit Framework is a powerful tool that provides a universal interface to work with vulnerability exploit code. It has to exploit code for a wide range of vulnerabilities that impact web servers, OSes, network equipment, and everything in between. Metasploit which serves as both exploitation and C2 frameworks.
  reference:
    - https://www.socinvestigation.com/shodan-filters-to-hunt-adversaries-infrastructure-and-c2/
  metadata:
    verified: "true"
    max-request: 1
    shodan-query: ssl:"MetasploitSelfSignedCA"
  tags: c2,ssl,tls,ir,osint,malware,metasploit,discovery
ssl:
  - address: "{{Host}}:{{Port}}"
    matchers:
      - type: word
        part: issuer_cn
        words:
          - "MetasploitSelfSignedCA"

    extractors:
      - type: json
        json:
          - " .issuer_cn"
# digest: 490a00463044022051fdaa0fe8db2e2df8126ad0cc5d8b59623cc80d8682f6c5ec609746facb2ed10220672fdb9f229daf757f5cdcb31f4719a88e726b1d40ba1faab3aeadff1992950e:922c64590222798bb761d5b6d8e72950