File: rule.yml

package info (click to toggle)
scap-security-guide 0.1.76-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 110,644 kB
  • sloc: xml: 241,883; sh: 73,777; python: 32,527; makefile: 27
file content (40 lines) | stat: -rw-r--r-- 1,176 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
documentation_complete: true


title: 'Ensure rsyslog Default File Permissions Configured'

description: |-
    rsyslog will create logfiles that do not already exist on the system.
    This settings controls what permissions will be applied to these newly
    created files.

rationale: |-
    It is important to ensure that log files have the correct permissions
    to ensure that sensitive data is archived and protected.

severity: medium

identifiers:
    cce@rhel8: CCE-88321-5
    cce@rhel9: CCE-88322-3

references:
    cis@ubuntu2004: 4.2.1.4
    cis@ubuntu2204: 4.2.2.4

ocil_clause: '$FileCreateMode is not set or is more permissive than 0640'

ocil: |-
    Run the following command:
    <pre># grep ^\$FileCreateMode /etc/rsyslog.conf /etc/rsyslog.d/*.conf</pre>
    Verify the output matches:
    <pre>$FileCreateMode 0640</pre>
    Should a site policy dictate less restrictive permissions, ensure to follow
    said policy.

fixtext: |-
    Edit either `/etc/rsyslog.conf` or a dedicated .conf file in `/etc/rsyslog.d/`
    and set $FileCreateMode to 0640 or more restrictive:
    $FileCreateMode 0640
    Restart the service:
    # systemctl restart rsyslog