CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

auditing-kubernetes-rbac-privilege-escalation

Finds over-permissive RBAC roles and service-account token abuse paths in a Kubernetes cluster using kubectl auth can-i, rbac-police, kubectl-who-can, and rakkess, tracing which subjects can escalate toward cluster-admin. Use when reviewing who can escalate privileges in a cluster, hunting exploitable RoleBindings during an authorized review, or validating least privilege after an RBAC change. Keywords: RBAC, ClusterRoleBinding, service account token, auth can-i, rbac-police, escalate, bind, impersonate. Do not use for designing and applying hardened RBAC - use implementing-rbac-hardening-for-kubernetes.

Quality

85%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

High

Do not use without reviewing

SKILL.md
Quality
Evals
Security

Quality

Content

65%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A highly actionable, well-structured RBAC escalation audit workflow with copy-paste-ready commands, but it is held back by re-explained basics and duplicated reference content, missing inline validation feedback loops for its destructive steps, and bundle files that are never referenced from the body.

Suggestions

Link the existing bundle files from the body (e.g., under Tools and Resources add 'Full command reference: see references/api-reference.md; MITRE/NIST mapping: see references/standards.md; automation helper: see scripts/agent.py') so progressive disclosure actually routes readers to them.

Remove the duplicated dangerous-primitives content: keep the Overview bullets as a brief summary and point to references/api-reference.md for the full table, and drop the inlined MITRE ATT&CK Mapping table since standards.md already contains it.

Add inline validation feedback loops to the destructive steps (e.g., after Step 6's auth can-i confirm, branch on failure; after applying the PoC pod, verify logs before declaring escalation proven) to satisfy the destructive-workflow validation requirement.

DimensionReasoningScore

Conciseness

The Workflow steps are lean executable commands, but the Overview re-explains RBAC basics Claude already knows ('governs what every user and service account may do via Role/ClusterRole rules...') and the dangerous-primitives list is duplicated as both Overview bullets and an end-of-file 'Dangerous RBAC Primitives Reference' table. Not 4 because the duplicated reference table and conceptual padding exceed 'minor' over-explanation; not 2 because the bulk is genuinely efficient command content rather than severely padded.

3 / 5

Actionability

Packed with copy-paste-ready, executable bash (kubectl, jq, grep, rbac-police) including a complete apply-able privileged-pod PoC manifest and krew/curl install commands covering the common audit cases. Not 4 because guidance is fully executable across the common cases rather than having material gaps.

5 / 5

Workflow Clarity

Seven steps are clearly sequenced and a final Validation Criteria checklist exists, but this is a destructive skill (Step 6 schedules a privileged host-mounting pod reading /etc/shadow) with no inline validate->fix->retry feedback loops; validation is largely post-hoc rather than per-step. Capped at 3 per the destructive-operations missing-feedback-loops rule; not 4 because the lack of inline recovery loops in a destructive context is more than a minor gap.

3 / 5

Progressive Disclosure

The body is well-sectioned (Overview, When to Use, Prerequisites, 7-step Workflow, reference tables), but bundle files references/api-reference.md, references/standards.md, and scripts/agent.py exist yet are never linked or signaled from the body, and the primitives list and MITRE table are inlined in SKILL.md despite standards.md already holding them. Not 4 because references are entirely unsignaled and content that belongs in separate files is inlined/duplicated; not 2 because section structure is solid rather than 'minimal'.

3 / 5

Total

14

/

20

Passed

Description

100%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

An exemplary description: concrete actions, named tools, explicit 'Use when' triggers, a keyword list, and a negative-boundary redirect to a sibling skill, all in third person. It cleanly answers what, when, and what-not-to-use-it-for with minimal conflict risk.

DimensionReasoningScore

Specificity

Lists multiple concrete actions ('Finds over-permissive RBAC roles and service-account token abuse paths', 'tracing which subjects can escalate toward cluster-admin') and names four specific tools (kubectl auth can-i, rbac-police, kubectl-who-can, rakkess), giving comprehensive coverage of the audit task. Not 4 because coverage is comprehensive rather than having minor gaps.

5 / 5

Completeness

Explicitly answers 'what' (finds over-permissive roles and token abuse paths, traces escalation toward cluster-admin) and 'when' ('Use when reviewing who can escalate privileges... hunting exploitable RoleBindings... or validating least privilege after an RBAC change') with concrete trigger phrases. Not 4 because both what and when are explicit and concrete, and a negative boundary is even provided.

5 / 5

Trigger Term Quality

Includes an explicit keyword list ('RBAC, ClusterRoleBinding, service account token, auth can-i, rbac-police, escalate, bind, impersonate') plus natural trigger phrases ('reviewing who can escalate privileges', 'validating least privilege after an RBAC change') with synonyms. Not 4 because natural terms and synonyms are comprehensive for the domain.

5 / 5

Distinctiveness Conflict Risk

Occupies a clear niche (Kubernetes RBAC privilege-escalation auditing) and explicitly redirects the adjacent task elsewhere ('Do not use for designing and applying hardened RBAC - use implementing-rbac-hardening-for-kubernetes'), minimizing conflict with sibling skills. Not 4 because the explicit negative boundary drives conflict risk to minimal.

5 / 5

Total

20

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

15

/

16

Passed

Repository

mukul975/Anthropic-Cybersecurity-Skills

Path

skills/auditing-kubernetes-rbac-privilege-escalation/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.