cyberstrikeus/cyberstrike/cis-oke-v180-3-1-4

Claude Code and agent skill by cyberstrikeus/cyberstrike

Trust tier 3
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
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-oke-v180-3-1-4

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-oke-v180-3-1-4.

CIS OKE Benchmark v1.8.0 - Control 3.1.4

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 writable by only the administrators on the system.

Impact

None.

Audit Procedure

Method 1

First, SSH to the relevant worker node.

To check to see if the Kubelet Service is running:

bash
sudo systemctl status kubelet

The output should return Active: active (running) since..

Run the following command on each node to find the appropriate Kubelet config file:

bash
ps -ef | grep kubelet

The output of the above command should return something similar to --config /etc/kubernetes/kubelet.conf which is the location of the Kubelet config file.

Run the following command:

bash
stat -c %U:%G /etc/kubernetes/kubelet.conf

The output of the above command is the Kubelet config file's ownership. Verify that the ownership is set to root:root.

Method 2

Create and Run a Privileged Pod.

You will need to run a pod that is privileged enough to access the host's file system. This can be achieved by deploying a pod that uses the hostPath volume to mount the node's file system into the pod.

Here's an example of a simple pod definition that mounts the root of the host to /host within the pod:

yaml
apiVersion: v1
kind: Pod
metadata:
name: file-check
spec:
volumes:
- name: host-root
hostPath:
path: /
type: Directory
containers:
- name: nsenter
image: busybox
command: ["sleep", "3600"]
volumeMounts:
- name: host-root
mountPath: /host
securityContext:
privileged: true

Save this to a file (e.g., file-check-pod.yaml) and create the pod:

bash
kubectl apply -f file-check-pod.yaml

Once the pod is running, you can exec into it to check file ownership on the node:

bash
kubectl exec -it file-check -- sh

Now you are in a shell inside the pod, but you can access the node's file system through the /host directory and check the ownership of the file:

bash
ls -l /host/etc/kubernetes/kubelet.conf

Verify that the ownership is set to root:root.

Remediation

Run the following command (using the config file location identified in the Audit step):

bash
chown root:root /etc/kubernetes/kubelet.conf

Default Value

See the OKE documentation for the default value.

References

  1. https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/
  2. https://docs.cloud.oracle.com/en-us/iaas/Content/ContEng/Concepts/contengoverview.htm

CIS Controls

Controls VersionControlIG 1IG 2IG 3
v85.4 Restrict Administrator Privileges to Dedicated Administrator 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 reviewPassed

Quality evaluation

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

Source

Popularity

Repository stars
2,916
Repository forks
457
7-day trend score
40

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-oke-v180-3-1-4/badge)](https://verified-skill.com/skills/cyberstrikeus/cyberstrike/cis-oke-v180-3-1-4)

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