{"description": "The system's default desktop environment, GNOME3, will mount\ndevices and removable media (such as DVDs, CDs and USB flash drives) whenever\nthey are inserted into the system. To disable automount-open within GNOME3, add or set\n<tt>automount-open</tt> to <tt>false</tt> in <tt>/etc/dconf/db/local.d/00-security-settings</tt>.\nFor example:\n<pre>[org/gnome/desktop/media-handling]\nautomount-open=false</pre>\nOnce the settings have been added, add a lock to\n<tt>/etc/dconf/db/local.d/locks/00-security-settings-lock</tt> to prevent user modification.\nFor example:\n<pre>/org/gnome/desktop/media-handling/automount-open</pre>\nAfter the settings have been set, run <tt>dconf update</tt>.", "rationale": "Automatically mounting file systems permits easy introduction of unknown devices, thereby facilitating malicious activity.\nDisabling automatic mounting in GNOME3 can prevent\nthe introduction of malware via removable media.\nIt will, however, also prevent desktop users from legitimate use\nof removable media.", "severity": "medium", "references": {"cis-csc": ["12", "16"], "cobit5": ["APO13.01", "DSS01.04", "DSS05.03", "DSS05.04", "DSS05.05", "DSS05.07", "DSS06.03"], "cui": ["3.1.7"], "isa-62443-2009": ["4.3.3.2.2", "4.3.3.5.2", "4.3.3.6.6", "4.3.3.7.2", "4.3.3.7.4"], "isa-62443-2013": ["SR 1.1", "SR 1.13", "SR 1.2", "SR 1.4", "SR 1.5", "SR 1.9", "SR 2.1", "SR 2.6"], "iso27001-2013": ["A.11.2.6", "A.13.1.1", "A.13.2.1", "A.6.2.1", "A.6.2.2", "A.7.1.1", "A.9.2.1"], "nist": ["CM-7(a)", "CM-7(b)", "CM-6(a)"], "nist-csf": ["PR.AC-3", "PR.AC-6"], "srg": ["SRG-OS-000114-GPOS-00059", "SRG-OS-000378-GPOS-00163", "SRG-OS-000480-GPOS-00227"], "cis": ["1.7.6", "1.7.7"], "pcidss4": ["3.4.2", "3.4"]}, "control_references": {"cis": ["1.7.6", "1.7.7"], "pcidss4": ["3.4.2", "3.4"]}, "components": [], "identifiers": {}, "ocil_clause": "GNOME automounting is not disabled", "ocil": "These settings can be verified by running the following:\n<pre>$ gsettings get org.gnome.desktop.media-handling automount-open</pre>\nIf properly configured, the output for <tt>automount-open</tt>should be <tt>false</tt>.\nTo ensure that users cannot enable automount opening in GNOME3, run the following:\n<pre>$ grep 'automount-open' /etc/dconf/db/local.d/locks/*</pre>\nIf properly configured, the output for <tt>automount-open</tt> should be <tt>/org/gnome/desktop/media-handling/automount-open</tt>", "oval_external_content": null, "fixtext": "Configure GNOME 3 to disable automated mount of removable media.\n\nThe dconf settings can be edited in the /etc/dconf/db/* location.\n\nFirst, add or update the [org/gnome/desktop/media-handling] section of the \"/etc/dconf/db/local.d/00-security-settings\" database file and add or update the following lines:\n\n[org/gnome/desktop/media-handling]\nautomount-open=false\n\nThen, add the following line to \"/etc/dconf/db/local.d/locks/00-security-settings-lock\" to prevent user modification:\n\n/org/gnome/desktop/media-handling/automount-open\n\nFinally, update the dconf system databases:\n\n$ sudo dconf update", "checktext": "", "vuldiscussion": "", "srg_requirement": "Ubuntu 22.04 must disable the graphical user interface automounter unless required.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 must prevent a user from overriding the disabling of the graphical user interface automount function.", "vuldiscussion": "A nonprivileged account is any operating system account with authorizations of a nonprivileged user.", "checktext": "Note: This requirement assumes the use of the Ubuntu 22.04 default graphical user interface, the GNOME desktop environment. If the system does not have any graphical user interface installed, this requirement is Not Applicable.\n\nVerify Ubuntu 22.04 disables the ability of the user to override the graphical user interface automount setting.\n\nDetermine which profile the system database is using with the following command:\n\n$ sudo grep system-db /etc/dconf/profile/user\n\nsystem-db:local\n\nCheck that the automount setting is locked from nonprivileged user modification with the following command:\n\nNote: The example below is using the database \"local\" for the system, so the path is \"/etc/dconf/db/local.d\". This path must be modified if a database other than \"local\" is being used.\n\n$ grep 'automount-open' /etc/dconf/db/local.d/locks/*\n\n/org/gnome/desktop/media-handling/automount-open\n\nIf the command does not return at least the example result, this is a finding.", "fixtext": "Configure the GNOME desktop to not allow a user to change the setting that disables automated mounting of removable media.\n\nAdd the following line to \"/etc/dconf/db/local.d/locks/00-security-settings-lock\" to prevent user modification:\n\n/org/gnome/desktop/media-handling/automount-open\n\nThen update the dconf system databases:\n\n$ sudo dconf update"}}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": ["package[gdm]"], "cpe_platform_names": [], "inherited_cpe_platform_names": ["package_gdm"], "bash_conditional": null, "fixes": {}, "title": "Disable GNOME3 Automount Opening", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/software/gnome/gnome_media_settings/dconf_gnome_disable_automount_open/rule.yml", "template": null}