leoyeai/openclaw-master-skills/phy-k8s-security-audit
Claude Code and agent skill by leoyeai/openclaw-master-skills
- community
Checking that the SKILL.md file is still in the repository.
Kubernetes manifest security auditor (CIS Kubernetes Benchmark). Scans all YAML/JSON manifests in your repository for privileged containers, hostNetwork/hostPID/hostIPC, dangerous hostPath mounts, missing resource limits/probes, latest image tags, RBAC over-permission (cluster-admin bindings, wildcard verbs), secrets in env vars, missing NetworkPolicy, missing seccomp/AppArmor profiles. Maps findings to CIS Benchmark controls and PSS (Pod Security Standards). Zero dependencies beyond PyYAML. Zero competitors on ClawHub.
Install
npx vskill@latest install leoyeai/openclaw-master-skills/phy-k8s-security-auditSKILL.md
The same SKILL.md was published earlier as leoyeai/openclaw-master-skills/phy-k8s-security-audit.
phy-k8s-security-audit
Static security auditor for Kubernetes YAML manifests. Scans every Deployment, StatefulSet, DaemonSet, Pod, Job, CronJob, Role, ClusterRole, RoleBinding, ClusterRoleBinding, ServiceAccount, and NetworkPolicy in your repository against the CIS Kubernetes Benchmark v1.9 and Pod Security Standards (PSS). No cluster access required — works entirely on local manifest files.
Why Manifest Auditing Matters
- Tesla's Kubernetes cluster was cryptojacked because their dashboard had no auth and pods ran privileged
- Attackers with access to one container can escape to the node via
privileged: trueorhostPathmounts - Over-permissive RBAC (
cluster-admin) is the #1 post-exploit persistence technique automountServiceAccountToken: true(the default) leaks credentials into every pod
Checks: Pod / Container Level
| Check | Severity | CIS / PSS | |
|---|---|---|---|
privileged: true | CRITICAL | CIS 5.2.1 / PSS Restricted | |
allowPrivilegeEscalation: true or missing (default true) | HIGH | CIS 5.2.5 / PSS Restricted | |
runAsNonRoot missing or false | HIGH | CIS 5.2.6 / PSS Baseline | |
runAsUser: 0 (root) | HIGH | CIS 5.2.6 | |
hostNetwork: true | HIGH | CIS 5.2.4 / PSS Baseline | |
hostPID: true | HIGH | CIS 5.2.2 / PSS Baseline | |
hostIPC: true | HIGH | CIS 5.2.3 / PSS Baseline | |
hostPath volume mount | HIGH | CIS 5.2.11 | |
capabilities.add with dangerous caps (SYS_ADMIN, NET_ADMIN, ALL) | CRITICAL | CIS 5.2.8 | |
Missing capabilities.drop: [ALL] | MEDIUM | CIS 5.2.7 / PSS Restricted | |
Missing resource requests and limits | MEDIUM | CIS 5.2.13 | |
image: *:latest or no tag | MEDIUM | Best practice | |
imagePullPolicy: Never with mutable tag | MEDIUM | Best practice | |
Missing readinessProbe | LOW | Best practice | |
Missing livenessProbe | LOW | Best practice | |
Secrets in env values (plaintext) | HIGH | CIS 5.4.1 | |
Missing seccompProfile | MEDIUM | CIS 5.7.2 / PSS Restricted | |
Missing securityContext entirely | MEDIUM | CIS 5.7.1 | |
readOnlyRootFilesystem: false (or missing) | MEDIUM | PSS Restricted |
Checks: RBAC Level
| Check | Severity | CIS | |
|---|---|---|---|
ClusterRoleBinding to cluster-admin | CRITICAL | CIS 5.1.1 | |
Role/ClusterRole with verbs: ["*"] | HIGH | CIS 5.1.3 | |
Role/ClusterRole with resources: ["*"] | HIGH | CIS 5.1.3 | |
Role with secrets GET/LIST permission | HIGH | CIS 5.1.2 | |
ServiceAccount with automountServiceAccountToken: true in non-system namespace | MEDIUM | CIS 5.1.5 | |
| Default service account used (no explicit serviceAccountName) | MEDIUM | CIS 5.1.5 |
Checks: Network Level
| Check | Severity | CIS | |
|---|---|---|---|
| No NetworkPolicy in namespace (detected from file dir) | HIGH | CIS 5.3.2 | |
NetworkPolicy podSelector: {} (applies to all pods) without ingress rules | MEDIUM | Best practice | |
Service type NodePort without explicit justification comment | LOW | CIS 5.4.2 | |
Service type LoadBalancer exposing non-HTTP port | MEDIUM | CIS 5.4.2 |
Pod Security Standards Classification
Each Pod/Deployment spec is classified against PSS:
| Profile | Description | |
|---|---|---|
| Privileged | No restrictions — flag all workloads at this level | |
| Baseline | No privileged, no host namespaces, no hostPath — minimum for most apps | |
| Restricted | All of Baseline + non-root, no privilege escalation, seccomp, drop ALL caps |
Implementation
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/phy-k8s-security-audit/SKILL.md
Popularity
- Repository stars
- 2,157
- Repository forks
- 324
- 7-day trend score
- 43
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/leoyeai/openclaw-master-skills/phy-k8s-security-audit)