用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-oke-v150-4-5-2命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-oke-v150-4.5.2 |
| description | Apply Security Context to Your Pods and Containers (Manual) |
| category | cis-oke |
| version | 1.5.0 |
| author | cyberstrike-official |
| tags | ["cis","oke","kubernetes","oci","policies","general-policies","security-context"] |
| cis_id | 4.5.2 |
| cis_benchmark | CIS Oracle Cloud Infrastructure Container Engine for Kubernetes (OKE) Benchmark v1.5.0 |
| tech_stack | ["kubernetes","oci","oke"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
Apply Security Context to Your Pods and Containers.
A security context defines the operating system security settings (uid, gid, capabilities, SELinux role, etc.) applied to a container. When designing your containers and pods, make sure that you configure the security context for your pods, containers, and volumes. A security context is a property defined in the deployment yaml. It controls the security parameters that will be assigned to the pod/container/volume. There are two levels of security context: pod level security context and container level security context.
A pod or container that runs with overly permissive security settings could compromise the host operating system, other containers in the pod, or other pods in the cluster. Using appropriately restrictive security contexts helps to enforce the principle of least privilege and reduce the attack surface.
If you incorrectly apply security contexts, you may have trouble running the pods.
Review the pod definitions in your cluster and verify that you have security contexts set as appropriate.
Check the security context settings for all pods and containers:
kubectl get pods --all-namespaces -o json | jq '.items[].spec.containers[].securityContext'
Also review pod-level security context:
kubectl get pods --all-namespaces -o json | jq '.items[].spec.securityContext'
Verify that pods and containers have appropriate security context settings including:
runAsNonRoot: truereadOnlyRootFilesystem: trueallowPrivilegeEscalation: falseFollow the Kubernetes documentation and apply security contexts to your pods. For a suggested list of security contexts, you may refer to the CIS Security Benchmark for Docker Containers.
Example PodSecurityPolicy with restricted settings:
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: restricted
By default, there are no security contexts applied to pods and containers.
Security contexts provide a mechanism for controlling the security parameters at the pod and container level. Properly configured security contexts help enforce least privilege and reduce the attack surface of containerized workloads.
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 4.1 Establish and Maintain a Secure Configuration Process | * | * | * |
| v7 | 5.1 Establish Secure Configurations | * | * | * |
| Techniques / Sub-techniques | Tactics | Mitigations |
|---|---|---|
| T1556, T1611 | TA0004, TA0006 | M1048 |
Level 1 (Manual)