id: kube-api-deployments

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

http:
  - method: GET
    path:
      - "{{BaseURL}}/apis/apps/v1/namespaces/default/deployments"

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

      - type: word
        part: body
        words:
          - '"DeploymentList":'
          - '"items":'
        condition: and

# digest: 4a0a0047304502207d3243aa83d832915b5727b4da7f06dbf8dc0398bc8643ddec37226b0bcb05fc022100b7144eca7fd2f591936d5633a4298175851be34c3d748cbebab60a3b048b627d:922c64590222798bb761d5b6d8e72950
