id: rabbitmq-detect

info:
  name: RabbitMQ Detection
  author: pussycat0x
  severity: info
  description: |
    RabbitMQ is an open-source message-broker software that originally implemented the Advanced Message Queuing Protocol and has since been extended with a plug-in architecture to support Streaming Text Oriented Messaging Protocol, MQ Telemetry Transport, and other protocols.
  reference:
    - https://nmap.org/nsedoc/scripts/amqp-info.html
  metadata:
    max-request: 1
    shodan-query: product:"RabbitMQ"
    verified: true
  tags: network,rabbitmq,oss,detect

tcp:
  - inputs:
      - data: "AMQP\u0000\u0000\t\u0001"

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "publisher_confirmst"
          - "RabbitMQ"
        condition: and
# digest: 4b0a00483046022100c17d0b2f25193fce74cbafa7aad00e36f28e4d50a830b54aa7796d652ee21109022100e661ed1260df7768bafafd85f2a6c824da514845d768937986870b294180f5d2:922c64590222798bb761d5b6d8e72950