commit
ea1a73f856
|
@ -2,34 +2,28 @@ id: kubelet-metrics
|
|||
|
||||
info:
|
||||
name: Kubelet Metrics
|
||||
author: sharath
|
||||
author: sharath,righettod
|
||||
severity: info
|
||||
description: Scans for kubelet metrics
|
||||
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"
|
||||
|
||||
matchers-condition: and
|
||||
stop-at-first-match: true
|
||||
matchers:
|
||||
- type: word
|
||||
part: body
|
||||
words:
|
||||
- "# HELP "
|
||||
- "# TYPE "
|
||||
- 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
|
||||
|
||||
- type: regex
|
||||
part: header
|
||||
regex:
|
||||
- "text/plain"
|
||||
|
||||
- type: status
|
||||
status:
|
||||
- 200
|
||||
|
||||
# digest: 4a0a0047304502206304fdefa549420a95e8e8416fa7bbda5e97a730ad45bc39d1f08514ea297377022100b996ee8165fd474d604f554a5ec3768980c2b5c63c8b6edf432767ba64f8778f:922c64590222798bb761d5b6d8e72950
|
||||
|
|
Loading…
Reference in New Issue