🛡️ FileMonitor is a lightweight kernel-mode MiniFilter driver for Windows that logs file activity like creation, reading, writing, and deletion.
- Logs key file system operations:
- 📄 Create / Open
- ✏️ Read / Write
- 🗑️ Delete / Rename
- Uses
DbgPrintfor logging (view via DebugView) - Built with WDK + KMDF in C++
- Great for auditing or forensic tools
- Windows 10/11 x64
- Visual Studio 2019/2022 + Windows Driver Kit (WDK)
- 🔧 Secure Boot disabled
- 🧪 Test signing enabled (
bcdedit /set testsigning on)
- Open
FileMonitor.slnin Visual Studio - Set build config to:
Release | x64 - Build the project → generates
FileMonitor.sysandFileMonitor.inf
sc create FileMonitor type= kernel binPath= "C:\Path\To\FileMonitor.sys"
sc start FileMonitorCheck it's running:
fltmc- Download DebugView from Sysinternals
- Run as Admin
- Enable ✅ Capture Kernel
- Open / create / modify files → watch logs appear like:
FileMonitor: Operation 3 on \Device\...\file.txt
sc stop FileMonitor
sc delete FileMonitorThis driver is test-signed and intended for development use only. Do not deploy on production systems without proper signing.
MIT License