Skip to content

Commit 86940c2

Browse files
committed
[New] SOCKS Traffic from an Unusual Process
This detection correlates FortiGate's application control SOCKS events with Elastic Defend network event to identify the source process performing SOCKS traffic. Adversaries may use a connection proxy to direct network traffic between systems or act as an intermediary for network communications to a command and control server to avoid direct connections to their infrastructure.
1 parent 5c1ee12 commit 86940c2

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
[metadata]
2+
creation_date = "2025/11/17"
3+
integration = ["endpoint", "fortinet_fortigate"]
4+
maturity = "production"
5+
updated_date = "2025/11/17"
6+
7+
[rule]
8+
author = ["Elastic"]
9+
description = """
10+
This detection correlates FortiGate's application control SOCKS events with Elastic Defend network event to identify the
11+
source process performing SOCKS traffic. Adversaries may use a connection proxy to direct network traffic between systems
12+
or act as an intermediary for network communications to a command and control server to avoid direct connections to their
13+
infrastructure.
14+
"""
15+
from = "now-9m"
16+
index = ["logs-endpoint.events.network-default*", "logs-fortinet_fortigate.log-default-*"]
17+
language = "eql"
18+
license = "Elastic License v2"
19+
name = "SOCKS Traffic from an Unusual Process"
20+
references = ["https://attack.mitre.org/techniques/T1090/"]
21+
risk_score = 43
22+
rule_id = "6926b708-7964-425f-bed8-6e006379df08"
23+
severity = "medium"
24+
tags = [
25+
"Domain: Endpoint",
26+
"OS: Linux",
27+
"OS: Windows",
28+
"OS: macOS",
29+
"Use Case: Threat Detection",
30+
"Tactic: Command and Control",
31+
"Data Source: Elastic Defend",
32+
"Data Source: Fortigate",
33+
"Resources: Investigation Guide",
34+
]
35+
type = "eql"
36+
query = '''
37+
sequence by source.port, source.ip, destination.ip with maxspan=1m
38+
[network where event.module == "fortinet_fortigate" and event.action == "signature" and network.application in ("SOCKS4", "SOCKS5")]
39+
[network where event.module == "endpoint" and event.action in ("disconnect_received", "connection_attempted")]
40+
'''
41+
note = """## Triage and analysis
42+
43+
### Investigating SOCKS Traffic from an Unusual Process
44+
45+
### Possible investigation steps
46+
47+
- Review the process details like command_line, privileges, global relevance and reputation.
48+
- Review the parent process execution details like command_line, global relevance and reputation.
49+
- Examine all network connection details performed by the process during last 48h.
50+
- Examine all localhost network connections performed by the same process to verify if there is any port forwarding with another process on the same machine.
51+
- Correlate the alert with other security events or logs to identify any patterns or additional indicators of compromise related to the same process or network activity.
52+
53+
### False positive analysis
54+
55+
- Browser proxy extensions and Add-ons.
56+
- Development and deployment tools.
57+
- Third party trusted tools using SOCKS for network communication.
58+
59+
### Response and remediation
60+
61+
- Immediately isolate the affected system from the network to prevent further unauthorized access or data exfiltration.
62+
- Terminate the suspicious processes and all associated childs and parents.
63+
- Conduct a thorough review of the system's configuration files to identify unauthorized changes.
64+
- Reset credentials for any accounts associated with the source machine.
65+
- Implement network-level controls to block traffic via SOCKS unless authorized.
66+
- Escalate the incident to the security operations center (SOC) or incident response team for further investigation and to determine if additional systems are affected.
67+
"""
68+
69+
[[rule.threat]]
70+
framework = "MITRE ATT&CK"
71+
72+
[[rule.threat.technique]]
73+
id = "T1090"
74+
name = "Proxy"
75+
reference = "https://attack.mitre.org/techniques/T1090/"
76+
77+
78+
[rule.threat.tactic]
79+
id = "TA0011"
80+
name = "Command and Control"
81+
reference = "https://attack.mitre.org/tactics/TA0011/"

0 commit comments

Comments
 (0)