File: rule.yml

package info (click to toggle)
scap-security-guide 0.1.78-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 114,600 kB
  • sloc: xml: 245,305; sh: 84,381; python: 33,093; makefile: 27
file content (59 lines) | stat: -rw-r--r-- 1,678 bytes parent folder | download
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
49
50
51
52
53
54
55
56
57
58
59
documentation_complete: true


title: 'Log USBGuard daemon audit events using Linux Audit'

description: |-
    To configure USBGuard daemon to log via Linux Audit
    (as opposed directly to a file),
    <tt>AuditBackend</tt> option in <tt>/etc/usbguard/usbguard-daemon.conf</tt>
    needs to be set to <tt>LinuxAudit</tt>.

rationale: |-
    Using the Linux Audit logging allows for centralized trace
    of events.

severity: low

identifiers:
    cce@rhcos4: CCE-82538-0
    cce@rhel8: CCE-82168-6
    cce@rhel9: CCE-84206-2
    cce@rhel10: CCE-87152-5

references:
    nist: AU-2,CM-8(3),IA-3
    ospp: FMT_SMF_EXT.1
    srg: SRG-OS-000062-GPOS-00031,SRG-OS-000471-GPOS-00215,SRG-APP-000141-CTR-000315
    stigid@ol8: OL08-00-030603

platform: package[usbguard]

ocil_clause: 'AuditBackend is not set to LinuxAudit'

ocil: |-
    To verify that Linux Audit logging is enabled for the USBGuard daemon,
    run the following command:
    <pre>$ sudo grep AuditBackend /etc/usbguard/usbguard-daemon.conf</pre>
    The output should be
    <pre>AuditBackend=LinuxAudit</pre>

fixtext: |-
    Configure {{{ full_name }}} USBGuard AuditBackend to use the audit system.

    Add or edit the following line in /etc/usbguard/usbguard-daemon.conf:

    AuditBackend=LinuxAudit

srg_requirement: {{{ full_name }}} Must Provide Audit Record Generation Capability For Organization Defined Auditable Events For All Operating System Components

template:
    name: key_value_pair_in_file
    vars:
      path: '/etc/usbguard/usbguard-daemon.conf'
      prefix_regex: '^[ \\t]*'
      key: 'AuditBackend'
      value: 'LinuxAudit'
      sep: '='
      sep_regex: '='
      app: 'usbguard'