srg_requirement: |-
    {{{ full_name }}} must require authentication to access single-user mode.

vuldiscussion: |-
    To mitigate the risk of unauthorized access to sensitive information by entities that have been issued certificates by DOD-approved PKIs, all DOD systems (e.g., web servers and web portals) must be properly configured to incorporate access control methods that do not rely solely on the possession of a certificate for access. Successful authentication must not automatically give an entity access to an asset or security boundary. Authorization procedures and controls must be implemented to ensure each authenticated entity also has a validated and current authorization. Authorization is the process of determining whether an entity, once authenticated, is permitted to access a specific asset. Information systems use access control policies and enforcement mechanisms to implement this requirement.

    This requirement prevents attackers with physical access from trivially bypassing security on the machine and gaining root access. Such accesses are further prevented by configuring the bootloader password.

checktext: |-
    Verify that {{{ full_name }}} requires authentication for single-user mode with the following command:

    $ grep sulogin /usr/lib/systemd/system/rescue.service

    ExecStart=-/usr/lib/systemd/systemd-sulogin-shell rescue

    If this line is not returned, or is commented out, this is a finding.

fixtext: |-
    Configure {{{ full_name }}} to require authentication for single-user mode.

    Add or modify the following line in the "/usr/lib/systemd/system/rescue.service" file:

    ExecStart=-/usr/lib/systemd/systemd-sulogin-shell rescue


