Ceplin Command Identifier

Identifier / Programs / Linux and Unix

bpftrace

High-level tracing language for Linux eBPF. tldr-pages

GTFOBins shell 1 ATT&CK technique 3 documented commands

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

How bpftrace is abused

documented by GTFOBins

shell T1059.004 Command and Scripting Interpreter: Unix Shell

--unsafe
-e

shell T1059.004 Command and Scripting Interpreter: Unix Shell

--unsafe

shell T1059.004 Command and Scripting Interpreter: Unix Shell

-c
-e

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

3 documented commands

from GTFOBins, each read by the identifier

shell with sudo

bpftrace --unsafe -e 'BEGIN {system("/bin/sh 1<&0");exit()}'
Identify

Trips 1 Sigma rule: mediumBPFtrace Unsafe Option Usage by Andreas Hunkeler (@Karneades)

shell with sudo

echo 'BEGIN {system("/bin/sh 1<&0");exit()}' >/path/to/temp-file
bpftrace --unsafe /path/to/temp-file
Identify

Trips 1 Sigma rule: mediumBPFtrace Unsafe Option Usage by Andreas Hunkeler (@Karneades)

shell with sudo

bpftrace -c /bin/sh -e 'END {exit()}'
Identify

Trips no Sigma process-creation rule.

2 of the 3 commands the identifier reads trip a Sigma process-creation rule; 1 trips none. 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 bpftrace. The identifier reads the line of each that runs bpftrace.

What detects it

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

Everyday use

from tldr-pages, CC BY 4.0

List all available probes

sudo bpftrace -lIdentify

Run a one-liner program (e.g. syscall count by program)

sudo bpftrace -e 'tracepoint:raw_syscalls:sys_enter { @[comm] = count(); }'Identify

Run a program from a file

sudo bpftrace path/to/fileIdentify

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