id: metasploit-c2-jarm

info:
  name: Metasploit C2 JARM - 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://github.com/cedowens/C2-JARM
    - https://www.socinvestigation.com/shodan-filters-to-hunt-adversaries-infrastructure-and-c2/
  metadata:
    max-request: 1
  tags: jarm,network,c2,ir,osint,cti,metasploit,tcp,vuln
tcp:
  - inputs:
      - data: 2E
        type: hex
    host:
      - "{{Hostname}}"
    matchers:
      - type: dsl
        dsl:
          - "jarm(Hostname) == '07d14d16d21d21d00042d43d000000aa99ce74e2c6d013c745aa52b5cc042d'"
          - "jarm(Hostname) == '07d14d16d21d21d07c42d43d000000f50d155305214cf247147c43c0f1a823'"
        condition: or
# digest: 4a0a00473045022100de25c522c80ddc05373f95e6da862be82956a818aeeb20f3ba0698fd921827af022036cd4f0c9627a397a99e92724cd64a855ed017c06c230e0e49ca0c9f290f468a:922c64590222798bb761d5b6d8e72950