Skip to content

Commit b9089ed

Browse files
committed
Add OpenSSH TCP forwarding channel detection
1 parent 65b39fa commit b9089ed

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
title: OpenSSH TCP Forwarding Channel Activity
2+
id: b2e0be00-72b7-474a-87fe-ae2d1cebc8ea
3+
status: test
4+
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.
5+
references:
6+
- https://attack.mitre.org/techniques/T1572/
7+
- https://github.com/openssh/openssh-portable
8+
- https://github.com/SigmaHQ/sigma/issues/6117
9+
author: Mark C
10+
date: 2026-07-15
11+
tags:
12+
- attack.command-and-control
13+
- attack.lateral-movement
14+
- attack.t1572
15+
- attack.t1021.004
16+
logsource:
17+
product: linux
18+
service: sshd
19+
detection:
20+
keywords_direct_tcpip:
21+
- 'server_request_direct_tcpip'
22+
- 'ctype direct-tcpip'
23+
- 'new direct-tcpip'
24+
keywords_remote_forward:
25+
- 'server_input_global_request: rtype tcpip-forward'
26+
- 'tcpip-forward listen'
27+
- 'new forwarded-tcpip'
28+
condition: 1 of keywords_*
29+
falsepositives:
30+
- Administrators using SSH local port forwarding with -L
31+
- Administrators using SSH dynamic SOCKS forwarding with -D
32+
- Administrators using SSH remote port forwarding with -R
33+
- Bastion hosts, jump boxes, or developer workflows where SSH forwarding is expected
34+
- Environments that intentionally enable OpenSSH LogLevel DEBUG for troubleshooting or monitoring
35+
level: medium

0 commit comments

Comments
 (0)