Potential Defense Evasion via PRoot

Identifies the execution of the PRoot utility, an open-source tool for user-space implementation of chroot, mount --bind, and binfmt_misc. Adversaries can leverage an open-source tool PRoot to expand the scope of their operations to multiple Linux distributions and simplify their necessary efforts. In a normal threat scenario, the scope of an attack is limited by the varying configurations of each Linux distribution. With PRoot, it provides an attacker with a consistent operational environment across different Linux distributions, such as Ubuntu, Fedora, and Alpine. PRoot also provides emulation capabilities that allow for malware built on other architectures, such as ARM, to be run.The post-exploitation technique called bring your own filesystem (BYOF), can be used by the threat actors to execute malicious payload or elevate privileges or perform network scans or orchestrate another attack on the environment. Although PRoot was originally not developed with malicious intent it can be easily tuned to work for one.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2023/03/07"
 3integration = ["endpoint"]
 4maturity = "production"
 5updated_date = "2024/05/21"
 6
 7[rule]
 8author = ["Elastic"]
 9description = """
10Identifies the execution of the PRoot utility, an open-source tool for user-space implementation of chroot, mount
11--bind, and binfmt_misc. Adversaries can leverage an open-source tool PRoot to expand the scope of their operations to
12multiple Linux distributions and simplify their necessary efforts. In a normal threat scenario, the scope of an attack
13is limited by the varying configurations of each Linux distribution. With PRoot, it provides an attacker with a
14consistent operational environment across different Linux distributions, such as Ubuntu, Fedora, and Alpine. PRoot also
15provides emulation capabilities that allow for malware built on other architectures, such as ARM, to be run.The
16post-exploitation technique called bring your own filesystem (BYOF), can be used by the threat actors to execute
17malicious payload or elevate privileges or perform network scans or orchestrate another attack on the environment.
18Although PRoot was originally not developed with malicious intent it can be easily tuned to work for one.
19"""
20from = "now-9m"
21index = ["logs-endpoint.events.*", "endgame-*"]
22language = "eql"
23license = "Elastic License v2"
24name = "Potential Defense Evasion via PRoot"
25references = ["https://proot-me.github.io/"]
26risk_score = 47
27rule_id = "5c9ec990-37fa-4d5c-abfc-8d432f3dedd0"
28setup = """## Setup
29
30This rule requires data coming in from Elastic Defend.
31
32### Elastic Defend Integration Setup
33Elastic 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.
34
35#### Prerequisite Requirements:
36- Fleet is required for Elastic Defend.
37- To configure Fleet Server refer to the [documentation](https://www.elastic.co/guide/en/fleet/current/fleet-server.html).
38
39#### The following steps should be executed in order to add the Elastic Defend integration on a Linux System:
40- Go to the Kibana home page and click "Add integrations".
41- In the query bar, search for "Elastic Defend" and select the integration to see more details about it.
42- Click "Add Elastic Defend".
43- Configure the integration name and optionally add a description.
44- Select the type of environment you want to protect, either "Traditional Endpoints" or "Cloud Workloads".
45- 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).
46- We suggest selecting "Complete EDR (Endpoint Detection and Response)" as a configuration setting, that provides "All events; all preventions"
47- 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.
48For more details on Elastic Agent configuration settings, refer to the [helper guide](https://www.elastic.co/guide/en/fleet/8.10/agent-policy.html).
49- Click "Save and Continue".
50- 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.
51For more details on Elastic Defend refer to the [helper guide](https://www.elastic.co/guide/en/security/current/install-endpoint.html).
52"""
53severity = "medium"
54tags = [
55    "Domain: Endpoint",
56    "OS: Linux",
57    "Use Case: Threat Detection",
58    "Tactic: Defense Evasion",
59    "Data Source: Elastic Defend",
60    "Data Source: Elastic Endgame",
61]
62timestamp_override = "event.ingested"
63type = "eql"
64
65query = '''
66process where host.os.type == "linux" and event.type == "start" and event.action in ("exec", "exec_event") and
67process.parent.name == "proot"
68'''
69
70
71[[rule.threat]]
72framework = "MITRE ATT&CK"
73[[rule.threat.technique]]
74id = "T1211"
75name = "Exploitation for Defense Evasion"
76reference = "https://attack.mitre.org/techniques/T1211/"
77
78
79[rule.threat.tactic]
80id = "TA0005"
81name = "Defense Evasion"
82reference = "https://attack.mitre.org/tactics/TA0005/"

References

Related rules

to-top