Suspicious Dynamic Linker Discovery via od
Monitors for dynamic linker discovery via the od utility. od (octal dump) is a command-line utility in Unix operating systems used for displaying data in various formats, including octal, hexadecimal, decimal, and ASCII, primarily used for examining and debugging binary files or data streams. Attackers can leverage od to analyze the dynamic linker by identifying injection points and craft exploits based on the observed behaviors and structures within these files.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2024/02/01"
3integration = ["endpoint", "auditd_manager"]
4maturity = "production"
5updated_date = "2024/05/21"
6
7[rule]
8author = ["Elastic"]
9description = """
10Monitors for dynamic linker discovery via the od utility. od (octal dump) is a command-line utility in Unix operating
11systems used for displaying data in various formats, including octal, hexadecimal, decimal, and ASCII, primarily used
12for examining and debugging binary files or data streams. Attackers can leverage od to analyze the dynamic linker by
13identifying injection points and craft exploits based on the observed behaviors and structures within these files.
14"""
15from = "now-9m"
16index = ["logs-endpoint.events.*", "endgame-*", "auditbeat-*", "logs-auditd_manager.auditd-*"]
17language = "eql"
18license = "Elastic License v2"
19name = "Suspicious Dynamic Linker Discovery via od"
20references = ["https://github.com/arget13/DDexec"]
21risk_score = 21
22rule_id = "0369e8a6-0fa7-4e7a-961a-53180a4c966e"
23setup = """## Setup
24
25
26This rule requires data coming in from Elastic Defend.
27
28### Elastic Defend Integration Setup
29Elastic 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.
30
31#### Prerequisite Requirements:
32- Fleet is required for Elastic Defend.
33- To configure Fleet Server refer to the [documentation](https://www.elastic.co/guide/en/fleet/current/fleet-server.html).
34
35#### The following steps should be executed in order to add the Elastic Defend integration on a Linux System:
36- Go to the Kibana home page and click "Add integrations".
37- In the query bar, search for "Elastic Defend" and select the integration to see more details about it.
38- Click "Add Elastic Defend".
39- Configure the integration name and optionally add a description.
40- Select the type of environment you want to protect, either "Traditional Endpoints" or "Cloud Workloads".
41- 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).
42- We suggest selecting "Complete EDR (Endpoint Detection and Response)" as a configuration setting, that provides "All events; all preventions"
43- 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.
44For more details on Elastic Agent configuration settings, refer to the [helper guide](https://www.elastic.co/guide/en/fleet/8.10/agent-policy.html).
45- Click "Save and Continue".
46- 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.
47For more details on Elastic Defend refer to the [helper guide](https://www.elastic.co/guide/en/security/current/install-endpoint.html).
48"""
49severity = "low"
50tags = [
51 "Domain: Endpoint",
52 "OS: Linux",
53 "Use Case: Threat Detection",
54 "Tactic: Discovery",
55 "Data Source: Elastic Defend",
56 "Data Source: Elastic Endgame",
57 "Data Source: Auditd Manager",
58]
59timestamp_override = "event.ingested"
60type = "eql"
61
62query = '''
63process where host.os.type == "linux" and event.type == "start" and event.action in ("exec", "exec_event", "executed", "process_started")
64 and process.name == "od" and process.args in (
65 "/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2", "/etc/ld.so.preload", "/lib64/ld-linux-x86-64.so.2",
66 "/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2", "/usr/lib64/ld-linux-x86-64.so.2"
67)
68'''
69
70
71[[rule.threat]]
72framework = "MITRE ATT&CK"
73[[rule.threat.technique]]
74id = "T1057"
75name = "Process Discovery"
76reference = "https://attack.mitre.org/techniques/T1057/"
77
78
79[rule.threat.tactic]
80id = "TA0007"
81name = "Discovery"
82reference = "https://attack.mitre.org/tactics/TA0007/"
References
Related rules
- Hping Process Activity
- Nping Process Activity
- Potential Network Scan Executed From Host
- Attempt to Clear Kernel Ring Buffer
- Base16 or Base32 Encoding/Decoding Activity