A comprehensive security analysis tool for Kubernetes clusters.
Installation
go get github.com/afshin-deriv/kubekitty
Quick Start
kubekitty --namespace default
Example YAML structure
rules:
- name: No wildcard verbs in ClusterRoles
description: ClusterRoles should not use wildcard verbs for permissions.
category: RBAC
severity: HIGH
condition: verbs contains "*"
suggestion: Specify explicit verbs instead of wildcards.
- name: No hostPID in PodSecurityContext
description: Pods should not share the host's PID namespace.
category: PodSecurity
severity: HIGH
condition: .spec.hostPID == true
suggestion: Set hostPID to false in the Pod's security context.