Detection rules › Sigma

Potential Xterm Reverse Shell

Status
test
Severity
medium
Log source
product linux, category process_creation
Author
@d4ns4n_
Source
github.com/SigmaHQ/sigma

Detects usage of "xterm" as a potential reverse shell tunnel

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Potential Xterm Reverse Shell
id: 4e25af4b-246d-44ea-8563-e42aacab006b
status: test
description: Detects usage of "xterm" as a potential reverse shell tunnel
references:
    - https://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet
    - https://www.revshells.com/
author: '@d4ns4n_'
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

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|contains: 'xterm'
    CommandLine|contains: '-display'
    CommandLine|endswith: ':1'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLineends_with
  • :1
CommandLinematch
  • -display
Imagematch
  • xterm