id: grat-c2-jarm

info:
  name: Grat2 C2 JARM - Detect
  author: pussycat0x
  severity: info
  description: |
    GRAT2 is a Command and Control (C2) tool written in python3 and the client in .NET 4.5. The main idea came from Georgios Koumettou who initiated the project.
  reference:
    - https://github.com/cedowens/C2-JARM
    - https://github.com/r3nhat/GRAT2
  metadata:
    max-request: 1
  tags: c2,jarm,network,ir,osint,cti,shad0w
tcp:
  - inputs:
      - data: 2E
        type: hex
    host:
      - "{{Hostname}}"
    matchers:
      - type: dsl
        dsl:
          - "jarm(Hostname) == '2ad2ad0002ad2ad00042d42d000000ad9bf51cc3f5a1e29eecb81d0c7b06eb'"
# digest: 4a0a0047304502205afa2c80520c8c9d059aafa1b7e54cc6de270f1d042b028b3e1f57b24b42dedd022100c4d20de762c4766fb34b252415f4d27ecf35c982e6eba80e5aa3fcea837f52ec:922c64590222798bb761d5b6d8e72950