Linux Process Creating xterm Reverse Shell Display Tunneling

Alerts on xterm processes started with -display and display endpoint ":1" consistent with a reverse shell tunnel.

FreeReviewedSigma · Medium · v2
Product
linux
Category
process_creation
Author
@d4ns4n_ (SigmaHQ), DRL 1.1
Published
2023-04-24
Updated
2026-07-31
title: Linux Process Creating xterm Reverse Shell Display Tunneling
id: 8efdeb72-e35b-41b9-b1bf-292cce22f70a
status: test
description: This rule flags Linux process executions where the binary path or name contains "xterm" and the command line includes "-display" with a target ending in ":1". Attackers may use xterm with display forwarding/tunneling to establish or interact with a remote shell pathway. The detection relies on process creation telemetry, specifically the Image field and the full CommandLine content.
references:
  - https://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet
  - https://www.revshells.com/
  - https://github.com/SigmaHQ/sigma/blob/master/rules/linux/process_creation/proc_creation_lnx_xterm_reverse_shell.yml
author: "@d4ns4n_, Huntrule Team"
date: 2023-04-24
tags:
  - attack.execution
  - attack.t1059
logsource:
  category: process_creation
  product: linux
detection:
  selection:
    Image|contains: xterm
    CommandLine|contains: -display
    CommandLine|endswith: :1
  condition: selection
falsepositives:
  - Unknown
level: medium
license: DRL-1.1
related:
  - id: 4e25af4b-246d-44ea-8563-e42aacab006b
    type: derived