Disable Kernel Support for USB via Bootloader Configuration
An XCCDF Rule
Description
All USB support can be disabled by adding the nousb
argument to the kernel's boot loader configuration. To do so,
Add the nousb
kernel argument via a MachineConfig
object.
warning alert: Functionality Warning
Disabling all kernel support for USB will cause problems for systems
with USB-based keyboards, mice, or printers. This configuration is
infeasible for systems which require USB devices, which is common.
Rationale
Disabling the USB subsystem within the Linux kernel at system boot will protect against potentially malicious USB devices, although it is only practical in specialized systems.
- ID
- xccdf_org.ssgproject.content_rule_coreos_nousb_kernel_argument
- Severity
- Medium
- References
- Updated
Remediation - Kubernetes Patch
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
spec:
config:
ignition: