Identifier / Programs / Linux and Unix
tail
Display the last part of a file. tldr-pages
GTFOBins file-read 7 Sigma rules name it 1 documented command
How tail 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 tail.
1 documented command
file-read unprivileged, with sudo, as SUID
tail -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 tail. The identifier reads the line that runs tail.
What detects it
Everyday use
Show last 10 lines in a file
tail path/to/fileIdentifyShow last 10 lines of multiple files
tail path/to/file1 path/to/file2 ...IdentifyShow last 5 lines in file
tail [-5|--lines 5] path/to/fileIdentifyNone of the 3 examples the identifier reads matches GTFOBins abuse or trips a Sigma process-creation rule.
Options
Show every option of tail
-nOutput the last NUMBER lines (default 10), +X counts from start-cOutput the last NUMBER bytes, +NUMBER counts from start-fFollow FILE(s) by descriptor, waiting for more data to be appended-FFollow FILE(s) by filename, waiting for more data, and retrying-s SECONDSUsed with -F, sleep SECONDS between retries (default 1)