k8s-security

Audit Kubernetes RBAC configurations and enforce security policies across clusters.

944|179|Updated Mar 23, 2025
One-click install
npx skills add https://github.com/rohitg00/kubectl-mcp-server --skill k8s-security
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: k8s-security
Source: https://github.com/rohitg00/kubectl-mcp-server/tree/main/kubernetes-skills/claude/k8s-security
Command: npx skills add https://github.com/rohitg00/kubectl-mcp-server --skill k8s-security

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Audit Kubernetes RBAC configurations, enforce policies, and manage secrets across clusters and namespaces to reduce security risks and simplify compliance.

Core Features & Use Cases

  • RBAC auditing: Inventory roles, bindings, and permissions to surface risky configurations.
  • Policy enforcement: Integrate with Kyverno/Gatekeeper to validate and enforce security policies.
  • Secret management: Review, restrict, and rotate secrets to minimize exposure.
  • Use Case: Security teams perform routine RBAC reviews across multiple clusters, identify cluster-admin bindings, wildcard verbs, and secrets access for remediation.

Quick Start

Run the k8s-security skill with your MCP-enabled tooling to start an RBAC audit. Example: initialize an audit context, run get_cluster_role_bindings and get_role_bindings to collect findings, then review and remediate.

Frequently Asked Questions about k8s-security

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

FAQPage Schema
How do I audit Kubernetes RBAC configurations across multiple clusters?

To audit Kubernetes RBAC across multiple clusters, you can run this skill to inventory roles, bindings, and permissions. It collects findings by retrieving cluster role bindings and role bindings to identify risky configurations for remediation.

What is the best way to identify risky Kubernetes role bindings and wildcard verbs?

The best way to identify risky Kubernetes role bindings and wildcard verbs is to perform an RBAC audit. This skill inventories permissions to surface excessive access like cluster-admin bindings and wildcard verbs for security remediation.

Can I enforce security policies in Kubernetes using Kyverno or Gatekeeper?

Yes, you can enforce security policies in Kubernetes using Kyverno or Gatekeeper. This skill integrates with both tools to validate and enforce security policies across your clusters and namespaces.

How do I review and restrict Kubernetes secrets access to minimize exposure?

To review and restrict Kubernetes secrets access, this skill provides secret management features to review, restrict, and rotate secrets. This minimizes exposure and simplifies compliance across clusters.

Does this RBAC audit tool require any specific dependencies to run?

No, this RBAC audit tool does not require any specific dependencies to run. You can use it with your MCP-enabled tooling to initialize an audit context and start collecting RBAC findings immediately.