CmdID

CmdID / Programs / Linux and Unix

nohup

Allow for a process to live when the terminal gets killed. tldr-pages

GTFOBins shell 3 Sigma rules name it 1 ATT&CK technique 2 documented commands

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

How nohup is abused

documented by GTFOBins

shell T1059.004 Command and Scripting Interpreter: Unix Shell

-c

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

2 documented commands

from GTFOBins, each read by CmdID

command unprivileged, with sudo, as SUID

The nohup.out file contains the standard output and error of the command.

nohup /path/to/command
cat nohup.out
Identify

Trips 1 Sigma rule: mediumNohup Execution by Christopher Peacock @SecurePeacock, SCYTHE @scythe_io

shell unprivileged, with sudo, as SUID

This creates a nohup.out file in the current working directory.

nohup /bin/sh -c '/bin/sh </dev/tty >/dev/tty 2>/dev/tty'
Identify

As SUID:

nohup /bin/sh -p -c '/bin/sh -p </dev/tty >/dev/tty 2>/dev/tty'

Trips 1 Sigma rule: mediumNohup Execution by Christopher Peacock @SecurePeacock, SCYTHE @scythe_io

All 2 commands CmdID reads trip 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 nohup. CmdID reads the line of each that runs nohup.

What detects it

Sigma process creation rules
highSuspicious Nohup ExecutionJoseliyo Sanchez, @Joseliyo_Jstnk
mediumNohup ExecutionChristopher Peacock @SecurePeacock, SCYTHE @scythe_io
mediumSuspicious Execution via macOS Script EditorTim Rauch (rule), Elastic (idea)
T1059.004Command and Scripting Interpreter: Unix Shell

Everyday use

from tldr-pages, CC BY 4.0

Run a process that can live beyond the terminal

nohup command argument1 argument2 ...Identify

Trips 1 Sigma rule: mediumNohup Execution by Christopher Peacock @SecurePeacock, SCYTHE @scythe_io

Launch nohup in background mode

nohup command argument1 argument2 ... &Identify

Trips 1 Sigma rule: mediumNohup Execution by Christopher Peacock @SecurePeacock, SCYTHE @scythe_io

Run a shell script that can live beyond the terminal

nohup path/to/script.sh &Identify

Trips 1 Sigma rule: mediumNohup Execution by Christopher Peacock @SecurePeacock, SCYTHE @scythe_io

Of the 3 examples CmdID reads, 3 match GTFOBins abuse or trip a Sigma process-creation rule.