OpenParable
Skip to content
← Back to skills

Cis Aks V170 4.6.3

DevOps & Security
cis-aks-v170-4.6.3

Cis Aks V170 4.6.3 is an Agent Skill for devops & security published in the CyberStrikeus/CyberStrike repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

The default namespace should not be used (Automated)

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/CyberStrikeus/CyberStrike/blob/HEAD/.cyberstrike/skill/CIS_benchmarks/Server_Software/Kubernetes/CIS_Azure_Kubernetes_Service_AKS_Benchmark_v1.7.0/cis-aks-v170-4.6.3/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cis-aks-v170-4-6-3, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

4.6.3 The default namespace should not be used (Automated)

Profile Applicability

  • Level 2

Description

Kubernetes provides a default namespace, where objects are placed if no namespace is specified for them. Placing objects in this namespace makes application of RBAC and other controls more difficult.

Rationale

Resources in a Kubernetes cluster should be segregated by namespace, to allow for security controls to be applied at that level and to make it easier to manage resources.

Audit Procedure

Run the following command to list objects in the default namespace:

kubectl get all -n default

The only entries there should be system-managed resources such as the kubernetes service.

Remediation

Ensure that namespaces are created to allow for appropriate segregation of Kubernetes resources and that all new resources are created in a specific namespace.

kubectl create namespace <namespace_name>

Default Value

Unless a namespace is specified, all Kubernetes resources are created in the default namespace.

References

  1. https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/

CIS Controls

Controls VersionControlIG 1IG 2IG 3
v84.6 Securely Manage Enterprise Assets and Software●●●
v714 Controlled Access Based on the Need to Know

Profile Applicability

  • Level 2