review-security-k8s-rbac

Analyze Kubernetes RBAC manifests and live clusters for privilege escalation risks.

42|32|Updated May 7, 2026
One-click install
npx skills add https://github.com/gke-labs/kube-agents --skill review-security-k8s-rbac
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-security-k8s-rbac
Source: https://github.com/gke-labs/kube-agents/tree/main/.agents/skills/review-security-k8s-rbac
Command: npx skills add https://github.com/gke-labs/kube-agents --skill review-security-k8s-rbac

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill identifies dangerous Kubernetes RBAC configurations, such as overly permissive roles or privilege escalation paths, that could lead to cluster compromise.

Core Features & Use Cases

  • Vulnerability Detection: Automatically flags risky bindings involving default system groups, broad service accounts, and cluster-admin privileges.
  • Privilege Escalation Analysis: Detects dangerous verbs like bind, escalate, or impersonate that allow unauthorized access elevation.
  • GKE Best Practice Alignment: Validates configurations against Google Cloud's specific security recommendations for GKE environments.

Quick Start

Use the review-security-k8s-rbac skill to scan the current cluster RBAC configuration for privilege escalation risks and insecure bindings.

Frequently Asked Questions about review-security-k8s-rbac

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

FAQPage Schema
How do I audit Kubernetes RBAC configurations for privilege escalation risks?

To audit Kubernetes RBAC for privilege escalation, analyze live cluster configurations and manifests to detect dangerous verbs like bind, escalate, or impersonate. This process identifies insecure service account permissions and ensures compliance with the principle of least privilege.

What are common Kubernetes RBAC security misconfigurations in GKE environments?

Common Kubernetes RBAC security misconfigurations include overly permissive roles, wildcard usage, and risky bindings involving default system groups or cluster-admin privileges. Evaluating configurations against GKE best practices helps detect these sensitive resource access vulnerabilities.

How can I detect over-scoped roles and insecure service account permissions in Kubernetes?

Detect over-scoped roles and insecure service account permissions by evaluating Kubernetes RBAC bindings against security best practices. This vulnerability detection flags broad access assignments and validates that service accounts adhere to the principle of least privilege.

Does this RBAC audit process validate configurations against GKE best practices?

Yes, the RBAC audit validates configurations against Google Cloud's specific security recommendations for GKE environments. It evaluates bindings to ensure GKE best practice alignment, focusing on system group exposure and sensitive resource access.

What is the best way to check Kubernetes RBAC for wildcard usage and system group exposure?

The best way to check Kubernetes RBAC for wildcard usage and system group exposure is to scan live cluster configurations for risky bindings. This analysis identifies privilege escalation paths and ensures roles do not grant unauthorized access elevation.

When do I need to scan live cluster RBAC configurations for security vulnerabilities?

You need to scan live cluster RBAC configurations for security vulnerabilities when validating compliance with the principle of least privilege or when investigating potential cluster compromise paths from overly permissive roles and insecure bindings.