id: jolokia-detect

info:
  name: Jolokia Detection
  author: mavericknerd,dwisiswant0
  severity: info
  metadata:
    max-request: 1
  tags: tech,jolokia

http:
  - method: GET
    path:
      - '{{BaseURL}}/jolokia/version'
      - '{{BaseURL}}/actuator/jolokia/version'

    stop-at-first-match: true
    matchers-condition: and
    matchers:
      - type: word
        words:
          - '"timestamp":'
          - '"protocol":'
          - '"agent":'
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: json
        json:
          - '.value.agent'
# digest: 4a0a0047304502204c46c5424dad040c2c02848c5bc2c31b77309ca2d94e8cde5f06574ac72773d7022100f44b071a599110ab5648a8f4cb3c59b9e789caeb9f7593554e863c6b05cc8c96:922c64590222798bb761d5b6d8e72950