Identifier / Programs / Linux and Unix
base64
Encode or decode file or stdin to/from Base64, to stdout. tldr-pages
GTFOBins file-read 2 Sigma rules name it 1 ATT&CK technique 1 documented command
How base64 is abused
file-read
--decodeEach abuse is GTFOBins's category and the options and words it uses; the full write-up is on GTFOBins's page for base64.
1 documented command
file-read unprivileged, with sudo, as SUID
base64 /path/to/input-file | base64 --decodeIdentifyTrips 1 Sigma rule: lowDecode Base64 Encoded Text by Daniil Yugoslavskiy, oscd.community
The command the identifier reads trips a 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 base64. The identifier reads the line that runs base64.
What detects it
Everyday use
Encode a file
base64 path/to/fileIdentifyWrap encoded output at a specific width (0 disables wrapping)
base64 --wrap 0 path/to/fileIdentifyDecode a file
base64 --decode path/to/fileIdentifyTrips 1 Sigma rule: lowDecode Base64 Encoded Text by Daniil Yugoslavskiy, oscd.community
Of the 3 examples the identifier reads, 1 matches GTFOBins abuse or trips a Sigma process-creation rule.
Options
Show every option of base64
-dDecode-iIgnore non-alphabetic characters-w COLUMNSWrap output at COLUMNS (default 76 or 0 for no wrap)