Skip to main content

USB Mass Storage Device Formatting

Preparation
activity
Updated 23 November 2026

A subject formats a USB mass storage device using a target system to prepare the medium for storing or transferring information in preparation for a subsequent infringement. This may involve a USB flash drive, external hard disk drive, or solid-state drive connected through a compatible USB interface. Formatting may establish or recreate a file system, initialize the storage volume, or make the device compatible with the operating systems through which information is intended to be transferred. Depending on the selected formatting method, the operation may also remove existing file system references or data from the device.

1
Prevention Strategies
6
Detection Methods
0
Tactics
3
Contributors

Prevention Strategies (1)

Restrict Removable Disk Mounting, Group Policy

Using Group Policy on Windows it is possible to block execute, read, and write operations related to a removeable disk, such as an SD card or USB mass storage devices.In the Group Policy Editor, navigate to:Computer Configuration -> Administrative Templates -> System -> Removable Storage Access Open the following policies and set them all to Enabled:Removeable Disk: Deny execute accessRemoveable Disk: Deny read accessRemoveable Disk: Deny write access

From the Matrix:

Using Group Policy on Windows it is possible to block execute, read, and write operations related to a removeable disk, such as an SD card or USB mass storage devices.In the Group Policy Editor, navig...

Our pillar mapping:
Identity & SaaS

Detection Methods (6)

MountedDevices Registry Key

Located at HKLM\SYSTEM\MountedDevices, this registry key provides insights into the most recently mounted devices mounted to the system, such as USB drives, hard drives, and other storage devices. It records detailed information that may include; drive letter, volume GUID, and information from the USBSTOR registry key.These details can be cross-referenced with evidence in the USB and USBSTOR registry keys.

Shellbags, USB Removable Storage

Shellbags are a set of Windows registry keys that contain details about a user-viewed folder, such as its size, position, thumbnail, and timestamps. Typically Shellbag information is created for folders that have been opened and closed with Windows File Explorer and default settings adjusted. However, Shellbag information can be created under various situations across different versions of Windows.Shellbags are located in the following registry keys:Windows XPNTUSER.DAT\Software\Microsoft\Windows\Shell\BagMRUNTUSER.DAT\Software\Microsoft\Windows\Shell\BagsNTUSER.DAT\Software\Microsoft\Windows\ShellNoRoam\BagMRUNTUSER.DAT\Software\Microsoft\Windows\ShellNoRoam\Bags Windows 7 and laterNTUSER.DAT\Software\Microsoft\Windows\Shell\BagMRUNTUSER.DAT\Software\Microsoft\Windows\Shell\BagsUsrClass.dat\Local Settings\Software\Microsoft\Windows\Shell\BagMRUUsrClass.dat\Local Settings\Software\Microsoft\Windows\Shell\Bags Shellbags can disclose information about USB removable storage drives that are connected to the system, disclosing the drive letter and any files that were accessed from the drive.

USB Registry Key

Located at HKLM\SYSTEM\ControlSet001\Enum\USB, it provides a rich information source about USB devices connected to a Windows system. The information you can typically find under this key includes; connection status, information from the USBSTOR registry key, last write time, and installation date.These details can be cross-referenced with evidence in the MountedDevices and USBSTOR registry keys.

USBSTOR Registry Key

Located at HKLM\SYSTEM\ControlSet001\Enum\USBSTOR in the Windows registry, it holds comprehensive details for each device connected via USB ports. This key features individual subkeys for every device connected to the system, where you can find extensive information, including; timestamps, serial number, unique ID, container ID, friendly name, device name, make, model and type.These details can be cross-referenced with evidence in the MountedDevices and USB registry keys.

Windows Event Log, DriverFrameworks-UserMode

This Event log is not enabled by default.The log file can be located at %systemroot%\System32\winevt\Logs\Microsoft-Windows-DriverFrameworks-UserMode%4Operational.evtx.Once a USB drive is connected, the logs will begin to populate. Each log entry includes the device ID (as registered in the system), the time it was logged, and a description of the occurrence.Event ID 2003 marks the initiation of a USB device connection. This event logs when a USB device is first recognized and connected to the system. Event IDs 2100 and 2102 track when a USB device is disconnected or a connection session ends. Event ID 2100 typically captures an intermediate disconnection, while Event ID 2102 logs the final disconnection of the USB device. By correlating the timestamps associated with the same Device ID, an investigator can determine the duration for which a USB device was connected to the system.

Windows Setupapi.dev.log

The setupapi.dev file, located in %systemroot%\INF\setupAPI.dev, is a text file that documents the details of the first time a specific device was connected to the computer. This file ensures the system has the appropriate drivers to read and access the media. Each log entry in this file begins with a section header, where the latter part includes the device ID. This file does not provide information as to when the device was unplugged or disconnected.

Contributors

Forscie® Limited
The ITM Team
Khaled A. Mohamed

Our pillar mapping

Our own keyword match of each prevention and detection to the Insider Risk Index's five pillars. It is not part of the Forscie Matrix and not a measured value.

Visibility
2
Prevention & Coaching
Investigation & Evidence
3
Identity & SaaS
2
Phishing Resilience

Attribution

This technique is part of the Forscie® Insider Threat Matrix™. Copyright 2026 Forscie® Limited. Licensed under Apache License 2.0.

View on Forscie® Insider Threat Matrix™
USB Mass Storage Device Formatting | Insider Risk Index