{"description": "The USBGuard service should be enabled.\n\nThe <code>usbguard</code> service can be enabled with the following command:\n<pre>$ sudo systemctl enable usbguard.service</pre>", "rationale": "The <tt>usbguard</tt> service must be running in order to\nenforce the USB device authorization policy for all USB devices.", "severity": "medium", "references": {"nist": ["CM-8(3)(a)", "IA-3"], "ospp": ["FMT_SMF_EXT.1"], "srg": ["SRG-OS-000378-GPOS-00163", "SRG-APP-000141-CTR-000315"], "ism": ["1418"]}, "control_references": {"ism": ["1418"]}, "components": [], "identifiers": {}, "ocil_clause": "the service is not enabled", "ocil": "\n\nRun the following command to determine the current status of the\n<code>usbguard</code> service:\n<pre>$ sudo systemctl is-active usbguard</pre>\nIf the service is running, it should return the following: <pre>active</pre>", "oval_external_content": null, "fixtext": "To enable the usbguard service run the following command:\n\n$ sudo systemctl enable --now usbguard", "checktext": "", "vuldiscussion": "", "srg_requirement": "The Ubuntu 22.04 service usbguard must be enabled.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 must have the USBGuard package enabled.", "vuldiscussion": "The USBguard-daemon is the main component of the USBGuard software framework. It runs as a service in the background and enforces the USB device authorization policy for all USB devices. The policy is defined by a set of rules using a rule language described in the usbguard-rules.conf file. The policy and the authorization state of USB devices can be modified during runtime using the usbguard tool.\n\nThe system administrator (SA) must work with the site information system security officer (ISSO) to determine a list of authorized peripherals and establish rules within the USBGuard software framework to allow only authorized devices.", "checktext": "Verify Ubuntu 22.04 has USBGuard enabled with the following command:\n\n$ systemctl is-active usbguard\n\nactive\n\nIf usbguard is not active, ask the SA to indicate how unauthorized peripherals are being blocked.\n\nIf there is no evidence that unauthorized peripherals are being blocked before establishing a connection, this is a finding.\n\nIf the system is virtual machine with no virtual or physical USB peripherals attached, this is not a finding.", "fixtext": "To enable the USBGuard service run the following command:\n\n$ sudo systemctl enable --now usbguard"}}, "platform": null, "platforms": [], "sce_metadata": {"check-import": "stdout", "platform": ["multi_platform_all"], "environment": "any", "filename": "service_usbguard_enabled.sh", "relative_path": "ubuntu2204/checks/sce/service_usbguard_enabled.sh"}, "inherited_platforms": ["not_s390x_arch and system_with_kernel"], "cpe_platform_names": [], "inherited_cpe_platform_names": ["not_s390x_arch_and_system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "Enable the USBGuard Service", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/services/usbguard/service_usbguard_enabled/rule.yml", "template": {"name": "service_enabled", "vars": {"servicename": "usbguard"}, "backends": {}}}