8.2.5 (L1) Ensure unnecessary USB devices are disconnected

Information

Ensure that no USB device is connected to a virtual machine unless required. For a USB device to be disconnected, the usb.present parameter should either not be present or have a value of FALSE.

Removing unnecessary hardware devices can reduce the number of potential attack channels and help prevent attacks.

Solution

To disconnect all USB devices from VMs, run the following PowerCLI command:

# Remove all USB Devices attached to VMs
Get-VM | Get-USBDevice | Remove-USBDevice

The VM will need to be powered off for this change to take effect.

See Also

https://workbench.cisecurity.org/benchmarks/15334

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6, 800-53|CM-7, CSCv7|9.2

Plugin: VMware

Control ID: 00219b4dd3dcfe9b75be268f8fef921a79afc1236496266c3599479282372a3d