DET-071 · human · confidence Medium
Linux Shell Touching Windows Files
Detect commands run inside WSL that read or change files on the Windows drive through /mnt/c.
Windows Subsystem for Linux mounts the Windows drive under /mnt/c. File actions taken from inside the Linux side may skip some controls that watch normal Windows programs. A user can copy, archive or delete data with Linux tools and leave less in standard Windows file logs.
Capture process creation for wsl.exe and its children, and log command lines. Look for copies, archives or encryption of user and system folders, or large moves to or from /mnt/c.
- Data sources
- EDR process eventsSysmon Event ID 1Shell history in WSL distroMicrosoft Defender for Endpoint
- Platforms
- WindowsLinux
Logic
process_creation | where parent_image endswith "wsl.exe" or image endswith "wslhost.exe" | where command_line has "/mnt/c/Users" and command_line matches /(cp|rsync|tar|zip|openssl enc|gpg)/
False positives
Developers who work in WSL touch /mnt/c continuously. Baseline by role.