Skip to content
Back to skills

Cis Ocp Vm V100 1 9

ASecurity

Ensure kubevirt cache directory permission is set to 755 or more restrictive (Automated)

  • 2,182 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
securitygobashnodekubernetessecurity

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add CyberStrikeus/CyberStrike --skill cis-ocp-vm-v100-1-9 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cis Ocp Vm V100 1 9?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cis Ocp Vm V100 1 9
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cyberstrikeus-cis-ocp-vm-v100-1-9/badge)](https://www.skillsdirectory.com/skills/cyberstrikeus-cis-ocp-vm-v100-1-9)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cis-ocp-vm-v100-1-9
description: "Ensure kubevirt cache directory permission is set to 755 or more restrictive (Automated)"
category: cis-openshift-virtualization
version: "1.0"
author: cyberstrike-official
tags:
  [
    cis,
    openshift,
    kubernetes,
    openshift-virtualization,
    kubevirt,
    vm,
    platform-configuration,
    file-permissions,
    virt-handler,
    cache-directory,
  ]
cis_id: "1.9"
cis_benchmark: "CIS Redhat OpenShift Virtual Machine Extension Benchmark v1.0.0"
tech_stack: [kubernetes, openshift, openshift-virtualization, kubevirt]
cwe_ids: []
chains_with: []
prerequisites: []
severity_boost: {}
---

# CIS 1.9 — Ensure kubevirt cache directory permission is set to 755 or more restrictive

## Profile Applicability

- Level 1

## Description

Setting the `kubevirt` private directory to `755` or more restrictive limits access to security related administrative functionality to approved administrators.

## Rationale

This configuration ensures that the directory where virt-handler stores the virtual machine configuration for caching is restricted to administrators and Openshift Virtualization privileged node components.

## Impact

None.

## Audit Procedure

Directory permissions for the `virt-handler` pods, run the following command:

```bash
$ for pod in $(oc get po -n openshift-cnv -l kubevirt.io=virt-handler --no-headers -o custom-columns=":metadata.name"); do oc exec $pod -ti -n openshift-cnv -- stat -c %a /var/run/kubevirt-private ;done
```

Should return `755` or if the file doesn't exist then the corresponding feature gate is not enabled and this check can be safely ignored.

## Remediation

Update the permissions on each virt-handller using `chmod`:

```bash
$ oc exec <virt-handler-pod> -ti -n openshift-cnv -- chmod 755 /var/run/kubevirt-private
```

## Default Value

The default permissions of this directory are `755`.

## References

- CIS Redhat OpenShift Virtual Machine Extension Benchmark v1.0.0, Section 1.9

## CIS Controls

| Controls Version | Control                                               | IG 1 | IG 2 | IG 3 |
| ---------------- | ----------------------------------------------------- | ---- | ---- | ---- |
| v8               | 3.3 Configure Data Access Control Lists               | Y    | Y    | Y    |
| v7               | 14.6 Protect Information through Access Control Lists | Y    | Y    | Y    |

## MITRE ATT&CK Mappings

| Tactic               | Technique                                         |
| -------------------- | ------------------------------------------------- |
| Privilege Escalation | T1068 Exploitation for Privilege Escalation       |
| Defense Evasion      | T1222 File and Directory Permissions Modification |

## Profile

- Level 1 - OpenShift Virtualization

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.