用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-ocp-v170-3-2-1命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-ocp-v170-3.2.1 |
| description | Ensure minimal audit policy created (Manual) |
| category | cis-openshift |
| version | 1.7.0 |
| author | cyberstrike-official |
| tags | ["cis","openshift","kubernetes","redhat","control-plane-config","logging"] |
| cis_id | 3.2.1 |
| cis_benchmark | CIS Red Hat OpenShift Container Platform Benchmark v1.7.0 |
| tech_stack | ["kubernetes","openshift","redhat"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
Kubernetes can audit the details of requests made to the API server.
Logging is an important detective control for all systems, to detect potential unauthorized access.
Audit logs will be created on the master nodes, which will consume disk space. Care should be taken to avoid generating too large volumes of log information as this could impact the available of the cluster nodes.
In OpenShift, auditing of the API Server is on by default. Audit provides a security-relevant chronological set of records documenting the sequence of activities that have affected the system by individual users, administrators, or other components of the system. Audit works at the API server level, logging all requests coming to the server.
Each audit log contains two entries:
The request line containing:
The response line containing:
You can view logs for the OpenShift Container Platform API server or the Kubernetes API server for each master node.
Use the following command to view the audit log profile:
oc get apiserver cluster -o json | jq .spec.audit.profile
Verify the result is not None, which means audit logging is disabled.
Review the audit log configuration for the OpenShift and Kubernetes API servers using the following commands:
oc get cm -n openshift-apiserver config -o json | jq -r '.data."config.yaml"' | jq .apiServerArguments
oc get cm -n openshift-kube-apiserver config -o json | jq -r '.data."config.yaml"' | jq .apiServerArguments
Review the audit policies for the OpenShift and Kubernetes API servers using the following commands:
oc get cm -n openshift-apiserver audit -o json | jq -r
oc get cm -n openshift-kube-apiserver kube-apiserver-audit-policies -o json | jq -r
Verify the returned configuration and ensure it aligns with data retention and storage requirements for the deployment.
Use the following command to view Kubernetes API server audit logs:
oc adm node-logs --role=master --path=kube-apiserver/
Verify logs are returned.
Use the following command to view OpenShift API server audit logs:
oc adm node-logs --role=master --path=openshift-apiserver/
Verify logs are returned.
None.
Auditing logging is enabled by default, using the Default audit profile.
Please reference the OpenShift audit logging documentation for more information on various profiles and configuration guidance.
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 8.2 Collect Audit Logs | * | * | * |
| v7 | 6.2 Activate audit logging | * | * | * |
| Techniques / Sub-techniques | Tactics | Mitigations |
|---|---|---|
| T1543 | TA0003, TA0004 | M1026 |
Level 1 (Manual)