CmdID

CmdID / Programs / Linux and Unix

minicom

Communicate with the serial interface of a device. tldr-pages

GTFOBins shell 1 ATT&CK technique 2 documented commands

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

How minicom is abused

documented by GTFOBins

shell T1059.004 Command and Scripting Interpreter: Unix Shell

-D

shell T1059.004 Command and Scripting Interpreter: Unix Shell

-D
-S

Each 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

from GTFOBins, each read by CmdID

shell unprivileged, with sudo, as SUID

Start the following command to open the TUI interface, then:

  1. press Ctrl-A o and select Filenames and paths;
  2. press e, type /bin/sh, then Enter;
  3. Press Esc twice;
  4. Press Ctrl-A k to drop the shell.

After the shell, exit with Ctrl-A x.

minicom -D /dev/null
Identify

shell 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^J
Identify

None of the 2 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 minicom. CmdID reads the line of each that runs minicom.

What detects it

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

Everyday use

from tldr-pages, CC BY 4.0

Open a given serial port

sudo minicom --device /dev/ttyXYZIdentify

Open a given serial port with a given baud rate

sudo minicom --device /dev/ttyXYZ --baudrate 115200Identify

Enter the configuration menu before communicating with a given serial port

sudo minicom --device /dev/ttyXYZ --setupIdentify

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