gke-workload-security
Skill by google
Audits and hardens workload-level security for Google Kubernetes Engine applications and namespaces. It covers a cluster audit script, Network Policies, GKE Sandbox, Pod Security Standards and Secret Manager CSI mounts.
Install gke-workload-security
Built from the published package, never by AI.
git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/cloud/gke-workload-security ~/.claude/skills/gke-workload-securityRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/cloud/gke-workload-security ~/.gemini/antigravity-cli/skills/gke-workload-securityAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install gke-workload-security in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The gke-workload-security skill audits, configures and hardens workload-level security for Google Kubernetes Engine (GKE) applications and namespaces. It includes an audit script, audit_cluster.sh, that checks Workload Identity, Network Policy, Shielded Nodes, Binary Authorization and Private Cluster configuration. It also covers default-deny Network Policies, Dataplane V2 network logging, isolating high-risk pods with GKE Sandbox (gVisor), enforcing Pod Security Standards with namespace labels, and mounting Secret Manager secrets through the CSI driver.
The skill is for people who need to assess GKE workload security posture, isolate namespaces, apply pod security standards or configure network policies and secret volume mounts. It routes Workload Identity tasks to the gke-workload-identity skill and cluster-level flags to gke-platform-security. The audit script requires an authenticated gcloud CLI and jq.
Written from the project's SKILL.md and checked against it.
What it can do
- Security auditRuns audit_cluster.sh to check Workload Identity, Network Policy, Shielded Nodes, Binary Authorization and Private Cluster settings.
- Network PoliciesEnables Network Policy enforcement and applies a default-deny policy to isolate a namespace.
- Network policy loggingConfigures a NetworkLogging resource to log allowed and denied connections with Dataplane V2.
- GKE Sandbox isolationRuns high-risk pods in gVisor by adding runtimeClassName: gvisor to the pod spec.
- Pod Security StandardsLabels namespaces to enforce the restricted Pod Security Standard profile.
- Secret Manager CSI mountsMounts Google Cloud Secret Manager secrets as read-only volumes using a SecretProviderClass.
- Workload Identity setupWalks through creating a KSA, binding it to a GSA and annotating it for workloads that need a dedicated GSA.
What you need
- Authenticated gcloud CLI
- jq installed
- Secret Manager CSI driver enabled on the cluster
- GKE Dataplane V2 for network policy logging
Try asking
- Run a workload security audit on my GKE cluster named prod-cluster in us-central1.
- Apply a default-deny Network Policy to the payments namespace.
- Mount the Secret Manager secret db-password into my app pod as a read-only volume.
Good to know
- The Network Policy enablement step is not required on Dataplane V2 and may fail if run there.
- Enabling Shielded Nodes and GKE Sandbox at the cluster level is covered by the gke-platform-security skill, not this one.
- Workload Identity IAM bindings are covered by the gke-workload-identity skill.
- The NetworkLogging example uses the v1alpha1 API version.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/cloud/gke-workload-security/SKILL.md, skills/cloud/gke-workload-security/scripts/audit_cluster.sh. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
assets/default-deny-netpol.yaml235 B -
assets/workload-identity-pod.yaml1 KB -
references/attribution.md2 KB -
scripts/audit_cluster.sh2 KB
Alternatives to gke-workload-security
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
gke-workload-security: common questions
What does the GKE workload security audit check?
The audit_cluster.sh script checks Workload Identity, whether Network Policy is enabled, Shielded Nodes, Binary Authorization and Private Cluster configuration.
Which skill should I use for Workload Identity or cluster-level security flags?
Use gke-workload-identity for Workload Identity IAM and KSA/GSA bindings. Use gke-platform-security for cluster-level flags such as database encryption, security posture, RBAC and Shielded Nodes.
Does this skill cover Secret Manager secrets?
Yes. It shows how to mount Google Cloud Secret Manager secrets as volumes in pods using the Secret Manager CSI driver and a SecretProviderClass.
How do I install gke-workload-security?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is gke-workload-security free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is gke-workload-security safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to gke-workload-security?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
