Description
org.gnome.desktop.media-handling autorun-never set to true stops GNOME from prompting
for or launching programs when media are inserted. The key is set in the system dconf
database local and locked.
Debian 13 already defaults to true; Debian 12 defaults to false. In both, users can
change it unless the key is locked.
Rationale
Autorun turns the insertion of a medium into code execution with one click, or none if the user chose "always". It is a classic infection path for removable media.
Impact
Users open media content themselves from the file manager.
Applies when
Detected: when: GNOME desktop is installed A scanner reports the control not applicable when one is false.
Setting
| Location | /etc/dconf/db/local.d/, key /org/gnome/desktop/media-handling/autorun-never |
| Default | false (Debian 12), true (Debian 13), not locked |
| Recommended | true, locked |
Audit
dconf read /org/gnome/desktop/media-handling/autorun-nevermust printtrue.- The key must be listed in a file of
/etc/dconf/db/local.d/locks/.
Automated: every check must pass. Scanners report each check by its id.
autorun-never
GNOME never runs software from inserted media.
key: /org/gnome/desktop/media-handling/autorun-never
value: 'true'
Remediation
- Make sure
/etc/dconf/profile/usercontainsuser-db:userandsystem-db:local. - Create
/etc/dconf/db/local.d/00-media-autorun:[org/gnome/desktop/media-handling] autorun-never=true - List
/org/gnome/desktop/media-handling/autorun-neverin/etc/dconf/db/local.d/locks/00-media-autorun. - Run
dconf update.
| Restart | users must log in again |
| Disruption | none |
Rollback
Delete the files written in /etc/dconf/db/local.d/ and its locks/ directory, then run
dconf update.
autorun-never
Generated from check autorun-never: the engine writes the fix for every output, it sets the expected value and the check runs again after.
Each release turns these fixes into remediate.sh and an Ansible role per profile: dry run by default, a fix runs only when its check fails.
References
- gsettings-desktop-schemas - org.gnome.desktop.media-handling schema The GNOME Project, vendor-doc, accessed 2026-10-18
- GNOME System Administration Guide - Lock down specific settings The GNOME Project, vendor-doc, accessed 2026-10-18
Mappings
| Framework | ID | Relation |
|---|---|---|
| NIST SP 800-53 Rev. 55.1.1 | CM-7 | related |
How this control relates to the other framework's: equivalent, stricter, looser, partial or related.
Threats mitigated
| Taxonomy | ID |
|---|---|
| MITRE ATT&CK | T1091 |
Related controls
- related
CB-DEB-DESK-001Disable automatic mounting of removable media in GNOME
People and lifecycle
| Authors |
|
| Verified | 2026-10-18 by Sn0wAlice on 12, Proxmox VM with minimal GNOME (gdm3, gnome-shell), Debian 12 genericcloud image, kernel 6.1.0-54-cloud-amd64. Generated dconf check and fix (desktop-hardened) on GNOME; value and lock confirmed with gsettings as a user; state kept after reboot. |
| Verified | 2026-10-18 by Sn0wAlice on 13, Proxmox VM with minimal GNOME (gdm3, gnome-shell), Debian 13 genericcloud image, kernel 6.12.113+deb13-cloud-amd64. Generated dconf check and fix (desktop-hardened) on GNOME; value and lock confirmed with gsettings as a user; state kept after reboot. |
| Introduced in | v0.1.0 |
| Created, updated | 2026-10-18, 2026-10-18 |
| Translations | fr |