UBUNTU24-CIS-Audit/section_1/cis_1.1/cis_1.1.1.9.yml

40 lines
912 B
YAML

---
{{ if .Vars.ubtu24cis_level_1 }}
{{ if .Vars.ubtu24cis_rule_1_1_1_9 }}
file:
usb-storage_disabled:
title: 1.1.1.9 | Ensure usb-storage kernel module is not available | modprobe
path: /etc/modprobe.d/CIS.conf
exists: true
contents:
- '/^install usb-storage /bin/(true|false)/'
meta:
server: 1
workstation: 2
CIS_ID: 1.1.1.9
CISv8:
- 4.8
CISv8_IG1: false
CISv8_IG2: true
CISv8_IG3: true
NIST800-53R5: SI-3
usb-storage_blacklist:
title: 1.1.1.9 | Ensure usb-storage kernel module is not available | blacklist
path: /etc/modprobe.d/blacklist.conf
exists: true
contents:
- '/^blacklist usb-storage/'
meta:
server: 1
workstation: 2
CIS_ID: 1.1.1.9
CISv8:
- 4.8
CISv8_IG1: false
CISv8_IG2: true
CISv8_IG3: true
NIST800-53R5: SI-3
{{ end }}
{{ end }}