cyberark/kubernetes-rbac-audit
Tentang
Tool for auditing RBACs in Kubernetes
Sistem dan infrastrukturPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- 0
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliExtensiveRoleCheck
ExtensiveRoleCheck is a Python tool that scans the Kubernetes RBAC for risky roles. The tool is a part of the "Kubernetes Pentest Methdology" blog post series.
usage: ExtensiveRoleCheck.py [-h] [--clusterRole CLUSTERROLE] [--role ROLE]
[--rolebindings ROLEBINDINGS]
[--cluseterolebindings CLUSETEROLEBINDINGS]
Overview
Status: Alpha
The RBAC API is a set of roles that administrators can configure to limit access to the Kubernetes resources. The ExtensiveRoleCheck automates the searching process and outputs the risky roles and rolebindings found in the RBAC API.
Requirements:
ExtensiveRoleCheck requires python3
ExtensiveRoleCheck works in offline mode. This means that you should first export the following JSON from your Kubernetes cluster configuration:
- Roles
- ClusterRoles
- RoleBindings
- ClusterRoleBindings
To export those files you will need access permissions in the Kubernetes cluster. To export them, you might use the following commands: Export RBAC Roles:
kubectl get roles --all-namespaces -o json > Roles.json
Export RBAC ClusterRoles:
kubectl get clusterroles -o json > clusterroles.json
Export RBAC RolesBindings:
kubectl get rolebindings --all-namespaces -o json > rolebindings.json
Export RBAC Cluster RolesBindings:
kubectl get clusterrolebindings -o json > clusterrolebindings.json
example & output:
Usage
python ExtensiveRoleCheck.py --clusterRole clusterroles.json --role Roles.json --rolebindings rolebindings.json --cluseterolebindings clusterrolebindings.json

Maintainers:
Or Ida: [email protected]
Jelajahi proyek terkait
Memuat…