NixOS must enable USBguard.
An XCCDF Rule
Description
Without identifying devices, unidentified or unknown devices may be introduced, thereby facilitating malicious activity. Peripherals include, but are not limited to, such devices as flash drives, external storage, and printers. Satisfies: SRG-OS-000114-GPOS-00059, SRG-OS-000378-GPOS-00163, SRG-OS-000690-GPOS-00140
- ID
- SV-268139r1039607_rule
- Version
- ANIX-00-000930
- Severity
- Medium
- References
- Updated
Remediation Templates
A Manual Procedure
Configure NixOS to enable USBGuard and generate a USBGuard ruleset.
Edit /etc/nixos/configuration.nix and add the following:
services.usbguard.enable = true;