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