Garyson26/Trident-SecOps-Skills / skills/kubernetes-security
kubernetes-security
VerifiedKubernetes and container security skill for cluster hardening, RBAC review, admission control (OPA Gatekeeper, Kyverno), Pod Security Standards, network policies, secrets management, runtime defense (Falco, Tetragon), image supply chain (cosign, SLSA, in-toto), and CIS benchmark compliance. Use to assess and harden clusters you operate.
Kubernetes Security
Authorization Boundary
- Require cluster context, namespace scope, and read-only kubeconfig before live queries.
- Avoid disruptive runtime probes on production; prefer staging or ephemeral clusters.
Hardening Workflow
- Inventory: API server flags, node OS, CNI, CSI, ingress, service mesh, admission plugins, controllers.
- Scan:
kube-bench,kubescape,trivy k8s,polaris,kubeaudit,popeye. - RBAC: enumerate
ClusterRole/RoleBinding; flag wildcard verbs,system:masters,escalate,bind,impersonate, secret reads from broad subjects. - Workloads: enforce Pod Security
restricted, drop capabilities, read-only rootfs, non-root UID, seccompRuntimeDefault, nohostPath/hostNetwork/hostPID. - Network: default-deny
NetworkPolicy; explicit egress to known services; mTLS via mesh where applicable. - Supply chain: signed images (
cosign verify), provenance attestations (SLSA), admission policy that blocks unsigned. - Runtime: Falco/Tetragon rules for exec-in-container, reverse shells, crypto miners, sensitive mounts.
Multi-Tenant Patterns
- Namespace-per-tenant with quotas, limit ranges, and
NetworkPolicyisolation. - Separate node pools for untrusted workloads; gVisor or Kata for sandboxing.
- Per-tenant audit log filters; secrets via external KMS, never inline.
Output Contract
inventory.yaml,findings.csv,policies/(Gatekeeper/Kyverno),netpol/,runtime/falco-rules.yaml.runbook.md: incident response for compromised pod, leaked token, miner detection.gap.md: missing telemetry and proposed fixes.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 468k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 468k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 468k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |