T1120 CrowdStrike LogScale · LogScale

Detect Peripheral Device Discovery in CrowdStrike LogScale

Adversaries may attempt to gather information about attached peripheral devices and components connected to a computer system. Peripheral devices could include auxiliary resources that support a variety of functionalities such as keyboards, printers, cameras, smart card readers, or removable storage. The information may be used to enhance their awareness of the system and network environment or may be used for further actions — ransomware families identify removable drives for encryption and printers for ransom note delivery, RATs enumerate cameras and Bluetooth devices for surveillance capability profiling, and APT groups map USB storage history to understand data exfiltration opportunities.

MITRE ATT&CK

Tactic
Discovery
Technique
T1120 Peripheral Device Discovery
Canonical reference
https://attack.mitre.org/techniques/T1120/

LogScale Detection Query

CrowdStrike LogScale (LogScale)
cql
#event_simpleName=ProcessRollup2
| FileName = /(?i)(wmic|powershell|pwsh|fsutil|reg)\.exe$/
| CommandLine = /(?i)(Win32_USBHub|Win32_USBController|Win32_DiskDrive|Win32_PhysicalMedia|Win32_CDROMDrive|Win32_PrinterConfiguration|Win32_Printer|Win32_PnPEntity|Win32_SoundDevice|Get-PnpDevice|GetDrives|Get-Volume|Get-Disk|logicaldisk|diskdrive|USBHub|USBController|PhysicalMedia|CDROMDrive|PnPEntity|fsinfo drives|USBSTOR|Enum\USB|Win32_USB)/
| case {
    CommandLine = /(?i)(USBHub|USBController|Win32_DiskDrive|USBSTOR|Win32_USBHub)/ | EnumerationType := "USB_Device" ;
    CommandLine = /(?i)(printer|Win32_Printer|PrinterConfiguration)/ | EnumerationType := "Printer" ;
    CommandLine = /(?i)(logicaldisk|Win32_LogicalDisk|fsinfo drives|DriveInfo|Get-Volume|Get-Disk|PhysicalMedia)/ | EnumerationType := "Drive_Enumeration" ;
    CommandLine = /(?i)(PnpDevice|PnPEntity|CDROMDrive|Win32_SoundDevice)/ | EnumerationType := "PnP_Device" ;
    CommandLine = /(?i)(USBSTOR|Enum.USB)/ | EnumerationType := "USB_Registry_Enum" ;
    * | EnumerationType := "General_Peripheral"
  }
| table([@timestamp, ComputerName, UserName, FileName, CommandLine, ParentBaseFileName, ParentCommandLine, EnumerationType])
| sort(field=@timestamp, order=desc)
medium severity high confidence

Detects peripheral device discovery on Windows endpoints via CrowdStrike Falcon telemetry. Monitors ProcessRollup2 events for wmic.exe, PowerShell, fsutil, and reg.exe executions with command-line patterns indicating enumeration of USB devices, printers, disk drives, PnP devices, and USB registry history — techniques used by ransomware, RATs, and APT groups to profile connected hardware.

Data Sources

CrowdStrike Falcon EDRCrowdStrike Falcon LogScale

Required Tables

ProcessRollup2

False Positives & Tuning

  • CrowdStrike Falcon sensor itself or other endpoint agents performing hardware inventory during initial deployment or update cycles
  • Windows Plug and Play service (svchost hosting PlugPlay) triggering WMI queries on device connection events in legitimate workflows
  • Enterprise software deployment tools (SCCM, Ivanti) running hardware discovery ahead of software compatibility checks or patch management
Download portable Sigma rule (.yml)

Other platforms for T1120


Testing Methodology

Validate this detection against 5 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1USB Hub and Disk Enumeration via WMIC

    Expected signal: Sysmon Event ID 1: Two Process Create events with Image=wmic.exe. First CommandLine contains 'Win32_USBHub' and 'DeviceID,Name,Description'. Second CommandLine contains 'Win32_DiskDrive' and 'MediaType' and 'Removable Media'. Security Event ID 4688 (if command line auditing enabled) for both executions. Microsoft-Windows-WMI-Activity/Operational shows the WMI namespace queries.

  2. Test 2Removable Drive Discovery via PowerShell WMI and PnP

    Expected signal: Sysmon Event ID 1: Process Create with Image=powershell.exe, CommandLine containing 'Win32_LogicalDisk', 'DriveType', 'eq 2', and 'Get-PnpDevice'. PowerShell ScriptBlock Log Event ID 4104 with full deobfuscated script content showing the WMI query with DriveType filter. Console output lists all removable drives with DeviceID and volume names.

  3. Test 3Printer Enumeration via WMIC for Ransom Note Targeting

    Expected signal: Sysmon Event ID 1: Process Create with Image=wmic.exe, CommandLine containing 'printer' and 'PortName,DriverName'. Security Event ID 4688 with full command line. Microsoft-Windows-WMI-Activity/Operational Event ID 5857 showing the Win32_Printer provider loaded. Output lists all configured printers with network vs local status.

  4. Test 4Drive Letter Enumeration via fsutil LOLBin

    Expected signal: Sysmon Event ID 1: Process Create with Image=fsutil.exe, CommandLine='fsutil fsinfo drives'. Security Event ID 4688 if command line auditing is enabled. Output format: 'Drives: C:\ D:\ E:\' — presence of multiple drives beyond C:\ indicates attached removable or additional storage.

  5. Test 5USB Device History Extraction from Registry

    Expected signal: Sysmon Event ID 1: Process Create for reg.exe with CommandLine containing 'USBSTOR'. Sysmon Event ID 12 or 13: RegistryEvent for HKLM\SYSTEM\CurrentControlSet\Enum\USBSTOR registry key queries (if registry monitoring is configured for this path). Security Event ID 4663 if object access auditing is enabled on the USBSTOR registry key. Output contains all USB device classes with vendor IDs, product IDs, and serial numbers.

Unlock Pro Content

Get the full detection package for T1120 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections