# Cis K8S V1110 5.2.13

> Minimize the admission of containers which use HostPorts (Manual)

- Skill: `cyberstrikeus/cis-k8s-v1110-5-2-13` (Agent Skill)
- Install (CLI): `npx skillmds@latest add cyberstrikeus/cis-k8s-v1110-5-2-13`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cyberstrikeus/cis-k8s-v1110-5-2-13/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: cyberstrikeus (https://skillmd.com/u/cyberstrikeus)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/cyberstrikeus/cis-k8s-v1110-5-2-13

---


# 5.2.13 Minimize the admission of containers which use HostPorts (Manual)

**NOTE:** This control was removed in CIS Kubernetes Benchmark v1.12.0.

## Profile Applicability

- Level 1 - Master Node

## Description

Do not generally permit containers which require the use of HostPorts.

## Rationale

Host ports connect containers directly to the host's network. This can bypass controls such as network policy.

There should be at least one admission control policy defined which does not permit containers which require the use of HostPorts.

If you need to run containers which require HostPorts, this should be defined in a separate policy and you should carefully check to ensure that only limited service accounts and users are given permission to use that policy.

## Impact

Pods defined with `hostPort` settings in either the container, initContainer or ephemeralContainer sections will not be permitted unless they are run under a specific policy.

## Audit

List the policies in use for each namespace in the cluster, ensure that each policy disallows the admission of containers which have `hostPort` sections.

## Remediation

Add policies to each namespace in the cluster which has user workloads to restrict the admission of containers which use `hostPort` sections.

## Default Value

By default, there are no restrictions on the use of HostPorts.

## References

1. https://kubernetes.io/docs/concepts/security/pod-security-standards/

