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 (50 lines) | stat: -rw-r--r-- 1,820 bytes parent folder | download | duplicates (2)
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
documentation_complete: true


title: 'Ensure debug-shell service is not enabled in zIPL'

description: |-
    systemd's <tt>debug-shell</tt> service is intended to
    diagnose systemd related boot issues with various <tt>systemctl</tt>
    commands. Once enabled and following a system reboot, the root shell
    will be available on <tt>tty9</tt> which is access by pressing
    <tt>CTRL-ALT-F9</tt>. The <tt>debug-shell</tt> service should only be used
    for systemd related issues and should otherwise be disabled.
    <br /><br />
    By default, the <tt>debug-shell</tt> systemd service is already disabled.

    Ensure the debug-shell is not enabled by the <tt>systemd.debug-shel=1</tt>
    boot paramenter option.

    Check that not boot entries in <tt>/boot/loader/entries/*.conf</tt> have
    <tt>systemd.debug-shell=1</tt> included in its options.<br />
    To ensure that new kernels and boot entries don't enable the debug-shell, check
    that <tt>systemd.debug-shell=1</tt> is not present in <tt>/etc/kernel/cmdline</tt>.

rationale: |-
    This prevents attackers with physical access from trivially bypassing security
    on the machine through valid troubleshooting configurations and gaining root
    access when the system is rebooted.

severity: medium

identifiers:
    cce@rhel9: CCE-86420-7
    cce@rhel10: CCE-87936-1

references:
    ospp: FIA_UAU.1

ocil_clause: 'the comand returns a line'

ocil: |-
    Ensure that debug-shell service is not enabled with the following command:
    <pre>sudo grep -L "^options\s+.*\bsystemd.debug-shell=1\b" /boot/loader/entries/*.conf</pre>
    No line should be returned, each line returned is a boot entry that enables the debug-shell.

platform: machine

#template:
#  name: zipl_bls_entries_option_absent
#  vars:
#    arg_name: systemd.debug-shell