{"description": "\nBy removing the <tt>gdm3</tt> package, the system no longer has GNOME installed.\n\nIf X Windows is not installed then the system cannot boot into graphical user mode.\nThis prevents the system from being accidentally or maliciously booted into a <tt>graphical.target</tt>\nmode. To do so, run the following command:\n\n<pre>$ sudo apt remove gdm3</pre>", "rationale": "Unnecessary service packages must not be installed to decrease the attack surface of the system.\nA graphical environment is unnecessary for certain types of systems including a virtualization\nhypervisor.", "severity": "medium", "references": {"nist": ["CM-7(a)", "CM-7(b)", "CM-6(a)"], "srg": ["SRG-OS-000480-GPOS-00227"], "cis": ["1.7.1"]}, "control_references": {"cis": ["1.7.1"]}, "components": [], "identifiers": {}, "ocil_clause": "gdm3 has not been removed", "ocil": "To ensure the gdm3 package group is removed, run the following command:\n<pre>$ dpkg -l gdm3</pre>\nThe output should begin with:\n<pre>rc gdm3</pre>\nOr\n<pre>dpkg-query: no packages found matching gdm3</pre>", "oval_external_content": null, "fixtext": " To remove the Ubuntu 22.04 package gdm run the following command:\n\n$ apt-get remove gdm", "checktext": "", "vuldiscussion": "", "srg_requirement": " Ubuntu 22.04 must not have the gdm package installed.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 must not have the gdm  package installed.", "vuldiscussion": "Unnecessary service packages must not be installed to decrease the attack surface of the system.\nA graphical environment is unnecessary for certain types of systems including a virtualization\nhypervisor.", "checktext": "Verify that the gdm package is not installed with the following command:\n\n$ dnf list --installed gdm\n\nError: No matching Packages to list\n\nIf the gdm  package is installed, this is a finding.", "fixtext": "Remove the gdm  package with the following command:\n\n$ sudo dnf remove gdm"}}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": ["package[gdm]"], "cpe_platform_names": [], "inherited_cpe_platform_names": ["package_gdm"], "bash_conditional": null, "fixes": {}, "title": "Remove the GDM Package Group", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/software/gnome/package_gdm_removed/rule.yml", "template": {"name": "package_removed", "vars": {"pkgname": "gdm3"}, "backends": {}}}