Skip to content

Commit 0fc83fe

Browse files
w0rk3rAegrah
andauthored
[Rule Tuning] Linux 3rd Party EDR Support - Crowdstrike and S1 - 3 (#4343)
* [Rule Tuning] Linux 3rd Party EDR Support - Crowdstrike and S1 - 3 * . * Update rules/linux/command_and_control_ip_forwarding_activity.toml Co-authored-by: Ruben Groenewoud <[email protected]> --------- Co-authored-by: Ruben Groenewoud <[email protected]>
1 parent d6ceb88 commit 0fc83fe

10 files changed

+70
-34
lines changed

rules/linux/command_and_control_ip_forwarding_activity.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[metadata]
22
creation_date = "2024/11/04"
3-
integration = ["endpoint"]
3+
integration = ["endpoint", "sentinel_one_cloud_funnel"]
44
maturity = "production"
5-
updated_date = "2024/11/04"
5+
min_stack_version = "8.13.0"
6+
min_stack_comments = "Breaking change at 8.13.0 for SentinelOne Integration."
7+
updated_date = "2025/01/06"
68

79
[rule]
810
author = ["Elastic"]
@@ -12,7 +14,7 @@ forwarding can be used to route network traffic between different network interf
1214
pivot between networks, exfiltrate data, or establish command and control channels.
1315
"""
1416
from = "now-9m"
15-
index = ["logs-endpoint.events.*"]
17+
index = ["logs-endpoint.events.*", "logs-sentinel_one_cloud_funnel.*", "endgame-*"]
1618
language = "eql"
1719
license = "Elastic License v2"
1820
name = "IPv4/IPv6 Forwarding Activity"
@@ -25,11 +27,13 @@ tags = [
2527
"Use Case: Threat Detection",
2628
"Tactic: Command and Control",
2729
"Data Source: Elastic Defend",
30+
"Data Source: SentinelOne",
31+
"Data Source: Elastic Endgame",
2832
]
2933
timestamp_override = "event.ingested"
3034
type = "eql"
3135
query = '''
32-
process where host.os.type == "linux" and event.type == "start" and event.action == "exec" and
36+
process where host.os.type == "linux" and event.type == "start" and event.action in ("exec", "start", "exec_event") and
3337
process.parent.executable != null and process.command_line like (
3438
"*net.ipv4.ip_forward*", "*/proc/sys/net/ipv4/ip_forward*", "*net.ipv6.conf.all.forwarding*",
3539
"*/proc/sys/net/ipv6/conf/all/forwarding*"

rules/linux/command_and_control_linux_proxychains_activity.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[metadata]
22
creation_date = "2023/08/23"
3-
integration = ["endpoint", "auditd_manager"]
3+
integration = ["endpoint", "auditd_manager", "crowdstrike", "sentinel_one_cloud_funnel"]
44
maturity = "production"
5-
updated_date = "2024/05/21"
5+
min_stack_version = "8.13.0"
6+
min_stack_comments = "Breaking change at 8.13.0 for SentinelOne Integration."
7+
updated_date = "2025/01/06"
68

79
[transform]
810
[[transform.osquery]]
@@ -39,7 +41,7 @@ resources. Attackers can exploit the ProxyChains utility to hide their true sour
3941
perform malicious activities through a chain of proxy servers, potentially masking their identity and intentions.
4042
"""
4143
from = "now-9m"
42-
index = ["logs-endpoint.events.*", "endgame-*", "auditbeat-*", "logs-auditd_manager.auditd-*"]
44+
index = ["logs-endpoint.events.*", "endgame-*", "auditbeat-*", "logs-auditd_manager.auditd-*", "logs-crowdstrike.fdr*", "logs-sentinel_one_cloud_funnel.*"]
4345
language = "eql"
4446
license = "Elastic License v2"
4547
name = "ProxyChains Activity"
@@ -118,12 +120,14 @@ tags = [
118120
"Data Source: Elastic Defend",
119121
"Data Source: Elastic Endgame",
120122
"Data Source: Auditd Manager",
123+
"Data Source: Crowdstrike",
124+
"Data Source: SentinelOne",
121125
]
122126
timestamp_override = "event.ingested"
123127
type = "eql"
124128

125129
query = '''
126-
process where host.os.type == "linux" and event.type == "start" and event.action in ("exec", "exec_event", "executed", "process_started")
130+
process where host.os.type == "linux" and event.type == "start" and event.action in ("exec", "exec_event", "start", "ProcessRollup2", "executed", "process_started")
127131
and process.name == "proxychains"
128132
'''
129133

rules/linux/command_and_control_linux_ssh_x11_forwarding.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[metadata]
22
creation_date = "2023/08/23"
3-
integration = ["endpoint"]
3+
integration = ["endpoint", "crowdstrike", "sentinel_one_cloud_funnel"]
44
maturity = "production"
5-
updated_date = "2024/10/18"
5+
min_stack_version = "8.13.0"
6+
min_stack_comments = "Breaking change at 8.13.0 for SentinelOne Integration."
7+
updated_date = "2025/01/06"
68

79
[transform]
810
[[transform.osquery]]
@@ -39,7 +41,7 @@ can abuse X11 forwarding for tunneling their GUI-based tools, pivot through comp
3941
communication channels, enabling lateral movement and facilitating remote control of systems within a network.
4042
"""
4143
from = "now-9m"
42-
index = ["logs-endpoint.events.*", "endgame-*"]
44+
index = ["logs-endpoint.events.*", "endgame-*", "logs-crowdstrike.fdr*", "logs-sentinel_one_cloud_funnel.*"]
4345
language = "eql"
4446
license = "Elastic License v2"
4547
name = "Linux SSH X11 Forwarding"
@@ -113,11 +115,13 @@ tags = [
113115
"Tactic: Command and Control",
114116
"Data Source: Elastic Defend",
115117
"Data Source: Elastic Endgame",
118+
"Data Source: Crowdstrike",
119+
"Data Source: SentinelOne",
116120
]
117121
timestamp_override = "event.ingested"
118122
type = "eql"
119123
query = '''
120-
process where host.os.type == "linux" and event.type == "start" and event.action in ("exec", "exec_event") and
124+
process where host.os.type == "linux" and event.type == "start" and event.action in ("exec", "exec_event", "start", "ProcessRollup2") and
121125
process.name in ("ssh", "sshd") and process.args in ("-X", "-Y") and process.args_count >= 3 and
122126
process.parent.name in ("bash", "dash", "ash", "sh", "tcsh", "csh", "zsh", "ksh", "fish")
123127
'''

rules/linux/command_and_control_linux_suspicious_proxychains_activity.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[metadata]
22
creation_date = "2023/08/23"
3-
integration = ["endpoint", "auditd_manager"]
3+
integration = ["endpoint", "auditd_manager", "crowdstrike", "sentinel_one_cloud_funnel"]
44
maturity = "production"
5-
updated_date = "2024/05/21"
5+
min_stack_version = "8.13.0"
6+
min_stack_comments = "Breaking change at 8.13.0 for SentinelOne Integration."
7+
updated_date = "2025/01/06"
68

79
[transform]
810
[[transform.osquery]]
@@ -40,7 +42,7 @@ detection, and perform malicious activities through a chain of proxy servers, po
4042
intentions.
4143
"""
4244
from = "now-9m"
43-
index = ["logs-endpoint.events.*", "endgame-*", "auditbeat-*", "logs-auditd_manager.auditd-*"]
45+
index = ["logs-endpoint.events.*", "endgame-*", "auditbeat-*", "logs-auditd_manager.auditd-*", "logs-crowdstrike.fdr*", "logs-sentinel_one_cloud_funnel.*"]
4446
language = "eql"
4547
license = "Elastic License v2"
4648
name = "Suspicious Utility Launched via ProxyChains"
@@ -144,12 +146,14 @@ tags = [
144146
"Data Source: Elastic Defend",
145147
"Data Source: Elastic Endgame",
146148
"Data Source: Auditd Manager",
149+
"Data Source: Crowdstrike",
150+
"Data Source: SentinelOne",
147151
]
148152
timestamp_override = "event.ingested"
149153
type = "eql"
150154

151155
query = '''
152-
process where host.os.type == "linux" and event.type == "start" and event.action in ("exec", "exec_event", "executed", "process_started")
156+
process where host.os.type == "linux" and event.type == "start" and event.action in ("exec", "exec_event", "start", "ProcessRollup2", "executed", "process_started")
153157
and process.name == "proxychains" and process.args : (
154158
"ssh", "sshd", "sshuttle", "socat", "iodine", "iodined", "dnscat", "hans", "hans-ubuntu", "ptunnel-ng",
155159
"ssf", "3proxy", "ngrok", "gost", "pivotnacci", "chisel*", "nmap", "ping", "python*", "php*", "perl", "ruby",

rules/linux/persistence_kde_autostart_modification.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[metadata]
22
creation_date = "2021/01/06"
3-
integration = ["endpoint"]
3+
integration = ["endpoint", "sentinel_one_cloud_funnel"]
44
maturity = "production"
5-
updated_date = "2024/10/17"
5+
min_stack_version = "8.13.0"
6+
min_stack_comments = "Breaking change at 8.13.0 for SentinelOne Integration."
7+
updated_date = "2025/01/06"
68

79
[transform]
810
[[transform.osquery]]
@@ -81,7 +83,7 @@ Identifies the creation or modification of a K Desktop Environment (KDE) AutoSta
8183
execute upon each user logon. Adversaries may abuse this method for persistence.
8284
"""
8385
from = "now-9m"
84-
index = ["auditbeat-*", "logs-endpoint.events.*", "endgame-*"]
86+
index = ["auditbeat-*", "logs-endpoint.events.*", "endgame-*", "logs-sentinel_one_cloud_funnel.*"]
8587
language = "eql"
8688
license = "Elastic License v2"
8789
name = "Persistence via KDE AutoStart Script or Desktop File Modification"
@@ -203,6 +205,7 @@ tags = [
203205
"Tactic: Persistence",
204206
"Data Source: Elastic Endgame",
205207
"Data Source: Elastic Defend",
208+
"Data Source: SentinelOne",
206209
]
207210
timestamp_override = "event.ingested"
208211
type = "eql"

rules/linux/persistence_kworker_file_creation.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[metadata]
22
creation_date = "2023/10/26"
3-
integration = ["endpoint"]
3+
integration = ["endpoint", "sentinel_one_cloud_funnel"]
44
maturity = "production"
5-
updated_date = "2024/07/18"
5+
min_stack_version = "8.13.0"
6+
min_stack_comments = "Breaking change at 8.13.0 for SentinelOne Integration."
7+
updated_date = "2025/01/06"
68

79
[transform]
810
[[transform.osquery]]
@@ -52,7 +54,7 @@ to be done in kernel space, which might include tasks like handling interrupts,
5254
kernel-related tasks. Attackers may attempt to evade detection by masquerading as a kernel worker process.
5355
"""
5456
from = "now-9m"
55-
index = ["logs-endpoint.events.*"]
57+
index = ["logs-endpoint.events.*", "logs-sentinel_one_cloud_funnel.*", "endgame-*"]
5658
language = "eql"
5759
license = "Elastic License v2"
5860
name = "Suspicious File Creation via Kworker"
@@ -159,6 +161,8 @@ tags = [
159161
"Tactic: Persistence",
160162
"Tactic: Defense Evasion",
161163
"Data Source: Elastic Defend",
164+
"Data Source: SentinelOne",
165+
"Data Source: Elastic Endgame",
162166
]
163167
timestamp_override = "event.ingested"
164168
type = "eql"

rules/linux/persistence_pluggable_authentication_module_creation_in_unusual_dir.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[metadata]
22
creation_date = "2024/12/16"
3-
integration = ["endpoint"]
3+
integration = ["endpoint", "sentinel_one_cloud_funnel"]
44
maturity = "production"
5-
updated_date = "2024/12/16"
5+
min_stack_version = "8.13.0"
6+
min_stack_comments = "Breaking change at 8.13.0 for SentinelOne Integration."
7+
updated_date = "2025/01/06"
68

79
[rule]
810
author = ["Elastic"]
@@ -15,7 +17,7 @@ false_positives = [
1517
"Trusted system module updates or allowed Pluggable Authentication Module (PAM) daemon configuration changes.",
1618
]
1719
from = "now-9m"
18-
index = ["logs-endpoint.events.file*"]
20+
index = ["logs-endpoint.events.file*", "logs-sentinel_one_cloud_funnel.*", "endgame-*"]
1921
language = "eql"
2022
license = "Elastic License v2"
2123
name = "Pluggable Authentication Module (PAM) Creation in Unusual Directory"
@@ -35,6 +37,8 @@ tags = [
3537
"Tactic: Credential Access",
3638
"Tactic: Persistence",
3739
"Data Source: Elastic Defend",
40+
"Data Source: SentinelOne",
41+
"Data Source: Elastic Endgame",
3842
]
3943
timestamp_override = "event.ingested"
4044
type = "eql"

rules/linux/persistence_ssh_key_generation.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[metadata]
22
creation_date = "2024/05/31"
3-
integration = ["endpoint"]
3+
integration = ["endpoint", "sentinel_one_cloud_funnel"]
44
maturity = "production"
5-
updated_date = "2024/09/23"
5+
min_stack_version = "8.13.0"
6+
min_stack_comments = "Breaking change at 8.13.0 for SentinelOne Integration."
7+
updated_date = "2025/01/06"
68

79
[rule]
810
author = ["Elastic"]
@@ -13,7 +15,7 @@ tool to move laterally across a network or maintain persistence by generating un
1315
access to systems.
1416
"""
1517
from = "now-9m"
16-
index = ["logs-endpoint.events.file*", "endgame-*"]
18+
index = ["logs-endpoint.events.file*", "endgame-*", "logs-sentinel_one_cloud_funnel.*"]
1719
language = "eql"
1820
license = "Elastic License v2"
1921
name = "SSH Key Generated via ssh-keygen"
@@ -29,6 +31,7 @@ tags = [
2931
"Tactic: Persistence",
3032
"Data Source: Elastic Endgame",
3133
"Data Source: Elastic Defend",
34+
"Data Source: SentinelOne",
3235
]
3336
timestamp_override = "event.ingested"
3437
type = "eql"

rules/linux/persistence_suspicious_file_opened_through_editor.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[metadata]
22
creation_date = "2023/07/25"
3-
integration = ["endpoint"]
3+
integration = ["endpoint", "sentinel_one_cloud_funnel"]
44
maturity = "production"
5-
updated_date = "2024/05/21"
5+
min_stack_version = "8.13.0"
6+
min_stack_comments = "Breaking change at 8.13.0 for SentinelOne Integration."
7+
updated_date = "2025/01/06"
68

79
[rule]
810
author = ["Elastic"]
@@ -14,7 +16,7 @@ through an editor will trigger this event. Attackers may alter any of the files
1416
persistence, escalate privileges or perform reconnaisance on the system.
1517
"""
1618
from = "now-9m"
17-
index = ["logs-endpoint.events.*", "endgame-*"]
19+
index = ["logs-endpoint.events.*", "endgame-*", "logs-sentinel_one_cloud_funnel.*"]
1820
language = "eql"
1921
license = "Elastic License v2"
2022
max_signals = 1
@@ -30,6 +32,7 @@ tags = [
3032
"Tactic: Privilege Escalation",
3133
"Data Source: Elastic Endgame",
3234
"Data Source: Elastic Defend",
35+
"Data Source: SentinelOne",
3336
]
3437
timestamp_override = "event.ingested"
3538
type = "eql"

rules/linux/privilege_escalation_pkexec_envar_hijack.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[metadata]
22
creation_date = "2022/01/26"
3-
integration = ["endpoint"]
3+
integration = ["endpoint", "sentinel_one_cloud_funnel"]
44
maturity = "production"
5-
updated_date = "2024/05/21"
5+
min_stack_version = "8.13.0"
6+
min_stack_comments = "Breaking change at 8.13.0 for SentinelOne Integration."
7+
updated_date = "2025/01/06"
68

79
[rule]
810
author = ["Elastic"]
@@ -11,7 +13,7 @@ Identifies an attempt to exploit a local privilege escalation in polkit pkexec (
1113
variable injection. Successful exploitation allows an unprivileged user to escalate to the root user.
1214
"""
1315
from = "now-9m"
14-
index = ["logs-endpoint.events.*", "endgame-*"]
16+
index = ["logs-endpoint.events.*", "endgame-*", "logs-sentinel_one_cloud_funnel.*"]
1517
language = "eql"
1618
license = "Elastic License v2"
1719
name = "Potential Privilege Escalation via PKEXEC"
@@ -52,6 +54,7 @@ tags = [
5254
"Data Source: Elastic Endgame",
5355
"Use Case: Vulnerability",
5456
"Data Source: Elastic Defend",
57+
"Data Source: SentinelOne",
5558
]
5659
timestamp_override = "event.ingested"
5760
type = "eql"

0 commit comments

Comments
 (0)