Skip to content

Commit 936ee52

Browse files
committed
[New Rules] DDExec Analysis
1 parent 381ccf4 commit 936ee52

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
[metadata]
2+
creation_date = "2024/01/29"
3+
integration = ["endpoint"]
4+
maturity = "production"
5+
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
6+
min_stack_version = "8.3.0"
7+
updated_date = "2024/01/29"
8+
9+
[rule]
10+
author = ["Elastic"]
11+
description = """
12+
Monitors for /proc/*/maps file reads through the cat utility. The /proc/*/maps file in Linux provides a memory map for a
13+
specific process, detailing the memory segments, permissions, and what files are mapped to these segments. Attackers may
14+
read a process's memory map to identify memory addresses for code injection or process hijacking.
15+
"""
16+
from = "now-9m"
17+
index = ["logs-endpoint.events.*"]
18+
language = "eql"
19+
license = "Elastic License v2"
20+
name = "Suspicious /proc/maps Discovery"
21+
risk_score = 21
22+
rule_id = "2f95540c-923e-4f57-9dae-de30169c68b9"
23+
setup = """
24+
25+
This rule requires data coming in from Elastic Defend.
26+
27+
### Elastic Defend Integration Setup
28+
Elastic Defend is integrated into the Elastic Agent using Fleet. Upon configuration, the integration allows the Elastic Agent to monitor events on your host and send data to the Elastic Security app.
29+
30+
#### Prerequisite Requirements:
31+
- Fleet is required for Elastic Defend.
32+
- To configure Fleet Server refer to the [documentation](https://www.elastic.co/guide/en/fleet/current/fleet-server.html).
33+
34+
#### The following steps should be executed in order to add the Elastic Defend integration on a Linux System:
35+
- Go to the Kibana home page and click "Add integrations".
36+
- In the query bar, search for "Elastic Defend" and select the integration to see more details about it.
37+
- Click "Add Elastic Defend".
38+
- Configure the integration name and optionally add a description.
39+
- Select the type of environment you want to protect, either "Traditional Endpoints" or "Cloud Workloads".
40+
- Select a configuration preset. Each preset comes with different default settings for Elastic Agent, you can further customize these later by configuring the Elastic Defend integration policy. [Helper guide](https://www.elastic.co/guide/en/security/current/configure-endpoint-integration-policy.html).
41+
- We suggest selecting "Complete EDR (Endpoint Detection and Response)" as a configuration setting, that provides "All events; all preventions"
42+
- Enter a name for the agent policy in "New agent policy name". If other agent policies already exist, you can click the "Existing hosts" tab and select an existing policy instead.
43+
For more details on Elastic Agent configuration settings, refer to the [helper guide](https://www.elastic.co/guide/en/fleet/8.10/agent-policy.html).
44+
- Click "Save and Continue".
45+
- To complete the integration, select "Add Elastic Agent to your hosts" and continue to the next section to install the Elastic Agent on your hosts.
46+
For more details on Elastic Defend refer to the [helper guide](https://www.elastic.co/guide/en/security/current/install-endpoint.html).
47+
48+
"""
49+
severity = "low"
50+
tags = [
51+
"Domain: Endpoint",
52+
"OS: Linux",
53+
"Use Case: Threat Detection",
54+
"Tactic: Discovery",
55+
"Data Source: Elastic Defend"
56+
]
57+
timestamp_override = "event.ingested"
58+
type = "eql"
59+
query = '''
60+
process where host.os.type == "linux" and event.action == "exec" and event.type == "start" and
61+
process.name == "cat" and process.args : "/proc/*/maps" and process.entry_leader.name in (
62+
"bash", "dash", "sh", "tcsh", "csh", "zsh", "ksh", "fish"
63+
)
64+
'''
65+
66+
[[rule.threat]]
67+
framework = "MITRE ATT&CK"
68+
69+
[[rule.threat.technique]]
70+
id = "T1057"
71+
name = "Process Discovery"
72+
reference = "https://attack.mitre.org/techniques/T1057/"
73+
74+
[rule.threat.tactic]
75+
id = "TA0007"
76+
name = "Discovery"
77+
reference = "https://attack.mitre.org/tactics/TA0007/"

0 commit comments

Comments
 (0)