Virtual Machine Fingerprinting
An adversary may attempt to get detailed information about the operating system and hardware. This rule identifies common locations used to discover virtual machine hardware by a non-root user. This technique has been used by the Pupy RAT and other malware.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2020/04/27"
3integration = ["endpoint"]
4maturity = "production"
5updated_date = "2024/05/21"
6
7[rule]
8author = ["Elastic"]
9description = """
10An adversary may attempt to get detailed information about the operating system and hardware. This rule identifies
11common locations used to discover virtual machine hardware by a non-root user. This technique has been used by the Pupy
12RAT and other malware.
13"""
14false_positives = [
15 """
16 Certain tools or automated software may enumerate hardware information. These tools can be exempted via user name or
17 process arguments to eliminate potential noise.
18 """,
19]
20from = "now-9m"
21index = ["auditbeat-*", "logs-endpoint.events.*", "endgame-*"]
22language = "kuery"
23license = "Elastic License v2"
24name = "Virtual Machine Fingerprinting"
25risk_score = 73
26rule_id = "5b03c9fb-9945-4d2f-9568-fd690fee3fba"
27setup = """## Setup
28
29This rule requires data coming in from one of the following integrations:
30- Elastic Defend
31- Auditbeat
32
33### Elastic Defend Integration Setup
34Elastic 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.
35
36#### Prerequisite Requirements:
37- Fleet is required for Elastic Defend.
38- To configure Fleet Server refer to the [documentation](https://www.elastic.co/guide/en/fleet/current/fleet-server.html).
39
40#### The following steps should be executed in order to add the Elastic Defend integration on a Linux System:
41- Go to the Kibana home page and click "Add integrations".
42- In the query bar, search for "Elastic Defend" and select the integration to see more details about it.
43- Click "Add Elastic Defend".
44- Configure the integration name and optionally add a description.
45- Select the type of environment you want to protect, either "Traditional Endpoints" or "Cloud Workloads".
46- 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).
47- We suggest selecting "Complete EDR (Endpoint Detection and Response)" as a configuration setting, that provides "All events; all preventions"
48- 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.
49For more details on Elastic Agent configuration settings, refer to the [helper guide](https://www.elastic.co/guide/en/fleet/8.10/agent-policy.html).
50- Click "Save and Continue".
51- 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.
52For more details on Elastic Defend refer to the [helper guide](https://www.elastic.co/guide/en/security/current/install-endpoint.html).
53
54### Auditbeat Setup
55Auditbeat is a lightweight shipper that you can install on your servers to audit the activities of users and processes on your systems. For example, you can use Auditbeat to collect and centralize audit events from the Linux Audit Framework. You can also use Auditbeat to detect changes to critical files, like binaries and configuration files, and identify potential security policy violations.
56
57#### The following steps should be executed in order to add the Auditbeat on a Linux System:
58- Elastic provides repositories available for APT and YUM-based distributions. Note that we provide binary packages, but no source packages.
59- To install the APT and YUM repositories follow the setup instructions in this [helper guide](https://www.elastic.co/guide/en/beats/auditbeat/current/setup-repositories.html).
60- To run Auditbeat on Docker follow the setup instructions in the [helper guide](https://www.elastic.co/guide/en/beats/auditbeat/current/running-on-docker.html).
61- To run Auditbeat on Kubernetes follow the setup instructions in the [helper guide](https://www.elastic.co/guide/en/beats/auditbeat/current/running-on-kubernetes.html).
62- For complete “Setup and Run Auditbeat” information refer to the [helper guide](https://www.elastic.co/guide/en/beats/auditbeat/current/setting-up-and-running.html).
63"""
64severity = "high"
65tags = [
66 "Domain: Endpoint",
67 "OS: Linux",
68 "Use Case: Threat Detection",
69 "Tactic: Discovery",
70 "Data Source: Elastic Endgame",
71 "Data Source: Elastic Defend",
72]
73timestamp_override = "event.ingested"
74type = "query"
75
76query = '''
77event.category:process and host.os.type:linux and event.type:(start or process_started) and
78 process.args:("/sys/class/dmi/id/bios_version" or
79 "/sys/class/dmi/id/product_name" or
80 "/sys/class/dmi/id/chassis_vendor" or
81 "/proc/scsi/scsi" or
82 "/proc/ide/hd0/model") and
83 not user.name:root
84'''
85
86
87[[rule.threat]]
88framework = "MITRE ATT&CK"
89[[rule.threat.technique]]
90id = "T1082"
91name = "System Information Discovery"
92reference = "https://attack.mitre.org/techniques/T1082/"
93
94
95[rule.threat.tactic]
96id = "TA0007"
97name = "Discovery"
98reference = "https://attack.mitre.org/tactics/TA0007/"
Related rules
- ESXI Discovery via Find
- ESXI Discovery via Grep
- Enumeration of Kernel Modules
- Hping Process Activity
- Nping Process Activity