id: mongodb-detect

info:
  name: MongoDB Service - Detect
  author: pdteam
  severity: info
  description: |
    MongoDB service was detected.
  reference:
    - https://github.com/orleven/Tentacle
  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,mongodb,detect

tcp:
  - inputs:
      - data: 3a000000a741000000000000d40700000000000061646d696e2e24636d640000000000ffffffff130000001069736d6173746572000100000000
        type: hex

    host:
      - "{{Hostname}}"
    port: 27017
    read-size: 2048

    matchers:
      - type: word
        words:
          - "logicalSessionTimeout"
          - "localTime"
# digest: 490a0046304402201d01f37dbe51be80e92d0b492ae2065e5621ff3b63de8788dfe38e5ff3fcdfd902201c0d07d0077bbd2924d1803ceeac5569ce7890dd9feff6b83029109747dfb349:922c64590222798bb761d5b6d8e72950