id: kubelet-metrics

info:
  name: Kubelet Metrics
  author: sharath,righettod
  severity: info
  description: |
    Kube Metrics Server was detected.
  reference:
    - https://github.com/kubernetes-sigs/metrics-server
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.title:"Kube Metrics Server"
  tags: tech,k8s,kubernetes,devops,kubelet,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/"
      - "{{BaseURL}}/metrics"

    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(to_lower(body), "<title>kube metrics server</title>", "kube_configmap_", "kube_pod_", "kube_secret_", "kube_deployment_", "kube_namespace_", "kube_service_")'
        condition: and
# digest: 4b0a00483046022100e68cecc94d938b0cb7a4a00f533dc8f9cba1afd52cd6c89c57204fe549a0e65002210092ecef85d2afbbff294cf50fd2b03cba0f47beaed01474a66a5448c33bb7d4f5:922c64590222798bb761d5b6d8e72950