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

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: 490a0046304402207e78ca08ba4263ed9a2679dc04cb4984133de3f735dc4b86ddac92a1b4f59c2b0220133e77113d761d17a47b2078d735f78a57255862d939309404a7e3d7d1a60819:922c64590222798bb761d5b6d8e72950