CmdID

CmdID / Programs / Linux and Unix

sysctl

List and change kernel runtime variables. tldr-pages

GTFOBins file-read 2 Sigma rules name it 2 ATT&CK techniques 2 documented commands

Opens CmdID with your command. It is read in your browser and sent nowhere.

How sysctl is abused

documented by GTFOBins

file-read

-nDon't print key names toybox

Each abuse is GTFOBins's category and the options and words it uses; the full write-up is on GTFOBins's page for sysctl.

2 documented commands

from GTFOBins, each read by CmdID

command with sudo, as SUID

The command is executed by root in the background when a core dump occurs.

To trigger a core dump, send the SIGQUIT signal to a process, for example:

sleep infinity &
kill -QUIT $!
sysctl 'kernel.core_pattern=|/path/to/command'
Identify

file-read unprivileged, with sudo, as SUID

sysctl -n "/../../path/to/input-file"
Identify

None of the 2 commands CmdID reads trips a Sigma process-creation rule. These commands are, 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 sysctl. CmdID reads the line of each that runs sysctl.

What detects it

Sigma process creation rules
T1082System Information Discovery
T1497.001Virtualization/Sandbox Evasion: System Checks

Everyday use

from tldr-pages, CC BY 4.0

Show all available variables and their values

sysctl --allIdentify

Set a changeable kernel state variable

sysctl --write section.tunable=valueIdentify

Get currently open file handlers

sysctl fs.file-nrIdentify

None of the 3 examples CmdID reads matches GTFOBins abuse or trips a Sigma process-creation rule.

Options

7 in toybox
Show every option of sysctl
-aShow all values
-eDon't warn about unknown keys
-NDon't print key values
-nDon't print key names
-pRead values from FILE (default /etc/sysctl.conf)
-qDon't show value after write
-wOnly write values (object to reading)