-
Notifications
You must be signed in to change notification settings - Fork 672
/
rule.yml
48 lines (35 loc) · 1.84 KB
/
rule.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
documentation_complete: true
title: 'Authorize Human Interface Devices and USB hubs in USBGuard daemon'
description: |-
To allow authorization of USB devices combining human interface device and hub capabilities
by USBGuard daemon,
add the line
<tt>allow with-interface match-all { 03:*:* 09:00:* }</tt>
to <tt>/etc/usbguard/rules.conf</tt>.
rationale: |-
Without allowing Human Interface Devices, it might not be possible
to interact with the system. Without allowing hubs, it might not be possible to use any
USB devices on the system.
warnings:
- general: |-
This rule should be understood primarily as a convenience administration feature. This rule ensures that if the USBGuard default rules.conf file is present, it will alter it so that USB human interface devices and hubs are allowed. However, if the rules.conf file is altered by system administrator, the rule does not check if USB human interface devices and hubs are allowed. This assumes that an administrator modified the file with some purpose in mind.
severity: medium
identifiers:
cce@rhcos4: CCE-82539-8
cce@rhel8: CCE-82368-2
cce@rhel9: CCE-84210-4
references:
nist: CM-8(3),IA-3
ospp: FMT_SMF_EXT.1
srg: SRG-OS-000114-GPOS-00059,SRG-APP-000092-CTR-000165
ocil_clause: 'USB devices of class 3 and 9:00 are not authorized'
ocil: |-
To verify that USB Human Interface Devices and hubs will be authorized by the USBGuard daemon,
run the following command:
<pre>$ sudo grep allow /etc/usbguard/rules.conf</pre>
The output lines should include
<pre>allow with-interface match-all { 03:*:* 09:00:* }</pre>
fixtext: |-
Configure the USBGuard daemon to allow USB Human Interface Devices and USB hubs.
Add or edit the following line in "/etc/usbguard/rules.conf":
allow with-interface match-all { 03:*:* 09:00:* }