Kubernetes Security Hardening

Kubernetes Security Hardening is a skill for Claude Code, Codex from niels-emmer/myace. It costs 34 tokens per session (455 once invoked), scanned A, original, MIT.

A checklist for reducing the damage a compromised Kubernetes workload or stolen credential could cause. It covers pod restrictions, permissions, network traffic, service accounts, and secret storage.

In plain words
What is it for?
Use it when creating namespaces, granting Kubernetes access, handling secrets, or tightening a workload's permissions and network connections.
Why use it?
It helps prevent workloads from gaining unnecessary cluster access or communicating freely after a compromise. It also replaces removed or unsafe Kubernetes security approaches with current controls.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for aider. Also seen: mentions Codex; built for aider; mentions OpenCode.

Good fit Use it when creating namespaces, granting Kubernetes access, handling secrets, or tightening a workload's permissions and network connections.

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

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 Hardening

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/niels-emmer/myace/kubernetes-security-hardening"><img src="https://agentmods.dev/badge/skills/niels-emmer/myace/kubernetes-security-hardening.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 455 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.00034 $0.00455
Opus 5.5 $0.00014 $0.00182
Sonnet 5.5 $0.00007 $0.00091
Haiku 4.5 $0.00003 $0.00046

Measured yesterday against content hash 0f1f15aa9335, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Kubernetes Security Hardening 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 yesterday.

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.

collections/additional/kubernetes/skills/kubernetes-security-hardening/SKILL.md · 31 lines

What it actually says

Purpose

Reduce the blast radius of a compromised pod and of a misused credential.

When to use it

When creating a namespace, granting access, handling secrets, or reviewing a workload that needs extra privileges.

Checklist

  • Pod Security Admission: label each namespace with an enforce level (target restricted) and a warn/audit level one step stricter while migrating. PodSecurityPolicy was removed in Kubernetes 1.25; do not reintroduce it.
  • Policy as code: use ValidatingAdmissionPolicy or an admission controller to enforce rules the built-in levels do not (trusted registries, required labels, no latest).
  • RBAC: namespaced Roles over ClusterRoles; bind to groups from the identity provider; no wildcards; audit cluster-admin bindings regularly; remember that create on pods or get on secrets is high privilege.
  • Service accounts: one per workload, automountServiceAccountToken: false unless the pod calls the API, short-lived projected tokens.
  • NetworkPolicy: default-deny ingress and egress per namespace, then allow DNS and the specific flows; verify the CNI enforces it.
  • Secrets: external secret store or encrypted-at-rest with a KMS provider; restrict who can read them; rotate on exposure.
  • Images: pinned by digest, signed or scanned, from a registry you control; no pulling arbitrary images into production namespaces.
  • Nodes and control plane: keep within supported versions, restrict API-server access and enable audit logging.

Expected output

A namespace and workload set whose privileges are explicit, enforced by admission, and documented where an exception exists.

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. yesterday First seen · 31 lines · 34 tokens per session scan A 0f1f15aa9335

Subscribe to this mod's changes

Kubernetes Security Hardening is a skill published in the GitHub repository niels-emmer/myace (1 stars, last pushed 2d ago), licensed MIT. It adds 34 tokens to every session and 455 once invoked, about $0.0001 per session on Opus 5.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-11-29.

Related

Kubernetes Security Hardening compared with skills from other repositories

Kubernetes Security Hardening next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Kubernetes Security Hardeningniels-emmer/myaceSkill12d agoMITA34Claude Code, Codex
implementing-rbac-hardening-for-kubernetesxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A41Claude Code, Codex
keloskelos-dev/kelosSkill361todayApache-2.0A128Claude Code, Codex
loom-dockercosmix/loomSkill66todayMITA9Claude Code
loom-kubernetescosmix/loomSkill66todayMITA35Claude Code
loom-kustomizecosmix/loomSkill66todayMITA15Claude Code
k8s-rbac-quotakudig-io/kudig-databaseSkill7todayApache-2.0A22Claude Code, Codex