Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions rules/linux/builtin/sshd/lnx_sshd_openssh_tcp_forwarding_debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
title: OpenSSH TCP Forwarding Channel Activity
id: b2e0be00-72b7-474a-87fe-ae2d1cebc8ea
status: test
description: Detects OpenSSH debug log messages that show SSH TCP forwarding channel activity, including local or dynamic forwarding via direct-tcpip and remote forwarding via tcpip-forward or forwarded-tcpip channels.
references:
- https://attack.mitre.org/techniques/T1572/
- https://github.com/openssh/openssh-portable
- https://github.com/SigmaHQ/sigma/issues/6117
author: Mark C
date: 2026-07-15
tags:
- attack.command-and-control
- attack.lateral-movement
- attack.t1572
- attack.t1021.004
logsource:
product: linux
service: sshd
detection:
keywords_direct_tcpip:
- 'server_request_direct_tcpip'
- 'ctype direct-tcpip'
- 'new direct-tcpip'
keywords_remote_forward:
- 'server_input_global_request: rtype tcpip-forward'
- 'tcpip-forward listen'
- 'new forwarded-tcpip'
condition: 1 of keywords_*
falsepositives:
- Administrators using SSH local port forwarding with -L
- Administrators using SSH dynamic SOCKS forwarding with -D
- Administrators using SSH remote port forwarding with -R
- Bastion hosts, jump boxes, or developer workflows where SSH forwarding is expected
- Environments that intentionally enable OpenSSH LogLevel DEBUG for troubleshooting or monitoring
level: medium