Detection Strategy for File/Path Exclusions

ID: DET0051
Domains: Enterprise
Analytics: AN0139, AN0140, AN0141
Version: 1.0
Created: 21 October 2025
Last Modified: 21 October 2025

Analytics

AN0139

Creation or modification of files in directories known to be excluded from AV scanning (e.g., C:\Windows\Temp, Exchange server directories, or default AV exclusions). Defender perspective: correlate file creation with execution behavior or anomalous parent processes writing to excluded paths.

Log Sources
Data Component Name Channel
File Creation (DC0039) WinEventLog:Sysmon EventCode=11
File Access (DC0055) WinEventLog:Security EventCode=4663
Mutable Elements
Field Description
ExcludedPaths List of directories excluded from scanning in the environment (customizable per organization).
ProcessAllowlist Legitimate processes typically writing to excluded paths to minimize false positives.

AN0140

Adversaries writing or moving payloads into directories configured as AV/EDR exclusion paths (e.g., /tmp, /var/lib, or custom directories from auditd exclusion rules). Defender perspective: detect file creation in paths matching known exclusions correlated with unusual parent processes.

Log Sources
Data Component Name Channel
File Creation (DC0039) auditd:SYSCALL open or creat syscalls targeting excluded paths
File Metadata (DC0059) auditd:PATH file path matches exclusion directories
Mutable Elements
Field Description
ExcludedDirectories System- or security-tool-configured exclusion directories where files should rarely change.
CorrelationWindow Time window to correlate file creation in excluded paths with execution or network activity.

AN0141

Suspicious file creation or modification in directories ignored by XProtect or AV exclusions (e.g., ~/Library, temporary cache directories). Defender perspective: monitor file events in ignored paths with correlation to execution or persistence activity.

Log Sources
Data Component Name Channel
File Creation (DC0039) macos:unifiedlog file creation in AV exclusion directories
Process Creation (DC0032) macos:unifiedlog process writes or modifies files in excluded paths
Mutable Elements
Field Description
AVExclusionPaths Paths ignored by AV/XProtect that should be monitored for abnormal writes.
ProcessContext Expected user or application context writing to excluded directories.