Detection rules › Sigma

Port Forwarding Activity Via SSH.EXE

Status
test
Severity
medium
Log source
category process_creation, product windows
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects port forwarding activity via SSH.exe

Known false positives

  • Administrative activity using a remote port forwarding to a local port

MITRE ATT&CK coverage

Telemetry coverage

Rule body

title: Port Forwarding Activity Via SSH.EXE
id: 327f48c1-a6db-4eb8-875a-f6981f1b0183
status: test
description: Detects port forwarding activity via SSH.exe
references:
    - https://www.absolomb.com/2018-01-26-Windows-Privilege-Escalation-Guide/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-10-12
modified: 2024-03-05
tags:
    - attack.command-and-control
    - attack.lateral-movement
    - attack.t1572
    - attack.t1021.001
    - attack.t1021.004
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\ssh.exe'
        CommandLine|contains|windash: ' -R '
    condition: selection
falsepositives:
    - Administrative activity using a remote port forwarding to a local port
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\ssh.exe'
    CommandLine|contains|windash: ' -R '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -R transforms: windash corpus 10 (sigma 10)
field:"CommandLine" kind:match value:" -R "
Imageends_with
  • \ssh.exe corpus 3 (sigma 3)
field:"Image" kind:ends_with value:"\ssh.exe"