
SSH 端口转发和隧道操作是一种利用SSH协议建立加密通道的技术,允许用户通过加密通道传输数据。常用于安全地穿越防火墙限制访问内部资源。 在网络攻击场景中,攻击者通常会在获取初始访问权限后,利用SSH隧道技术建立隐蔽通道,以实现横向移动、数据渗透和绕过网络安全控制。由于SSH流量本身是加密的,且在企业环境中SSH连接通常被视为合法行为,这使得基于SSH隧道的攻击行为更难被发现。识别此类行为对于及时发现潜在的网络威胁并确保安全至关重要。
识别可疑的SSH隧道和端口转发操作。需要关注SSH命令行中包含端口转发参数(如-D、-L、-R)的行为,来检测可能的隧道或转发活动。
数据源Sysmon,数据样例:
{ "Name": "ParentUser", "Guid": "{ff032593-a8d3-4f13-b0d6-01fc615a0f97}", "EventID": "1", "Version": "5", "Level": "4", "Task": "1", "Opcode": "0", "Keywords": "0x8000000000000000", "SystemTime": "2025-03-21T03:48:53.317288000Z", "EventRecordID": "104113", "ProcessID": "45011", "ThreadID": "45011", "Channel": "Linux-Sysmon/Operational", "Computer": "ubuntu-soclabs", "UserId": "0", "RuleName": "-", "UtcTime": "2025-03-21 03:48:53.320", "ProcessGuid": "{09a89e73-e1a5-67dc-41c0-0eec9a5c0000}", "ProcessId": "48367", "Image": "/usr/bin/ssh", "FileVersion": "-", "Description": "-", "Product": "-", "Company": "-", "OriginalFileName": "-", "CommandLine": "ssh -R 8080:localhost:80 user@10.232.100.3", "CurrentDirectory": "/home", "User": "root", "LogonGuid": "{09a89e73-e005-67dc-0000-000002000000}", "LogonId": "0", "TerminalSessionId": "1210", "IntegrityLevel": "no level", "Hashes": "SHA256=cd0f2cd4cff42bcaca5a1bd6659467d2210678785b96204ea4a5f76af87dba58", "ParentProcessGuid": "{09a89e73-e005-67dc-2d93-2253f0580000}", "ParentProcessId": "48293", "ParentImage": "/usr/bin/bash", "ParentCommandLine": "-bash", "ParentUser": "root", "timestamp": "2025-03-21T03:57:05.192284"}
没有找到匹配的字段