Peripheral Device Discovery
Identifies use of the Windows file system utility (fsutil.exe) to gather information about attached peripheral devices and components connected to a computer system.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2020/11/02"
3integration = ["endpoint", "windows", "system", "m365_defender", "sentinel_one_cloud_funnel", "crowdstrike"]
4maturity = "production"
5updated_date = "2024/11/02"
6min_stack_version = "8.14.0"
7min_stack_comments = "Breaking change at 8.14.0 for the Windows Integration."
8
9[rule]
10author = ["Elastic"]
11description = """
12Identifies use of the Windows file system utility (fsutil.exe) to gather information about attached peripheral devices
13and components connected to a computer system.
14"""
15from = "now-9m"
16index = [
17 "winlogbeat-*",
18 "logs-endpoint.events.process-*",
19 "logs-windows.forwarded*",
20 "logs-windows.sysmon_operational-*",
21 "endgame-*",
22 "logs-system.security*",
23 "logs-m365_defender.event-*",
24 "logs-sentinel_one_cloud_funnel.*",
25 "logs-crowdstrike.fdr*",
26]
27language = "eql"
28license = "Elastic License v2"
29name = "Peripheral Device Discovery"
30note = """## Triage and analysis
31
32### Investigating Peripheral Device Discovery
33
34After successfully compromising an environment, attackers may try to gain situational awareness to plan their next steps. This can happen by running commands to enumerate network resources, users, connections, files, and installed security software.
35
36This rule looks for the execution of the `fsutil` utility with the `fsinfo` subcommand to enumerate drives attached to the computer, which can be used to identify secondary drives used for backups, mapped network drives, and removable media. These devices can contain valuable information for attackers.
37
38#### Possible investigation steps
39
40- Investigate the process execution chain (parent process tree) for unknown processes. Examine their executable files for prevalence, whether they are located in expected locations, and if they are signed with valid digital signatures.
41- Identify the user account that performed the action and whether it should perform this kind of action.
42- Investigate other alerts associated with the user/host during the past 48 hours.
43- Investigate any abnormal account behavior, such as command executions, file creations or modifications, and network connections.
44- Determine whether this activity was followed by suspicious file access/copy operations or uploads to file storage services.
45
46### False positive analysis
47
48- Discovery activities are not inherently malicious if they occur in isolation. As long as the analyst did not identify suspicious activity related to the user or host, such alerts can be dismissed.
49
50### Response and remediation
51
52- Initiate the incident response process based on the outcome of the triage.
53- Isolate the involved hosts to prevent further post-compromise behavior.
54- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.
55- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
56- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
57- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
58"""
59risk_score = 21
60rule_id = "0c7ca5c2-728d-4ad9-b1c5-bbba83ecb1f4"
61severity = "low"
62tags = [
63 "Domain: Endpoint",
64 "OS: Windows",
65 "Use Case: Threat Detection",
66 "Tactic: Discovery",
67 "Resources: Investigation Guide",
68 "Data Source: Elastic Endgame",
69 "Data Source: Elastic Defend",
70 "Data Source: System",
71 "Data Source: Microsoft Defender for Endpoint",
72 "Data Source: Sysmon",
73 "Data Source: SentinelOne",
74 "Data Source: Crowdstrike",
75]
76timestamp_override = "event.ingested"
77type = "eql"
78
79query = '''
80process where host.os.type == "windows" and event.type == "start" and
81 (process.name : "fsutil.exe" or ?process.pe.original_file_name == "fsutil.exe") and
82 process.args : "fsinfo" and process.args : "drives"
83'''
84
85
86[[rule.threat]]
87framework = "MITRE ATT&CK"
88[[rule.threat.technique]]
89id = "T1120"
90name = "Peripheral Device Discovery"
91reference = "https://attack.mitre.org/techniques/T1120/"
92
93
94[rule.threat.tactic]
95id = "TA0007"
96name = "Discovery"
97reference = "https://attack.mitre.org/tactics/TA0007/"
Triage and analysis
Investigating Peripheral Device Discovery
After successfully compromising an environment, attackers may try to gain situational awareness to plan their next steps. This can happen by running commands to enumerate network resources, users, connections, files, and installed security software.
This rule looks for the execution of the fsutil
utility with the fsinfo
subcommand to enumerate drives attached to the computer, which can be used to identify secondary drives used for backups, mapped network drives, and removable media. These devices can contain valuable information for attackers.
Possible investigation steps
- Investigate the process execution chain (parent process tree) for unknown processes. Examine their executable files for prevalence, whether they are located in expected locations, and if they are signed with valid digital signatures.
- Identify the user account that performed the action and whether it should perform this kind of action.
- Investigate other alerts associated with the user/host during the past 48 hours.
- Investigate any abnormal account behavior, such as command executions, file creations or modifications, and network connections.
- Determine whether this activity was followed by suspicious file access/copy operations or uploads to file storage services.
False positive analysis
- Discovery activities are not inherently malicious if they occur in isolation. As long as the analyst did not identify suspicious activity related to the user or host, such alerts can be dismissed.
Response and remediation
- Initiate the incident response process based on the outcome of the triage.
- Isolate the involved hosts to prevent further post-compromise behavior.
- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.
- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
Related rules
- Enumerating Domain Trusts via DSQUERY.EXE
- Deleting Backup Catalogs with Wbadmin
- Execution via MSSQL xp_cmdshell Stored Procedure
- Group Policy Discovery via Microsoft GPResult Utility
- Modification of Boot Configuration