Identifier / Programs / Linux and Unix
mount
Get access to an entire filesystem in one directory. tldr-pages
GTFOBins privilege-escalation 1 Sigma rule name it 1 ATT&CK technique 1 documented command
How mount is abused
privilege-escalation
-oEach abuse is GTFOBins's category and the options and words it uses; the full write-up is on GTFOBins's page for mount.
1 documented command
privilege-escalation with sudo
This overrides mount itself with a shell (or any other executable).
mount -o bind /bin/sh /bin/mount
mountIdentifyThe command the identifier reads trips no Sigma process-creation rule. This command is, with GTFOBins’ notes, from GTFOBins, at commit acd524623f9c of 2026-05-27, under the GPL-3.0, with no warranty. Changed: Markdown is shown formatted. The source is in lolbas-gtfobins-commands.json.gz, and the full entry is on GTFOBins’s page for mount. The identifier reads the line that runs mount.
What detects it
Everyday use
Show all mounted filesystems
mountIdentifyMount a device to a directory
mount path/to/device_file path/to/target_directoryIdentifyCreate a specific directory if it does not exist and mount a device to it
mount --mkdir path/to/device_file path/to/target_directoryIdentifyNone of the 3 examples the identifier reads matches GTFOBins abuse or trips a Sigma process-creation rule.
Options
Show every option of mount
-aMount all entries in /etc/fstab (with -t, only entries of that TYPE)-OOnly mount -a entries that have this option-fFake it (don't actually mount)-rRead only (same as -o ro)-wRead/write (default, same as -o rw)-t TYPESpecify filesystem type-vVerbose