VeriKQL by Kaushik Saha

T1025 Data from Removable Media

Collectionon attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0511 Detection of Data Access and Collection from Removable Media

AN1410 Windows

Adversary mounts a USB device and begins enumerating, copying, or compressing files using scripting engines, cmd, or remote access tools.

MITRE log sourceIn Microsoft Sentinel
WinEventLog:SecurityEventCode=4663, 4670, 4656
  • Windows Security Events via AMA → SecurityEvent
    SecurityEvent | where EventID in (4663, 4670, 4656)
  • Security Events via Legacy Agent → SecurityEvent
    SecurityEvent | where EventID in (4663, 4670, 4656)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel == "Security" | where EventID in (4663, 4670, 4656)

The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only.

WinEventLog:SystemEventCode=2003
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where EventLog in ("System") | where EventID in (2003)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel in ("System") | where EventID in (2003)
WinEventLog:SysmonEventCode=1
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (1)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (1)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

AN1411 Linux

Adversary mounts external drive to /media or /mnt then accesses or copies targeted data via shell, cp, or tar.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLopen, read, mountNot mapped to Sentinel yet.
journald:systemdudisks2 or udevd logsNot mapped to Sentinel yet.
auditd:SYSCALLexecveNot mapped to Sentinel yet.

AN1412 macOS

Adversary attaches USB drive and accesses sensitive files using Finder, cp, or bash scripts.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedloglog stream --predicate 'eventMessage contains "USBMSC"'Not mapped to Sentinel yet.
fs:fsusagefile reads/writes from /Volumes/Not mapped to Sentinel yet.
macos:osqueryprocess_eventsNot mapped to Sentinel yet.

Content Hub rules tagged with it (1)

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

How the Content Hub rules for T1025 are built: their tables, filters, joins, schedules and windows.

In Sigma rules

No SigmaHQ rule names it or one of its sub-techniques in their tags outright.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.