CmdID

CmdID / Programs / Linux and Unix

ltrace

Display dynamic library calls of a process. tldr-pages

GTFOBins file-read, file-write, shell 1 ATT&CK technique 3 documented commands

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

How ltrace is abused

documented by GTFOBins

file-read

-F

file-write

-s
-o
-F

shell T1059.004 Command and Scripting Interpreter: Unix Shell

-b
-L

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

3 documented commands

from GTFOBins, each read by CmdID

file-read unprivileged, with sudo, as SUID

The file is parsed as a configuration file and its content is shown as error messages.

ltrace -F /path/to/input-file /dev/null
Identify

file-write unprivileged, with sudo

The data to be written appears amid the library function call log, quoted and with special characters escaped in octal notation. The string representation will be truncated, pick a value big enough instead of 999. More generally, any binary that executes whatever library function call passing arbitrary data can be used in place of ltrace -F DATA.

ltrace -s 999 -o /path/to/input-file ltrace -F DATA
Identify

shell unprivileged, with sudo

ltrace -b -L /bin/sh
Identify

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

What detects it

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

Everyday use

from tldr-pages, CC BY 4.0

Print (trace) library calls of a program binary

ltrace path/to/programIdentify

Count library calls. Print a handy summary at the bottom

ltrace -c path/to/programIdentify

Trace calls to malloc and free, omit those done by libc

ltrace -e malloc+free-@libc.so* path/to/programIdentify

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