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 = "2025/03/20"
 6
 7[rule]
 8author = ["Elastic"]
 9description = """
10Identifies use of the Windows file system utility (fsutil.exe) to gather information about attached peripheral devices
11and components connected to a computer system.
12"""
13from = "now-9m"
14index = [
15    "endgame-*",
16    "logs-crowdstrike.fdr*",
17    "logs-endpoint.events.process-*",
18    "logs-m365_defender.event-*",
19    "logs-sentinel_one_cloud_funnel.*",
20    "logs-system.security*",
21    "logs-windows.forwarded*",
22    "logs-windows.sysmon_operational-*",
23    "winlogbeat-*",
24]
25language = "eql"
26license = "Elastic License v2"
27name = "Peripheral Device Discovery"
28note = """## Triage and analysis
29
30### Investigating Peripheral Device Discovery
31
32After 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.
33
34This 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.
35
36#### Possible investigation steps
37
38- 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.
39- Identify the user account that performed the action and whether it should perform this kind of action.
40- Investigate other alerts associated with the user/host during the past 48 hours.
41- Investigate any abnormal account behavior, such as command executions, file creations or modifications, and network connections.
42- Determine whether this activity was followed by suspicious file access/copy operations or uploads to file storage services.
43
44### False positive analysis
45
46- 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.
47
48### Response and remediation
49
50- Initiate the incident response process based on the outcome of the triage.
51- Isolate the involved hosts to prevent further post-compromise behavior.
52- 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.
53- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
54- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
55- 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).
56"""
57risk_score = 21
58rule_id = "0c7ca5c2-728d-4ad9-b1c5-bbba83ecb1f4"
59severity = "low"
60tags = [
61    "Domain: Endpoint",
62    "OS: Windows",
63    "Use Case: Threat Detection",
64    "Tactic: Discovery",
65    "Resources: Investigation Guide",
66    "Data Source: Elastic Endgame",
67    "Data Source: Elastic Defend",
68    "Data Source: Windows Security Event Logs",
69    "Data Source: Microsoft Defender for Endpoint",
70    "Data Source: Sysmon",
71    "Data Source: SentinelOne",
72    "Data Source: Crowdstrike",
73]
74timestamp_override = "event.ingested"
75type = "eql"
76
77query = '''
78process where host.os.type == "windows" and event.type == "start" and
79  (process.name : "fsutil.exe" or ?process.pe.original_file_name == "fsutil.exe") and
80  process.args : "fsinfo" and process.args : "drives"
81'''
82
83
84[[rule.threat]]
85framework = "MITRE ATT&CK"
86[[rule.threat.technique]]
87id = "T1120"
88name = "Peripheral Device Discovery"
89reference = "https://attack.mitre.org/techniques/T1120/"
90
91
92[rule.threat.tactic]
93id = "TA0007"
94name = "Discovery"
95reference = "https://attack.mitre.org/tactics/TA0007/"
...
toml

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.

  • 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.
  • 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.
  • 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

to-top