Identifier / Programs / Linux and Unix
dnsmasq
Lightweight DNS, DHCP, TFTP, and PXE server. tldr-pages
GTFOBins command 1 documented command
How dnsmasq is abused
command
--conf-scriptEach abuse is GTFOBins's category and the options and words it uses; the full write-up is on GTFOBins's page for dnsmasq.
1 documented command
command unprivileged, with sudo, as SUID
dnsmasq --conf-script='/path/to/command 1>&2'IdentifyThe 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 dnsmasq. The identifier reads the line that runs dnsmasq.
Everyday use
Start dnsmasq with default configuration
dnsmasqIdentifyRun dnsmasq in the foreground (for debugging)
dnsmasq --no-daemonIdentifySpecify a custom configuration file
dnsmasq --conf-file=path/to/config.confIdentifyNone of the 3 examples the identifier reads matches GTFOBins abuse or trips a Sigma process-creation rule.