auditing-kubernetes-cluster-rbac

Analyze Kubernetes RBAC configurations and generate an actionable audit report.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Axxxxxxaaann/KAIRI-Skills --skill auditing-kubernetes-cluster-rbac
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auditing-kubernetes-cluster-rbac
Source: https://github.com/Axxxxxxaaann/KAIRI-Skills/tree/main/skills/auditing-kubernetes-cluster-rbac
Command: npx skills add https://github.com/Axxxxxxaaann/KAIRI-Skills --skill auditing-kubernetes-cluster-rbac

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires kubernetes, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Kubernetes RBAC auditing identifies overly permissive roles, wildcard permissions, and risky bindings that can enable privilege escalation across clusters, helping security teams enforce least privilege.

Core Features & Use Cases

  • Enumerates ClusterRoles, RoleBindings, and service accounts to surface wildcard permissions and risky bindings
  • Detects access to secrets, pod/exec capabilities, automount tokens, and privileged containers
  • Generates actionable remediation guidance and supports integration with kubectl, rbac-tool, KubiScan, and kubeaudit

Quick Start

Run the agent to generate a full RBAC audit report for your Kubernetes cluster.

Frequently Asked Questions about auditing-kubernetes-cluster-rbac

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit Kubernetes RBAC for overly permissive roles and risky bindings?

Auditing Kubernetes RBAC involves enumerating ClusterRoles, RoleBindings, and service accounts to identify wildcard permissions and risky bindings. It detects access to secrets, pod/exec capabilities, and privileged containers to produce an actionable remediation report.

What are common Kubernetes RBAC security risks I need to detect in my cluster?

Kubernetes RBAC security risks include wildcard permissions, risky bindings, access to secrets, pod/exec capabilities, automount tokens, and privileged containers. Detecting these vulnerabilities prevents privilege escalation across both self-hosted and managed clusters.

Can I use kubiscan and kubeaudit to check RBAC configurations on managed Kubernetes clusters?

Yes, kubiscan and kubeaudit can check RBAC configurations on managed Kubernetes clusters. The auditing process applies to both self-hosted and managed environments to enumerate roles, bindings, and risky service accounts for security analysis.

How do I generate a remediation report for Kubernetes service accounts with dangerous permissions?

You generate a remediation report by running an automated auditing agent against your cluster. It enumerates roles, bindings, and risky service accounts, detects dangerous permissions like pod/exec, and outputs actionable remediation recommendations.

What's the best way to enforce least privilege for Kubernetes service accounts and role bindings?

Enforcing least privilege requires auditing Kubernetes RBAC configurations to identify overly permissive roles and dangerous bindings. Automated auditing provides actionable remediation guidance to restrict wildcard permissions and secure service accounts.