id: kube-api-namespaces

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

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

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

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