Identifier / Programs / Linux and Unix
tshark
Packet analysis tool, CLI version of Wireshark. tldr-pages
GTFOBins inherit 1 Sigma rule name it 1 documented command
How tshark is abused
inherit
-Xlua_scriptEach abuse is GTFOBins's category and the options and words it uses; the full write-up is on GTFOBins's page for tshark.
1 documented command
inherit unprivileged, with sudo
This allows to run Lua code (...).
echo '...' >/path/to/temp-file
tshark -Xlua_script:/path/to/temp-fileIdentifyTrips 1 Sigma rule: informationalNetwork Sniffing - MacOs by Alejandro Ortuno, oscd.community
The command the identifier reads trips a 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 tshark. The identifier reads the line that runs tshark.
What detects it
Everyday use
Monitor packets from the default interface
tsharkIdentifyTrips 1 Sigma rule: informationalNetwork Sniffing - MacOs by Alejandro Ortuno, oscd.community
Only capture packets matching a specific capture filter
tshark -f 'udp port 53'IdentifyTrips 1 Sigma rule: informationalNetwork Sniffing - MacOs by Alejandro Ortuno, oscd.community
Only show packets matching a specific output filter
tshark -Y 'http.request.method == "GET"'IdentifyTrips 1 Sigma rule: informationalNetwork Sniffing - MacOs by Alejandro Ortuno, oscd.community
Of the 3 examples the identifier reads, 3 match GTFOBins abuse or trip a Sigma process-creation rule.