Information
The graphical display manager must not be the default target on AlmaLinux OS 9 unless approved.
GROUP ID: V-269206
RULE ID: SV-269206r1050088
Unnecessary service packages must not be installed to decrease the attack surface of the system.
Graphical display managers have a long history of security vulnerabilities and must not be used, unless approved and documented.
Solution
Document the requirement for a graphical user interface with the ISSO or set the default target to multi-user with the following command:
$ systemctl set-default multi-user.target