id: posh-c2-jarm

info:
  name: Posh C2 JARM - Detect
  author: pussycat0x
  severity: info
  description: |
    PoshC2 is a proxy aware C2 framework used to aid penetration testers with red teaming, post-exploitation and lateral movement.
  reference: |
    - - https://github.com/cedowens/C2-JARM
    - https://twitter.com/MichalKoczwara/status/1551639708949692416
    - https://poshc2.readthedocs.io/en/latest/
  metadata:
    max-request: 1
  tags: jarm,network,c2,ir,osint,cti,posh,tcp
tcp:
  - inputs:
      - data: 2E
        type: hex
    host:
      - "{{Hostname}}"
    matchers:
      - type: dsl
        dsl:
          - "jarm(Hostname) == '2ad2ad0002ad2ad22c42d42d000000faabb8fd156aa8b4d8a37853e1063261'"
# digest: 490a0046304402202780a77458ea0673697d3b5f7d83096d73ea09d2f01b3f797d5520c0ed1e0ed70220668e34e273176d11194586b0ee27854e41aef038cbf48b1ccdbea34639825283:922c64590222798bb761d5b6d8e72950