id: kube-api-services

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

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

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

      - type: word
        part: body
        words:
          - '"ServiceList":'
          - '"items":'
        condition: and
# digest: 490a004630440220182d32f7bb5840d1d92829f3902279c3dd770fc0b3daf5a9a1c9451f4a326fa3022023af463b1f27f3381f95c13e6015ef4f73587ee83900d47cf78c8057bd129cdf:922c64590222798bb761d5b6d8e72950