k8s-security

Audit Kubernetes and OpenShift clusters for security posture and compliance.

3|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/kcns008/cluster-skills --skill k8s-security-kcns008
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: k8s-security
Source: https://github.com/kcns008/cluster-skills/tree/main/.claude/skills/k8s-security
Command: npx skills add https://github.com/kcns008/cluster-skills --skill k8s-security-kcns008

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires kubectl, jq, and includes scripts (resource) components.

What problem does it solve?

Kubernetes and OpenShift security assessment, hardening, and compliance. The skill provides a structured framework for auditing cluster posture, enforcing security standards, and guiding remediation.

Core Features & Use Cases

  • Security posture assessment across Kubernetes and OpenShift clusters
  • Policy-driven hardening including Pod Security Standards, RBAC, NetworkPolicy, and Secrets management
  • Compliance checks (CIS benchmarks, SOC2, PCI-DSS) and incident investigation
  • Automated checks using prebuilt scripts to produce deterministic outputs
  • Use case: baseline security audit and remediation planning for mid-size clusters

Quick Start

  • Install required tools: kubectl, jq, Trivy, kyverno CLI, kubescape
  • Run the security-audit.sh script to generate a baseline security report
  • Review and apply RBAC changes and Pod Security contexts as guided

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 cluster security posture for CIS benchmark compliance?

You can audit Kubernetes cluster security posture for CIS benchmark compliance by running script-driven checks against the cluster to produce deterministic outputs identifying Pod Security, RBAC, and Secrets configuration gaps.

What do I need to harden OpenShift security using automated checks?

To harden OpenShift security using automated checks, you need kubectl and jq installed locally, plus access to cluster resources to run scripts that evaluate network policies, RBAC, and workload security contexts.

How does a Kubernetes security audit handle network policy and RBAC enforcement?

A Kubernetes security audit handles network policy and RBAC enforcement by applying deterministic, script-driven checks that validate existing configurations and provide structured remediation guidance to enforce security controls.

Can I use this approach for baseline security assessment in mid-size Kubernetes clusters?

Yes, you can use this approach for baseline security assessment in mid-size Kubernetes clusters, as it provides a structured framework for auditing cluster posture and guiding remediation across cluster-wide governance and workloads.

What is the best way to automate Kubernetes compliance checks for SOC2 and PCI-DSS?

The best way to automate Kubernetes compliance checks for SOC2 and PCI-DSS is to execute prebuilt security-audit scripts that systematically evaluate cluster configurations against these standards and generate baseline reports.

Why should I review RBAC and Pod Security contexts after a Kubernetes security audit?

You should review RBAC and Pod Security contexts after a Kubernetes security audit because the script-driven checks identify policy violations, and applying the guided remediation enforces necessary workload security and compliance.