Musci Folder Execution
Query
Tags:
Query:
DeviceFileEvents
| where ActionType == @"FileCreated" and FolderPath contains "music" and FolderPath contains "users" and FileName endswith ".exe"
and InitiatingProcessAccountName != @"system" and InitiatingProcessVersionInfoCompanyName != @"Parallels International GmbH"
| invoke FileProfile()
| where GlobalPrevalence <= 10
References:Explanation
This query is looking for specific file creation events on devices. Here's a simple summary:
- Source Table: It starts by looking at the
DeviceFileEventstable, which logs file-related activities on devices. - File Creation: It filters for events where a file was created (
ActionType == "FileCreated"). - Folder Path: It further narrows down to files created in folders that include both "music" and "users" in their path.
- File Type: It only considers files with names ending in ".exe" (executable files).
- Exclusions: It excludes events where the file creation was initiated by the "system" account or by a process from the company "Parallels International GmbH".
- File Profile: It uses the
FileProfile()function to get additional information about the files. - Global Prevalence: Finally, it filters to include only those files that have a global prevalence of 10 or less, meaning these files are rare and not commonly found across devices.
In essence, this query identifies rare executable files created in specific user music directories, excluding those created by system processes or Parallels software.
Details

Ali Hussein
Released: October 11, 2023
Tables
DeviceFileEvents
Keywords
Devices
Operators
==andcontainsendswith!=invoke<=