Identifier / Programs / Linux and Unix
head
Output the first part of files. tldr-pages
GTFOBins file-read 7 Sigma rules name it 1 documented command
How head is abused
file-read
-c-0Each abuse is GTFOBins's category and the options and words it uses; the full write-up is on GTFOBins's page for head.
1 documented command
file-read unprivileged, with sudo, as SUID
head -c-0 /path/to/input-fileIdentifyThe command the identifier reads trips no Sigma process-creation rule. This command is 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 head. The identifier reads the line that runs head.
What detects it
Everyday use
Output the first few lines of a file
head -n count path/to/fileIdentify-nNumber of lines to copy toyboxThe example the identifier reads matches no GTFOBins abuse and trips no Sigma process-creation rule.
Options
Show every option of head
-n NUMNumber of lines to copy-c NUMNumber of bytes to copy-qNever print headers-vAlways print headers