CmdID

CmdID / Programs / Linux and Unix

mawk

GTFOBins shell 1 Sigma rule name it 1 ATT&CK technique 3 documented commands

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

How mawk is abused

documented by GTFOBins

shell T1059.004 Command and Scripting Interpreter: Unix Shell

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

3 documented commands

from GTFOBins, each read by CmdID

file-read unprivileged, with sudo, as SUID

mawk '//' /path/to/input-file
Identify

Trips no Sigma process-creation rule.

file-write unprivileged, with sudo, as SUID

mawk 'BEGIN { print "DATA" > "/path/to/output-file" }'
Identify

Trips no Sigma process-creation rule.

shell unprivileged, with sudo, as SUID

mawk 'BEGIN {system("/bin/sh")}'
Identify

Trips 1 Sigma rule: highSuspicious Invocation of Shell via AWK - Linux by Li Ling, Andy Parkidomo, Robert Rakowski, Blake Hartstein (Bloomberg L.P.)

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

What detects it

Sigma process creation rules
highSuspicious Invocation of Shell via AWK - LinuxLi Ling, Andy Parkidomo, Robert Rakowski, Blake Hartstein (Bloomberg L.P.)
T1059.004Command and Scripting Interpreter: Unix Shell