id: apache-nifi-detect

info:
  name: Apache NiFi detect
  author: dwisiswant0
  severity: info
  metadata:
    max-request: 7
  tags: tech,apache,nifi

http:
  - method: GET
    path:
      - "{{BaseURL}}/access/config"
      - "{{BaseURL}}/controller/config"
      - "{{BaseURL}}/controller/registry-clients"
      - "{{BaseURL}}/counters"
      - "{{BaseURL}}/flow/registries"
      - "{{BaseURL}}/system-diagnostics"
      - "{{BaseURL}}/nifi-api/access/config"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "supportsLogin"
          - "disconnectedNodeAcknowledged"
          - "(aggregate|node)Snapshots?"
        condition: or

      - type: status
        status:
          - 200
# digest: 4a0a004730450220715071ab63b8237fef80adbafcf3336f18594ff47a354856f57bf875990b588f0221008a5de5651c43d54d4343e62528b11df70dab90c10ce871fdee5e35a6bb4d72ed:922c64590222798bb761d5b6d8e72950