Skip to content
Back to skills

Cis Gke V170 4.2.1

ASecurity

Ensure that the cluster enforces Pod Security Standard Baseline profile or stricter for all namespaces (Manual)

  • 3,518 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 3, 2026
securitygobashnodekubernetesgcpsecurity

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add CyberStrikeus/CyberStrike --skill cis-gke-v170-4.2.1 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cis Gke V170 4.2.1?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cis Gke V170 4.2.1
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cyberstrikeus-cis-gke-v170-4-2-1/badge)](https://www.skillsdirectory.com/skills/cyberstrikeus-cis-gke-v170-4-2-1)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cis-gke-v170-4.2.1
description: "Ensure that the cluster enforces Pod Security Standard Baseline profile or stricter for all namespaces (Manual)"
category: cis-gke
version: "1.7.0"
author: cyberstrike-official
tags: [cis, gke, kubernetes, gcp, pod-security, admission-control, pod-security-standards]
cis_id: "4.2.1"
cis_benchmark: "CIS Google Kubernetes Engine (GKE) Benchmark v1.7.0"
tech_stack: [kubernetes, gcp, gke]
cwe_ids: []
chains_with: []
prerequisites: []
severity_boost: {}
---

# 4.2.1 Ensure that the cluster enforces Pod Security Standard Baseline profile or stricter for all namespaces. (Manual)

## Profile Applicability

- Level 1

## Description

The Pod Security Standard Baseline profile defines a baseline for container security. You can enforce this by using the built-in Pod Security Admission controller.

## Rationale

Without an active mechanism to enforce the Pod Security Standard Baseline profile, it is not possible to limit the use of containers with access to underlying cluster nodes, via mechanisms like privileged containers, or the use of hostPath volume mounts.

## Impact

Enforcing a baseline profile will limit the use of containers.

## Audit

```bash
diff

<(kubectl get namespace -l pod-security.kubernetes.io/enforce=baseline -o jsonpath='{range .items[]}{.metadata.name}{"\n"}')

<(kubectl get namespace -o jsonpath='{range .items[]}{.metadata.name}{"\n"}')
```

## Remediation

Ensure that Pod Security Admission is in place for every namespace which contains user workloads.
Run the following command to enforce the Baseline profile in a namespace:

```bash
kubectl label namespace pod-security.kubernetes.io/enforce=baseline
```

## Default Value

By default, Pod Security Admission is enabled but no policies are in place.

## References

None specified.

## CIS Controls

| Controls Version | Control                                                                            | IG 1 | IG 2 | IG 3 |
| ---------------- | ---------------------------------------------------------------------------------- | ---- | ---- | ---- |
| v8               | 16.7 Use Standard Hardening Configuration Templates for Application Infrastructure |      | \*   | \*   |
| v7               | 5.1 Establish Secure Configurations                                                | \*   | \*   | \*   |
| v7               | 5.2 Maintain Secure Images                                                         |      | \*   | \*   |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.