kubernetes-security

Automate Kubernetes and OpenShift security assessments and compliance checks.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Kubernetes and OpenShift security posture is complex and manual, leading to gaps in protection. This skill automates security assessments, hardening guidance, and compliance checks to reduce risk and speed up secure operations.

Core Features & Use Cases

  • Automated security posture assessment across clusters and workloads using industry-standard tools.
  • Policy enforcement and hardening guidance for RBAC, NetworkPolicy, and Pod Security Standards.
  • Compliance verification against CIS benchmarks, SOC2, PCI-DSS, and incident investigation workflows.

Quick Start

Run the kubernetes-security skill against your cluster using the included scripts to perform a posture audit and generate a security report.

Frequently Asked Questions about kubernetes-security

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

FAQPage Schema
How do I automate Kubernetes security posture assessments and compliance checks?

Automate Kubernetes security posture assessments by running scripts that validate cluster configurations against CIS benchmarks, SOC2, and PCI-DSS. These scripts scan workloads and enforce policies using tools like Trivy, Kyverno, and kube-bench to generate detailed compliance reports.

Can I run CIS benchmark checks on OpenShift clusters for SOC2 and PCI-DSS compliance?

Yes, you can run CIS benchmark checks on OpenShift clusters for SOC2 and PCI-DSS compliance. The skill supports both Kubernetes and OpenShift environments, applying automated validation rules to verify security controls and generate audit-ready compliance documentation.

Does this skill require kubectl and jq to perform vulnerability scans on clusters?

Yes, kubectl and jq are required dependencies to perform vulnerability scans and parse cluster data. Additionally, security tooling such as Trivy, OPA Gatekeeper, Kubescape, and kube-bench must be installed to execute the underlying benchmark checks and policy validations.

What's the best way to enforce Pod Security Standards and RBAC policies in Kubernetes?

The best way to enforce Pod Security Standards and RBAC policies is through automated policy frameworks like Kyverno and OPA Gatekeeper. This skill applies hardening guidance by validating configurations against these frameworks to ensure workloads meet baseline security controls.

How does automated hardening guidance work for NetworkPolicy and RBAC configurations?

Automated hardening guidance works by evaluating existing NetworkPolicy and RBAC configurations against industry security standards. The scripts identify overly permissive rules and output actionable hardening recommendations to restrict network traffic and privilege escalation across cluster workloads.

Do I need Kyverno or OPA Gatekeeper installed before running cluster security audits?

Yes, you need policy enforcement tools like Kyverno or OPA Gatekeeper installed in your cluster to validate custom policies during security audits. The skill leverages these frameworks alongside kube-bench and Kubescape to perform comprehensive posture assessments and policy validations.