kubernetes-security
Skill0 starsChanged 41 days agoMITView on GitHub
Use when auditing Kubernetes cluster, namespace, workload, or RBAC security posture. Mention "kubernetes security review", "is this pod secure", or "k8s hardening"; use admission-policy-review for authoring enforcement rules and runtime-security-review for detection after admission.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- kcns008/cluster-skillstheir own version, first seen Nov 8, 2026
- Masriyan/gemini-security-skillstheir own version, first seen Oct 25, 2026
- Garyson26/Trident-SecOps-Skillstheir own version, first seen Aug 29, 2026
- GoldenWing-360/claude-security-skillstheir own version, first seen May 12, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- GoldenWing-360/claude-security-skills★ 16same name
- kcns008/cluster-skills★ 4same name
- Masriyan/gemini-security-skills★ 4same name
- Garyson26/Trident-SecOps-Skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository45 other files it gives its agents.
- admission-policy-reviewSkill
- alert-rule-reviewSkill
- architecture-reviewSkill
- argocd-applicationsetSkill
- argocd-debugSkill
- argocdSkill
- cert-manager-debugSkill
- cicd-reviewSkill
- cilium-debugSkill
- ciliumSkill
- cluster-backupSkill
- dast-reviewSkill
- dockerfile-reviewSkill
- english-technical-messageSkill
- git-messageSkill
- gitops-reviewSkill
- go-bugfixSkill
- go-code-reviewSkill
- go-testing-reviewSkill
- grafana-dashboardsSkill
- helm-reviewSkill
- homelab-change-planSkill
- incident-analysisSkill
- ingressSkill
- interview-system-designSkill
- istio-debugSkill
- istioSkill
- kubernetes-autoscalingSkill
- kubernetes-debugSkill
- kubernetes-yaml-reviewSkill
- migration-planSkill
- observability-reviewSkill
- observability-stackSkill
- production-readinessSkill
- pr-reviewSkill
- root-cause-analysisSkill
- runbook-writerSkill
- runtime-security-reviewSkill
- secrets-managementSkill
- storage-debugSkill
- supply-chain-securitySkill
- terraform-reviewSkill
- upgrade-readinessSkill
- vaultSkill
- vulnerability-triageSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Read workload securityContext, ServiceAccount bindings, namespace labels, and relevant policies.
- Distinctive: line 22
Do not report a checklist item without showing its actual risk in context.
- Distinctive: line 26
Follow the Workflow, Safety rules, and Quality checklist below.
- Very specific: line 37
Use for a focused security audit of Kubernetes workloads, RBAC, or cluster configuration — distinct from a general manifest-quality review.
- Very specific: line 39
Use admission-policy-review instead when writing, reviewing, or rolling out Kyverno, Gatekeeper, or PSA enforcement.
- Distinctive: line 49
Check for, and explain the exploit path for each:
- Distinctive: line 88
Never print secret values, even to illustrate an exposure finding — describe the exposure without echoing the content.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Kubernetes Security
TL;DR checklist
- Review privilege, host access, identity, filesystem, and RBAC exposure.
- Explain the exploit path for each material gap.
- Rank findings by reachable risk and propose scoped controls.
Key read-only checks
- Read workload securityContext, ServiceAccount bindings, namespace labels, and relevant policies.
Common pitfalls
- Do not report a checklist item without showing its actual risk in context.
Agent procedure
Follow the Workflow, Safety rules, and Quality checklist below.
Quick references
- references/examples.md
- references/hardening.md
Last verified: unverified
When to use
Use for a focused security audit of Kubernetes workloads, RBAC, or cluster configuration —
distinct from a general manifest-quality review.
Use admission-policy-review instead when writing, reviewing, or rolling out Kyverno, Gatekeeper, or PSA
enforcement. Use runtime-security-review instead for Falco/Tetragon/Tracee detections.
Goal
Find concrete, exploitable security gaps and rank them by real-world risk, not just checklist compliance.
Workflow
Check for, and explain the exploit path for each:
- Privileged containers (
privileged: true,hostPID,hostIPC) — full or near-full node compromise if the container is compromised. - hostPath mounts — especially write access to sensitive host paths (
/,/var/run/docker.sock,/etc) — container escape vector. - hostNetwork — bypasses NetworkPolicy, exposes the pod on the node's network namespace.
- runAsRoot / missing runAsNonRoot — increases blast radius of a container compromise.
- Missing seccomp profile — no syscall filtering; recommend
RuntimeDefaultat minimum. - Missing readOnlyRootFilesystem — allows tampering with the container filesystem at runtime, complicates forensics.
- Missing capability drops (
drop: [ALL]plus only the specificaddneeded) — excess Linux capabilities widen the attack surface. - RBAC wildcards (
resources: ["*"],verbs: ["*"], especially bound broadly) — check who can do what, and whether it's the minimum needed. - Default ServiceAccount usage — implicit token mount; recommend
automountServiceAccountToken: falseunless the pod calls the API server, and a dedicated SA otherwise. :latestor floating image tags — undermines reproducibility and makes compromise harder to trace; recommend pinned digests.- Secret exposure — secrets mounted as env vars (visible via
describe pod/process env, and often leak into logs/crash dumps) versus mounted as files; secrets committed in plaintext in manifests/Helm values. - NetworkPolicy gaps — is there a default-deny policy, or can every pod in the namespace talk to every other pod (and possibly other namespaces) by default?
References
references/examples.md— bad → good security examples with the exploit path each fix closes.references/hardening.md— PSA labeling with version pinning, NSA/CISA + OWASP K8s Top 10 mapping, RBAC privilege-escalation vectors, network exposure taxonomy, namespace isolation limits, and read-only kubectl/jq audit one-liners.references/tools.md— optional local scanners (trivy, gitleaks, kube-linter, polaris, conftest) that can supplement this manual audit. Never install these automatically; only suggest running ones the user confirms are already available.
Safety rules
- This is a read-only audit skill: do not modify RBAC, SecurityContext, or NetworkPolicy resources on a live cluster.
- Never print secret values, even to illustrate an exposure finding — describe the exposure without echoing the content.
- Rank findings by actual exploitability (what an attacker could do), not just by "best practice says so."
Output format
## Critical (exploitable now)
<finding — exploit path — fix>
## High
## Medium
## Informational / hardening opportunitiesQuality checklist
- Every Critical/High finding states the concrete exploit path
- Secret values were never printed
- RBAC was checked for wildcards and broad bindings, not just presence of RBAC
- Default-deny NetworkPolicy status was explicitly checked
- No cluster resource was modified
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

