id: kube-api-pods

info:
  name: Kube API Pods
  author: sharath
  severity: info
  description: Scans for kube pods
  metadata:
    max-request: 1
  tags: tech,k8s,kubernetes,devops,kube,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/v1/namespaces/default/pods"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        part: body
        words:
          - '"PodList":'
          - '"items":'
        condition: and
# digest: 4a0a0047304502200aa06d4a6b11adaf82653235d5f613093aeee6926a0ab6865196f1f35e54d7ac022100ddf14a2c6521d12877d59966bf3e6d6a51fdf11eaefd1a59af10a251333de796:922c64590222798bb761d5b6d8e72950