mirror of
https://github.com/valitydev/atomic-threat-coverage.git
synced 2024-11-06 09:35:21 +00:00
5.0 KiB
5.0 KiB
Title | External Disk Drive or USB Storage Device |
---|---|
Description | Detects external diskdrives or plugged in USB devices |
ATT&CK Tactic | |
ATT&CK Technique | |
Data Needed | There is no documented Data Needed for this Detection Rule yet |
Trigger | There is no documented Trigger for this Detection Rule yet |
Severity Level | low |
False Positives |
|
Development Status | experimental |
References | There are no documented References for this Detection Rule yet |
Author | Keith Wright |
Detection Rules
Sigma rule
title: External Disk Drive or USB Storage Device
id: f69a87ea-955e-4fb4-adb2-bb9fd6685632
description: Detects external diskdrives or plugged in USB devices
status: experimental
author: Keith Wright
date: 2019/11/20
tags:
- attack.t1091
- attack.t1200
- attack.lateral_movement
- attack.initial_access
logsource:
product: windows
service: security
detection:
selection:
EventID:
- 6416
DeviceClassName: 'DiskDrive'
selection2:
DeviceDescription: 'USB Mass Storage Device'
condition: selection or selection2
falsepositives:
- Legitimate administrative activity
level: low
powershell
Get-WinEvent -LogName Security | where {(((($_.ID -eq "6416") -and $_.message -match "DeviceClassName.*DiskDrive") -or $_.message -match "DeviceDescription.*USB Mass Storage Device")) } | select TimeCreated,Id,RecordId,ProcessId,MachineName,Message
es-qs
(winlog.channel:"Security" AND ((winlog.event_id:("6416") AND DeviceClassName:"DiskDrive") OR DeviceDescription:"USB\\ Mass\\ Storage\\ Device"))
xpack-watcher
curl -s -XPUT -H \'Content-Type: application/json\' --data-binary @- localhost:9200/_watcher/watch/f69a87ea-955e-4fb4-adb2-bb9fd6685632 <<EOF\n{\n "metadata": {\n "title": "External Disk Drive or USB Storage Device",\n "description": "Detects external diskdrives or plugged in USB devices",\n "tags": [\n "attack.t1091",\n "attack.t1200",\n "attack.lateral_movement",\n "attack.initial_access"\n ],\n "query": "(winlog.channel:\\"Security\\" AND ((winlog.event_id:(\\"6416\\") AND DeviceClassName:\\"DiskDrive\\") OR DeviceDescription:\\"USB\\\\ Mass\\\\ Storage\\\\ Device\\"))"\n },\n "trigger": {\n "schedule": {\n "interval": "30m"\n }\n },\n "input": {\n "search": {\n "request": {\n "body": {\n "size": 0,\n "query": {\n "bool": {\n "must": [\n {\n "query_string": {\n "query": "(winlog.channel:\\"Security\\" AND ((winlog.event_id:(\\"6416\\") AND DeviceClassName:\\"DiskDrive\\") OR DeviceDescription:\\"USB\\\\ Mass\\\\ Storage\\\\ Device\\"))",\n "analyze_wildcard": true\n }\n }\n ],\n "filter": {\n "range": {\n "timestamp": {\n "gte": "now-30m/m"\n }\n }\n }\n }\n }\n },\n "indices": [\n "winlogbeat-*"\n ]\n }\n }\n },\n "condition": {\n "compare": {\n "ctx.payload.hits.total": {\n "not_eq": 0\n }\n }\n },\n "actions": {\n "send_email": {\n "throttle_period": "15m",\n "email": {\n "profile": "standard",\n "from": "root@localhost",\n "to": "root@localhost",\n "subject": "Sigma Rule \'External Disk Drive or USB Storage Device\'",\n "body": "Hits:\\n{{#ctx.payload.hits.hits}}{{_source}}\\n================================================================================\\n{{/ctx.payload.hits.hits}}",\n "attachments": {\n "data.json": {\n "data": {\n "format": "json"\n }\n }\n }\n }\n }\n }\n}\nEOF\n
graylog
((EventID:("6416") AND DeviceClassName:"DiskDrive") OR DeviceDescription:"USB Mass Storage Device")
splunk
(source="WinEventLog:Security" (((EventCode="6416") DeviceClassName="DiskDrive") OR DeviceDescription="USB Mass Storage Device"))
logpoint
(event_source="Microsoft-Windows-Security-Auditing" ((event_id IN ["6416"] DeviceClassName="DiskDrive") OR DeviceDescription="USB Mass Storage Device"))
grep
grep -P '^(?:.*(?:.*(?:.*(?=.*(?:.*6416))(?=.*DiskDrive))|.*USB Mass Storage Device))'