Response playbooks, investigation guides, and Atomic Red Team tests are Pro-only. Upgrade to unlock the full detection package for THREAT-Exfil-USBRemovableMedia.

Upgrade to Pro
THREAT-Exfil-USBRemovableMedia Elastic Security · Elastic

Detect Data Exfiltration via USB Removable Media in Elastic Security

Adversaries and malicious insiders may copy sensitive files to a USB removable drive to exfiltrate data outside of network-monitored channels, bypassing DLP and network-based egress controls entirely. This is especially relevant in air-gapped or high-security environments where physical media is the only viable exfiltration path. Detection combines removable-storage device arrival events with high-volume file-copy activity from sensitive directories to the newly mounted volume within a short window.

MITRE ATT&CK

Tactic
Exfiltration

Elastic Detection Query

Elastic Security (Elastic)
eql
sequence by host.name with maxspan=30m
  [any where event.category == "driver" and event.action : ("device-connected", "usb-drive-mounted")]
  [file where event.type == "creation" and
   file.path : ("D:\\*", "E:\\*", "F:\\*", "G:\\*")]
| stats count() by host.name, user.name
high severity medium confidence

Detects a removable storage device connection event followed within 30 minutes by file creation activity on a non-system drive letter, indicating potential bulk data movement onto USB media. Maps to MITRE ATT&CK T1052.001.

Data Sources

Elastic Endpoint SecurityElastic Defend (file and driver events)Winlogbeat with Sysmon

Required Tables

logs-endpoint.events.file-*logs-endpoint.events.driver-*

False Positives & Tuning

  • Authorized IT imaging or provisioning tasks copying files to removable media
  • Approved offline backup workflows using encrypted removable drives
  • Media/creative teams transferring large asset files to portable storage for delivery

Other platforms for THREAT-Exfil-USBRemovableMedia


Testing Methodology

Validate this detection against 2 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 1Bulk File Copy to Removable Drive via PowerShell

    Expected signal: Sysmon Event ID 11: 30 FileCreate events with TargetFilename under E:\ within a few seconds. Windows Event ID 2003/2100 (or DeviceEvents UsbDriveMounted) showing the E: volume was previously connected. DeviceFileEvents recording each file write with FileSize and InitiatingProcessAccountName.

  2. Test 2Large Single-File Archive Copy to USB Drive

    Expected signal: Sysmon Event ID 11: FileCreate for E:\archive_test.zip with FileSize ~60MB. DeviceFileEvents recording a single file write exceeding the 50MB threshold.

Unlock playbooks & atomic tests with Pro

Get the full detection package for THREAT-Exfil-USBRemovableMedia — response playbook and atomic red team tests, plus investigation guidance and hunting queries.

df00tech Pro — £29/user/month

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections

Detection Variants (1)

Different telemetry and tradecraft for the same technique — pick the one that matches the data you collect.