id: detect-jabber-xmpp

info:
  name: Jabber XMPP Protocol - Detect
  author: geeknik
  severity: info
  description: Jabber XMPP protocol was detected.
  reference:
    - https://datatracker.ietf.org/doc/html/rfc6120
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: network,jabber,xmpp,messaging,detect

tcp:
  - inputs:
      - data: "a\n"

    host:
      - "{{Hostname}}"
    port: 5222

    matchers:
      - type: word
        words:
          - "stream:stream xmlns:stream"
          - "stream:error xmlns:stream"
        condition: or
# digest: 490a0046304402206512e881fe1cf26bd5bf616d72ae7223ccfc93cc51967fc2559339e1ccd541f502207e172bf475353930b94507558c10ff56ec3b63d7650ea00105f6468da07f1071:922c64590222798bb761d5b6d8e72950