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

References

Related rules

to-top