cyberstrikeus/cyberstrike/cis-ocp-v160-4-1-10

Claude Code and agent skill by cyberstrikeus/cyberstrike

Trust tier 2
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Ensure that the kubelet configuration file ownership is set to root:root (Automated)

Install

npx vskill@latest install cyberstrikeus/cyberstrike/cis-ocp-v160-4-1-10

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as cyberstrikeus/cyberstrike/cis-ocp-v160-4-1-10.

CIS Red Hat OpenShift Container Platform Benchmark v1.6.0 - Control 4.1.10

Profile Applicability

  • Level: 1

Description

Ensure that if the kubelet refers to a configuration file with the --config argument, that file is owned by root:root.

Rationale

The kubelet reads various parameters, including security settings, from a config file specified by the --config argument. If this file is specified you should restrict its file permissions to maintain the integrity of the file. The file should be owned by root:root.

Impact

None

Audit Procedure

In OpenShift 4, the kubelet configuration file is managed by the Machine Config Operator and is found at /var/lib/kubelet/config.json or '/var/data/kubelet/config.json' with ownership set to root:root. In OpenShift 4.13 and above Run the following command to check the permission:

bash
for node in $(oc get nodes -o jsonpath='{.items[*].metadata.name}')
do
oc debug node/${node} -- chroot /host stat -c %a /var/data/kubelet/config.json
done

For Earlier Versions Run the following command to check the permission:

bash
for node in $(oc get nodes -o jsonpath='{.items[*].metadata.name}')
do
oc debug node/${node} -- chroot /host stat -c %a /var/lib/kubelet/config.json
done

Verify that the ownership is set to root:root.

Remediation

None.

Default Value

By default, /var/lib/kubelet/config.json file is owned by root:root.

References

  1. https://docs.openshift.com/container-platform/latest/architecture/control-plane.html#understanding-machine-config-operator_control-plane
  2. https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/

CIS Controls

Controls VersionControlIG 1IG 2IG 3
v85.4 Restrict Administrator Privileges to Dedicated Administrator Accounts\*\*\*
v74.3 Ensure the Use of Dedicated Administrative Accounts\*\*\*

MITRE ATT&CK Mappings

Techniques / Sub-techniquesTacticsMitigations
T1083, T1222TA0005, TA0007M1026

Profile

Level 1 (Automated)

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
3,034
Repository forks
481
7-day trend score
45

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cyberstrikeus/cyberstrike/cis-ocp-v160-4-1-10/badge)](https://verified-skill.com/skills/cyberstrikeus/cyberstrike/cis-ocp-v160-4-1-10)

Something wrong with this skill or its page? Tell us.