Detect Ignore Process Interrupts in Elastic Security
Adversaries evade defensive mechanisms by launching processes immune to interrupt signals, preventing analyst-driven or system-triggered termination. The primary technique is nohup on Linux and macOS, which detaches a process from the controlling terminal and causes it to ignore SIGHUP—the hangup signal sent when a session ends or a terminal closes. Malware authors also call signal() or sigaction() directly to mask SIGINT, SIGTERM, SIGPIPE, SIGCHLD, and other control signals, as documented in BPFDoor (masks 7 signals) and BOLDMOVE (masks SIGCHLD, SIGHUP, SIGPIPE). On Windows, PowerShell's -ErrorAction SilentlyContinue or $ErrorActionPreference = 'SilentlyContinue' prevents script termination on errors, allowing malicious payloads to continue past failures that would otherwise halt execution. Real-world usage includes GoldMax Linux variant (nohup invocation for C2 persistence through SSH disconnection), UNC3886 (nohup /bin/support in /etc/init.d/localnet for semi-persistence across reboots), Sea Turtle running SnappyTCP via nohup, and OSX/Shlayer applying nohup to payload execution on macOS. Unlike Trap (T1546.005), this technique does not re-invoke the process after termination—it only prolongs the existing execution session through events that would otherwise end it.
MITRE ATT&CK
- Tactic
- Defense Evasion
- Technique
- T1564 Hide Artifacts
- Sub-technique
- T1564.011 Ignore Process Interrupts
- Canonical reference
- https://attack.mitre.org/techniques/T1564/011/
Elastic Detection Query
sequence by host.name with maxspan=5s
[
process where event.type == "start" and
(
process.name == "nohup" or
process.parent.name == "nohup" or
(
process.args : ["nohup"] and
process.name in ("bash", "sh", "dash", "zsh", "ksh", "python3", "python", "perl", "ruby")
)
)
] by process.pid
| sequence by host.name with maxspan=30m
[
process where event.type == "start" and
process.name : ("powershell.exe", "pwsh.exe") and
(
process.command_line : ("*SilentlyContinue*", "*ErrorActionPreference*", "*-ErrorAction Ignore*", "*-EA Ignore*", "*-EA SilentlyContinue*")
) and
(
process.command_line : ("*Invoke-WebRequest*", "*IWR *", "*Net.WebClient*", "*DownloadString*", "*DownloadFile*",
"*Invoke-Expression*", "*IEX(*", "*-EncodedCommand*", "*-enc *",
"*schtasks*", "*sc create*", "*reg add*", "*New-Service*",
"*Set-MpPreference*", "*Add-MpPreference*", "*certutil*")
)
]
// Standalone nohup detection with suspicion scoring
process where event.type == "start" and
(
process.name == "nohup" or
process.parent.name == "nohup" or
(
process.command_line : "*nohup *" and
process.name in ("bash", "sh", "dash", "zsh", "ksh", "python3", "python", "perl", "ruby")
)
) and
(
process.command_line : ("/tmp/*", "/var/tmp/*", "/dev/shm/*") or
process.command_line : ("*nc *", "*ncat *", "*netcat*", "*socat*") or
process.command_line : ("*bash -i*", "*sh -i*", "*dash -i*") or
process.command_line : ("*/etc/init.d/*", "*/etc/rc.*", "*/etc/cron*") or
process.command_line : ("*curl *", "*wget *", "*chmod *")
) Detects T1564.011 Ignore Process Interrupts via two patterns: (1) nohup invocations on Linux/macOS, particularly those targeting suspicious paths (/tmp, /dev/shm), network tools (nc, socat), interactive shells, or persistence locations (/etc/init.d); (2) PowerShell processes on Windows combining error suppression flags (SilentlyContinue, -ErrorAction Ignore) with malicious indicators such as download cradles, encoded commands, persistence actions, or defense evasion.
Data Sources
Required Tables
False Positives & Tuning
- Legitimate use of nohup by system administrators running long-lived maintenance scripts or backup jobs that must survive SSH session termination
- CI/CD pipeline agents and build systems invoking nohup to daemonize build workers, test runners, or artifact publishing processes
- PowerShell scripts using -ErrorAction SilentlyContinue for defensive scripting patterns where cmdlets may fail gracefully, such as checking for optional registry keys or testing network connectivity
Other platforms for T1564.011
Testing Methodology
Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1nohup Background Execution with Network Listener
Expected signal: Linux auditd EXECVE record: a0='nohup', a1='nc', a2='-lvp', a3='14444', a4='-s', a5='127.0.0.1'. A second EXECVE record for the nc process itself with ppid matching the nohup process. MDE DeviceProcessEvents: FileName='nohup' with child process FileName='nc' where InitiatingProcessFileName='nohup'. DeviceNetworkEvents: nc process creating a listening socket on port 14444.
- Test 2nohup Protecting Interpreter from Temp Directory
Expected signal: Auditd EXECVE: a0='chmod', a1='+x', a2='/tmp/df00tech_test_payload.sh' followed by a0='nohup', a1='/tmp/df00tech_test_payload.sh'. MDE DeviceFileEvents: file creation at /tmp/df00tech_test_payload.sh. DeviceProcessEvents: FileName='nohup', ProcessCommandLine contains '/tmp/' (TempDirPayload indicator). A second DeviceProcessEvents record for bash/sh with InitiatingProcessFileName='nohup' and FolderPath='/tmp/'.
- Test 3Programmatic Signal Masking via Python
Expected signal: Auditd EXECVE: a0='python3', a1='-c', a2 contains 'signal.SIG_IGN'. MDE DeviceProcessEvents: FileName='python3', ProcessCommandLine contains 'SIG_IGN' and 'signal'. /proc/<pid>/status SigIgn field will be non-zero (e.g., 0x0000000000003c06 with SIGHUP=1, SIGINT=2, SIGTERM=15, SIGPIPE=13 masked). Attempting `kill -SIGTERM <pid>` will have no effect; only `kill -9 <pid>` terminates the process.
- Test 4PowerShell Error Suppression with Download Cradle
Expected signal: Sysmon Event ID 1: Process Create — Image=powershell.exe, CommandLine contains 'ErrorActionPreference' and 'SilentlyContinue' and 'Net.WebClient' and 'DownloadString' and 'Invoke-WebRequest'. Sysmon Event ID 3: Network Connection attempts to 127.0.0.1:19999 (will fail with connection refused). PowerShell ScriptBlock Log Event ID 4104 in Microsoft-Windows-PowerShell/Operational with full script content.
References (11)
- https://attack.mitre.org/techniques/T1564/011/
- https://man7.org/linux/man-pages/man7/signal.7.html
- https://linux.die.net/man/1/nohup
- https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-7.3#erroractionpreference
- https://www.crowdstrike.com/blog/observations-from-the-stellarparticle-campaign/
- https://cloud.google.com/blog/topics/threat-intelligence/boldmove-north-korea-fortigate
- https://www.mandiant.com/resources/blog/fortinet-malware-ecosystem
- https://www.deepinstinct.com/blog/bpfdoor-an-active-chinese-global-surveillance-tool
- https://www.huntress.com/blog/a-brief-history-of-sea-turtle
- https://www.jamf.com/blog/shlayer-malware-abusing-gatekeeper-bypass-on-macos/
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1564.011/T1564.011.md
Unlock Pro Content
Get the full detection package for T1564.011 including response playbook, investigation guide, and atomic red team tests.