Defender-DeviceFileEvents
5 ActionTypes
| ActionType | Title |
|---|---|
| any | File activity (any) |
| FileCreated | File created |
| FileModified | File modified |
| FileDeleted | File deleted |
| FileRenamed | File renamed |
any: File activity (any)
#Description
File activity (any)
Fields #
| Name | Description |
|---|---|
DeviceId | |
Timestamp | |
ActionType | |
FileName | |
FolderPath | |
SHA256 | |
FileSize | |
InitiatingProcessFileName | |
InitiatingProcessCommandLine | |
InitiatingProcessAccountName |
Common Indicators #
Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.
| Field | Kind | Value | Rules | Vendors |
|---|---|---|---|---|
CommandLine | contains | .bat | 1 rule | elastic, kusto, sigma |
CommandLine | contains | accepteula | 1 rule | kusto, sigma, splunk |
SourceSeverity | eq | High | 1 rule | kusto |
file_name | ends_with | .exe | 1 rule | kusto |
Detection Rules #
View all rules referencing this event →Kusto #
Show 1 more (4 total)
Installation from an iso file don't require network connection most of the time. Activities deviating from these situations can be considered as highly suspicious. Below queries detects opening a mounted image, process creation under a mounted image, and network connection from a process created under a mounted image.
All detections can be used seperately or combined together to generate a higher fidelity alert. Detect opening of a mounted image:
References #
- Microsoft Defender XDR: advanced hunting reference https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-devicefileevents-table
- xdrinternals: XDR table schema https://xdrinternals.com/docs/microsoftxdr/devices/devicefileevents/
FileCreated: File created
#Description
File created
Fields #
| Name | Description | Rules |
|---|---|---|
DeviceId | ||
Timestamp | ||
FileName | ||
FolderPath | 1 detection rule | |
SHA256 | ||
InitiatingProcessFileName |
Common Indicators #
Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.
| Field | Kind | Value | Rules | Vendors |
|---|---|---|---|---|
EventType | eq | FileCreated | 4 rules | kusto |
EventType | eq | ProcessCreated | 2 rules | kusto |
EventType | in | FileCreated | 1 rule | kusto |
EventType | in | FileModified | 1 rule | kusto |
EventType | in | FileRenamed | 1 rule | kusto |
file_name | contains | .bat | 1 rule | kusto |
file_name | contains | .cmd | 1 rule | kusto |
file_name | contains | .com | 1 rule | kusto |
file_name | contains | .cpl | 1 rule | kusto |
file_name | contains | .dll | 1 rule | kusto |
file_name | contains | .exe | 1 rule | kusto |
file_name | contains | .vbs | 1 rule | kusto |
file_name | ends_with | .dll | 1 rule | kusto, splunk |
file_name | ends_with | .exe | 1 rule | kusto |
parent_process_name | eq | customscripthandler.exe | 1 rule | kusto |
Detection Rules #
View all rules referencing this event →Kusto #
Show 4 more (7 total)
References #
- Microsoft Defender XDR: advanced hunting reference https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-devicefileevents-table
- xdrinternals: XDR table schema https://xdrinternals.com/docs/microsoftxdr/devices/devicefileevents/
FileModified: File modified
#Description
File modified. Sysmon-2 fires on FileCreateTime change specifically; Defender's FileModified is broader. Approximate bridge.
Fields #
| Name | Description |
|---|---|
DeviceId | |
Timestamp | |
FileName | |
FolderPath | |
SHA256 | |
InitiatingProcessFileName |
Common Indicators #
Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.
| Field | Kind | Value | Rules | Vendors |
|---|---|---|---|---|
EventType | in | FileCreated | 1 rule | kusto |
EventType | in | FileModified | 1 rule | kusto |
EventType | in | FileRenamed | 1 rule | kusto |
parent_process_name | eq | wsmprovhost.exe | 1 rule | elastic, kusto, splunk |
Detection Rules #
View all rules referencing this event →Kusto #
References #
- Microsoft Defender XDR: advanced hunting reference https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-devicefileevents-table
- xdrinternals: XDR table schema https://xdrinternals.com/docs/microsoftxdr/devices/devicefileevents/
FileDeleted: File deleted
#Description
File deleted
Fields #
| Name | Description |
|---|---|
DeviceId | |
Timestamp | |
FileName | |
FolderPath | |
InitiatingProcessFileName |
References #
- Microsoft Defender XDR: advanced hunting reference https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-devicefileevents-table
- xdrinternals: XDR table schema https://xdrinternals.com/docs/microsoftxdr/devices/devicefileevents/
FileRenamed: File renamed
#Description
File renamed. No clean Windows-native equivalent.
Fields #
| Name | Description |
|---|---|
DeviceId | |
Timestamp | |
FileName | |
FolderPath | |
PreviousFileName | |
InitiatingProcessFileName |
Common Indicators #
Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.
| Field | Kind | Value | Rules | Vendors |
|---|---|---|---|---|
EventType | in | FileCreated | 1 rule | kusto |
EventType | in | FileModified | 1 rule | kusto |
EventType | in | FileRenamed | 1 rule | kusto |
parent_process_name | eq | wsmprovhost.exe | 1 rule | elastic, kusto, splunk |
parent_process_name | in | excel.exe | 1 rule | kusto, splunk |
parent_process_name | in | outlook.exe | 1 rule | kusto, splunk |
parent_process_name | in | powerpnt.exe | 1 rule | kusto, splunk |
parent_process_name | in | winword.exe | 1 rule | kusto, splunk |
Detection Rules #
View all rules referencing this event →Kusto #
References #
- Microsoft Defender XDR: advanced hunting reference https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-devicefileevents-table
- xdrinternals: XDR table schema https://xdrinternals.com/docs/microsoftxdr/devices/devicefileevents/