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 (49 lines) | stat: -rw-r--r-- 1,642 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
documentation_complete: true

title: 'Ensure debug-shell service is not enabled during boot'

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 parameter option.

    {{{ describe_grub2_argument_absent("systemd.debug-shell")  | indent(4) }}}


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-86292-0
    cce@rhel10: CCE-89168-9

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>grep systemd\.debug-shell=1 /boot/grub2/grubenv /etc/default/grub</pre>
    If the command returns a line, it means that debug-shell service is being enabled.

fixtext: |-
    {{{ fixtext_grub2_bootloader_argument_absent("debug-shell") | indent(4) }}}


template:
    name: grub2_bootloader_argument_absent
    vars:
        arg_name: systemd.debug-shell