id: kube-api-secrets

info:
  name: Kube API Secrets
  author: sharath
  severity: info
  description: Scans for kube secrets endpoint
  metadata:
    max-request: 1
  tags: tech,k8s,kubernetes,devops,kube,discovery

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

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

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