review-security-k8s-pod

Analyze Kubernetes Pod security contexts for privilege escalation and workload isolation risks.

42|32|Updated May 7, 2026
One-click install
npx skills add https://github.com/gke-labs/kube-agents --skill review-security-k8s-pod
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-security-k8s-pod
Source: https://github.com/gke-labs/kube-agents/tree/main/.agents/skills/review-security-k8s-pod
Command: npx skills add https://github.com/gke-labs/kube-agents --skill review-security-k8s-pod

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the risk of misconfigured Kubernetes workloads that could lead to privilege escalation, host breakout, or unauthorized access to cluster resources.

Core Features & Use Cases

  • Security Context Analysis: Automatically validates PodSecurityContext and SecurityContext settings against industry best practices.
  • Risk Detection: Identifies dangerous configurations such as privileged containers, host namespace sharing, and excessive Linux capabilities.
  • Use Case: Before deploying a new microservice, use this Skill to scan the manifest to ensure it adheres to the principle of least privilege and prevents common container escape vectors.

Quick Start

Use the review-security-k8s-pod skill to analyze the security configuration of the deployment manifest located at k8s/web-app-deployment.yaml.

Frequently Asked Questions about review-security-k8s-pod

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit Kubernetes pod security configurations for privilege escalation risks?

To audit Kubernetes pod security, you analyze deployment manifests to detect privilege escalation risks and workload isolation vulnerabilities. This involves validating security contexts to identify dangerous configurations like privileged containers or excessive Linux capabilities.

What Kubernetes pod security risks should I check before deploying a microservice?

Before deploying a microservice, check for Kubernetes pod security risks like privileged containers, host namespace sharing, and excessive Linux capabilities. You should also verify service account hygiene and supply chain immutability across container specifications.

How do I enforce non-root execution and read-only filesystems in Kubernetes pods?

You can enforce non-root execution and read-only filesystems in Kubernetes pods by evaluating your container specifications against strict security contexts. This ensures workloads adhere to the principle of least privilege and prevents common container escape vectors.

Does this pod security audit work with standard Kubernetes deployment manifests?

Yes, this pod security audit works with standard Kubernetes deployment manifests. You simply point the analysis at your YAML file, such as k8s/web-app-deployment.yaml, to automatically validate PodSecurityContext and SecurityContext settings.

What is the best way to harden Kubernetes workloads against container escape vectors?

The best way to harden Kubernetes workloads against container escape vectors is to enforce strict adherence to capability dropping and non-root execution. Validating security contexts and service account hygiene across container specifications ensures workload isolation.