kubernetes-security

kubernetes-security is a skill for Claude Code, Codex from GoldenWing-360/claude-security-skills. It costs 88 tokens per session (3,504 once invoked), scanned A, original, MIT.

A security checklist for a Kubernetes cluster, the system that runs and manages containerised applications. It covers access control, network rules, secrets, admission checks, image scanning and audit logs.

In plain words
What is it for?
Use it when creating or inheriting a cluster, adding a team or workload, responding to a Kubernetes security advisory, or performing a periodic security review.
Why use it?
It helps find common ways a cluster could be exposed or misused, especially when its security settings are undocumented or workloads share one cluster.

Skill for Claude CodeCodex

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

Good fit Use it when creating or inheriting a cluster, adding a team or workload, responding to a Kubernetes security advisory, or performing a periodic security review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/goldenwing-360/claude-security-skills/kubernetes-security
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 GoldenWing-360/claude-security-skills --skill kubernetes-security
Clone the repo
git clone --depth 1 https://github.com/GoldenWing-360/claude-security-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 kubernetes-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/goldenwing-360/claude-security-skills/kubernetes-security/github.svg)](https://agentmods.dev/skills/goldenwing-360/claude-security-skills/kubernetes-security)
Your own site
<a href="https://agentmods.dev/skills/goldenwing-360/claude-security-skills/kubernetes-security"><img src="https://agentmods.dev/badge/skills/goldenwing-360/claude-security-skills/kubernetes-security/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 kubernetes-security

Your own site · 80×15
<a href="https://agentmods.dev/skills/goldenwing-360/claude-security-skills/kubernetes-security"><img src="https://agentmods.dev/badge/skills/goldenwing-360/claude-security-skills/kubernetes-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,504 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.00088 $0.03504
Opus 5 $0.00044 $0.01752
Sonnet 5 $0.00018 $0.00701
Haiku 4.5 $0.00009 $0.00350

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

Security

Grade A, and why

kubernetes-security 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 11d ago.

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.

kubernetes-security/SKILL.md · 353 lines

How it starts

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

Kubernetes Security

A pragmatic baseline for a single Kubernetes cluster running a small-team workload. Skews toward "I have a cluster and need it to not be the cause of an incident" — not a full CIS Benchmark for regulated environments. Most managed-K8s providers ship sensible defaults at the control-plane layer; the data-plane (your workloads) is where the work is.

When to invoke

  • Provisioning a new cluster
  • Inheriting a cluster with no documented hardening
  • Before adding a new tenant / team / workload to a shared cluster
  • After a K8s security advisory affecting your version
  • Periodic re-audit (quarterly)
  • Multi-tenant SaaS where customer workloads share infrastructure

Step 1 — Cluster baseline

Before workload hardening, the cluster itself.

# What version? Is it supported?
kubectl version --short
# K8s has a ~14-month support window. Unsupported = unpatched CVEs.

# Who can reach the API?
kubectl cluster-info
# For managed clusters, check the provider's "API endpoint" access setting:
# - Private endpoint, restricted CIDRs, or behind a bastion is correct
# - "Public, open to 0.0.0.0/0" is a finding

# Audit log enabled?
# For EKS/GKE/AKS: check the cluster's "audit logging" / "control-plane logging" setting
# Self-hosted: --audit-log-path on the API server

Patterns:

  • Restrict the API endpoint. Public + open is the worst default. Use private endpoint + bastion, or public + CIDR allowlist + IAM auth at minimum.
  • Enable control-plane audit logging. Without it, an incident has no record. Ship to a log destination outside the cluster (so a compromise cannot wipe its own audit trail).
  • Pin to a supported version, automate patching to within the support window.
  • Encrypt etcd at rest. Default-on for EKS, GKE, AKS. Self-hosted: configure --encryption-provider-config.

Step 2 — Pod Security Standards

Since K8s 1.25, Pod Security Admission is built-in. There are three policy levels:

Level What it allows When to use
Privileged Everything System namespaces only (kube-system, ingress controllers that need it)
Baseline No privileged escalation, no host networking, no hostPath Default for most workloads
Restricted The above plus: non-root user, read-only root filesystem, drop all capabilities, seccomp profile Production application workloads

Read the full file on GitHub · 353 lines

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. 11d ago First seen · 353 lines · 88 tokens per session scan A da8dbb07bea6

Subscribe to this mod's changes

kubernetes-security is a skill published in the GitHub repository GoldenWing-360/claude-security-skills (17 stars, last pushed 1mo ago), licensed MIT. It adds 88 tokens to every session and 3,504 once invoked, about $0.0004 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-08-30.

Related

Other skills, from other repositories

nemoclaw-setup

Install and configure NVIDIA NemoClaw (sandboxed OpenClaw agent platform) on Linux. Handles cloudflared tunnels, Docker cgroup fixes, OpenShell, sandbox creation, remote access via Cloudflare Tunnel, and known bug workarounds. Use whenever the user mentions installing NemoClaw, setting up OpenClaw, configuring an…

jezweb/claude-skills · 91 tokens

dockerfile-scan

Scan a Dockerfile for insecure build patterns — running as root, unpinned or :latest base images, ADD from remote URLs, piping curl/wget into a shell, hardcoded secrets in ENV/ARG, world-writable chmod 777, and sudo usage. Use when the user asks to "review my Dockerfile", "is this container image secure", "lint my…

NovaCode37/claude-security-skills · 96 tokens

manage-mounts

Configure which host directories agent containers can access. View, add, or remove mount allowlist entries. Triggers on "mounts", "mount allowlist", "agent access to directories", "container mounts".

nanocoai/nanoclaw · 47 tokens

kubernetes-specialist

Use when deploying or managing Kubernetes workloads. Invoke to create deployment manifests, configure pod security policies, set up service accounts, define network isolation rules, debug pod crashes, analyze resource limits, inspect container logs, or right-size workloads. Use for Helm charts, RBAC policies…

Jeffallan/claude-skills · 79 tokens

devops-engineer

Creates Dockerfiles, configures CI/CD pipelines, writes Kubernetes manifests, and generates Terraform/Pulumi infrastructure templates. Handles deployment automation, GitOps configuration, incident response runbooks, and internal developer platform tooling. Use when setting up CI/CD pipelines, containerizing…

Jeffallan/claude-skills · 107 tokens

offensive-container-escape

Container escape and breakout techniques targeting Docker, containerd, and Podman runtimes. Covers privileged container breakout via host filesystem mount and nsenter, Docker socket abuse through /var/run/docker.sock, Linux capability exploitation including CAPSYSADMIN, CAPSYSPTRACE, and CAPNETADMIN, cgroup v1…

SnailSploit/Claude-Red · 196 tokens