auditing-kubernetes-rbac-permissions

auditing-kubernetes-rbac-permissions is a skill for Claude Code, Codex from autohandai/community-skills. It costs 43 tokens per session (1,567 once invoked), scanned A, original, Apache-2.0.

A guide for auditing Kubernetes RBAC, the permission system that controls what users and services can do in a Kubernetes cluster. It reviews roles, bindings, and service accounts.

In plain words
What is it for?
Use it to inspect cluster permissions with Kubernetes command-line and auditing tools and support least-privilege reviews.
Why use it?
It helps uncover wildcard permissions, unsafe role assignments, privilege-escalation paths, and service accounts with too much access.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect cluster permissions with Kubernetes command-line and auditing tools and support least-privilege reviews.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/autohandai/community-skills/auditing-kubernetes-rbac-permissions
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add autohandai/community-skills --skill auditing-kubernetes-rbac-permissions
Clone the repo
git clone --depth 1 https://github.com/autohandai/community-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for auditing-kubernetes-rbac-permissions

README.md
[![agentmods](https://agentmods.dev/badge/skills/autohandai/community-skills/auditing-kubernetes-rbac-permissions/github.svg)](https://agentmods.dev/skills/autohandai/community-skills/auditing-kubernetes-rbac-permissions)
Your own site
<a href="https://agentmods.dev/skills/autohandai/community-skills/auditing-kubernetes-rbac-permissions"><img src="https://agentmods.dev/badge/skills/autohandai/community-skills/auditing-kubernetes-rbac-permissions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for auditing-kubernetes-rbac-permissions

Your own site · 80×15
<a href="https://agentmods.dev/skills/autohandai/community-skills/auditing-kubernetes-rbac-permissions"><img src="https://agentmods.dev/badge/skills/autohandai/community-skills/auditing-kubernetes-rbac-permissions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,567 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.01567
Opus 5 $0.00022 $0.00783
Sonnet 5 $0.00009 $0.00313
Haiku 4.5 $0.00004 $0.00157

Measured 9d ago against content hash 9085d50f97d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

auditing-kubernetes-rbac-permissions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/agent.py, scripts/process.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

auditing-kubernetes-rbac-permissions/SKILL.md · 206 lines

How it starts

The opening of the file, as written. The whole thing — 206 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Auditing Kubernetes RBAC Permissions

Overview

Kubernetes Role-Based Access Control (RBAC) auditing systematically reviews roles, cluster roles, bindings, and service account permissions to identify overly permissive access, privilege escalation paths, and violations of least-privilege principles. Tools like rbac-tool, KubiScan, and rakkess automate discovery of dangerous permission combinations.

Prerequisites

  • Kubernetes cluster with RBAC enabled (default since 1.6)
  • kubectl with cluster-admin access for full audit
  • rbac-tool, rakkess, or KubiScan installed

Core Concepts

RBAC Components

Resource Scope Purpose
Role Namespace Grants permissions within a namespace
ClusterRole Cluster Grants permissions cluster-wide
RoleBinding Namespace Binds Role/ClusterRole to subjects in namespace
ClusterRoleBinding Cluster Binds ClusterRole to subjects cluster-wide

Dangerous Permission Combinations

Permission Risk Impact
* on * resources Critical Equivalent to cluster-admin
create pods High Can deploy privileged pods
create pods/exec High Can exec into any pod
get secrets High Can read all secrets
create clusterrolebindings Critical Can escalate to cluster-admin
impersonate users Critical Can act as any user
escalate on roles Critical Can grant permissions beyond own
bind on roles High Can create new role bindings

Implementation Steps

Step 1: Enumerate All RBAC Resources

# List all ClusterRoles
kubectl get clusterroles -o name | wc -l
kubectl get clusterroles --no-headers | grep -v "system:"

# List all ClusterRoleBindings
kubectl get clusterrolebindings -o wide

# List all Roles per namespace
kubectl get roles -A

# List all RoleBindings per namespace
kubectl get rolebindings -A -o wide

# Export all RBAC for offline analysis
kubectl get clusterroles,clusterrolebindings,roles,rolebindings -A -o yaml > rbac-export.yaml

Read the full file on GitHub · 206 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 206 lines · 43 tokens per session scan A 9085d50f97d6

Subscribe to this mod's changes

auditing-kubernetes-rbac-permissions is a skill published in the GitHub repository autohandai/community-skills (11 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 43 tokens to every session and 1,567 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

None

Kubernetes Role-Based Access Control (RBAC) auditing systematically reviews roles, cluster roles, bindings, and service account permissions to identify overly permissive access, privilege escalation p.

Njones17/AI-agent-master-cyber-skills-list · 36 tokens

implementing-rbac-hardening-for-kubernetes

Harden Kubernetes Role-Based Access Control by implementing least-privilege policies, auditing role bindings, eliminating cluster-admin sprawl, and integrating external identity providers.

xalgorix/xalgorix · 41 tokens

auditing-kubernetes-cluster-rbac

Auditing Kubernetes cluster RBAC configurations to identify overly permissive roles, wildcard permissions, dangerous ClusterRoleBindings, service account abuse, and privilege escalation paths using kubectl, rbac-tool, KubiScan, and Kubeaudit.

xalgorix/xalgorix · 56 tokens

kubernetes

Kubernetes orchestration authority — pods, deployments, services, ingress, helm charts, kustomize overlays, RBAC, network policies, operators, StatefulSets for databases, production-grade cluster hardening, and kubectl workflows.

LuuOW/meridian-mcp · 48 tokens

auditing-kubernetes-rbac-privilege-escalation

Find over-permissive RBAC roles and service-account token abuse paths in Kubernetes using kubectl auth can-i, rbac-police, kubectl-who-can, and rakkess during authorized cluster security reviews.

Youngmaidainon/Agent-Level-Up · 57 tokens

auditing-kubernetes-cluster-rbac

Auditing Kubernetes cluster RBAC configurations to identify overly permissive roles, wildcard permissions, dangerous ClusterRoleBindings, service account abuse, and privilege escalation paths using kubectl, rbac-tool, KubiScan, and Kubeaudit.

26zl/cybersec-toolkit · 56 tokens