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: 4a0a00473045022063f688f881894ac393b696d0737d2878f4de4af5f596910eb3b8bf17686f8a97022100af751c175b370dd577b22c6fa201f6a8ceaf6bf88707ee2686612b42b45ae3ae:922c64590222798bb761d5b6d8e72950
