EaseFilter.FileControl
5.8.8.1
dotnet add package EaseFilter.FileControl --version 5.8.8.1
NuGet\Install-Package EaseFilter.FileControl -Version 5.8.8.1
<PackageReference Include="EaseFilter.FileControl" Version="5.8.8.1" />
<PackageVersion Include="EaseFilter.FileControl" Version="5.8.8.1" />
<PackageReference Include="EaseFilter.FileControl" />
paket add EaseFilter.FileControl --version 5.8.8.1
#r "nuget: EaseFilter.FileControl, 5.8.8.1"
#:package EaseFilter.FileControl@5.8.8.1
#addin nuget:?package=EaseFilter.FileControl&version=5.8.8.1
#tool nuget:?package=EaseFilter.FileControl&version=5.8.8.1
EaseFilter File Control Filter Driver SDK
The EaseFilter File Control SDK is a kernel-level development toolkit for building file security, access control, anti-ransomware, and data protection solutions on Windows. Powered by a high-performance Windows file system minifilter driver, it intercepts and manages file I/O operations in real time—providing granular control far beyond standard Windows APIs or Access Control Lists (ACLs).
With the SDK, developers can control file operations at every stage of the I/O lifecycle. Before an I/O request reaches the underlying file system, you can block or allow file access either natively in the kernel using static filter rules or dynamically at runtime through user-mode callbacks. Additionally, after the file system processes the request, you can intercept and modify the I/O data returned from the file system—enabling advanced capabilities such as transparent encryption, data redaction, and virtualized file views.
Documentation & Official Guide: EaseFilter File Control Filter Driver SDK
Table of Contents
- Core Architecture
- Key Capabilities
- Filter Rule Configuration
- Code Examples (C#)
- Supported Languages & Integrations
- Getting Started
- License & Support
Core Architecture
The SDK bridges your user-mode application and the Windows kernel by integrating directly into the Windows I/O stack—positioned between the Windows I/O Manager and underlying file system drivers (such as NTFS and FAT).
The driver uses a dual-layered interception mechanism:
- Pre-Operation Callbacks (
PRE-IO): Intercepts I/O requests (CreateFile,ReadFile,WriteFile, rename, delete) before they reach the file system. Allows synchronous evaluation, modification, redirection, or immediate denial (StatusAccessDenied). - Post-Operation Callbacks (
POST-IO): Triggers after the file system processes the request but before returning results to the calling application. Ideal for auditing, logging, and on-the-fly encryption/decryption.
Key Capabilities
- Real-Time Interception & Access Control: Enforce allow/deny policies on create, open, read, write, rename, and delete operations at the kernel level before requests touch the disk.
- Pre- and Post-Operation Filtering: Combine synchronous blocking in
PRE-IOcallbacks with asynchronous monitoring and security dashboard logging inPOST-IOcallbacks. - Tamper-Proof File Protection: Lock down critical binaries, configurations, and logs against unauthorized modification or deletion—even from compromised administrator accounts or ransomware.
- Virtual File Systems & Sandboxing: Dynamically redirect write operations from protected directories (e.g.,
C:\Program Files) to isolated sandbox folders usingStatusReparse. - Transparent File Encryption (TFE) Integration: Enforce automatic, on-the-fly AES-256 encryption and decryption for designated folders or removable drives without user intervention.
- Low-Level Kernel-Mode Performance: Built on the native Windows minifilter framework to handle thousands of file I/O operations per second with minimal latency and CPU overhead.
Filter Rule Configuration
Rule Matching Criteria
Filter rules define what the driver monitors and how policies are enforced. You can combine multiple matching criteria:
- File/Folder Path Masks: Target files using wildcards (e.g.,
C:\SensitiveData\*,*.docx) and define exclude masks to bypass trusted paths and reduce overhead. - Process Verification & Trusted Paths: Filter by originating process name/path, or enforce Zero Trust by verifying digital certificate signatures and SHA-256 binary hashes.
- User Security Identifiers (SIDs): Grant or restrict privileges per local or domain Windows user account and group.
- Time-Based Rules: Restrict file access permissions to specific hours of the day or calendar dates.
Access Control Flags
Static access control is enforced directly inside the kernel via bitwise integer flags with zero user-mode round-trip overhead:
| Access Flag | Description |
|---|---|
ALLOW_MAX_ACCESS_RIGHT |
Grants full privileges (read, write, delete, execute, modify). |
LEAST_ACCESS_RIGHT |
Denies all access, effectively locking or hiding the target. |
ALLOW_READ_ACCESS |
Allows the file to be opened and read. |
ALLOW_WRITE_ACCESS |
Allows data to be written to the file. |
ALLOW_FILE_RENAME |
Permits the file or directory to be renamed. |
ALLOW_FILE_DELETE |
Permits the file or directory to be deleted. |
Code Examples (C#)
1. Tamper-Proof Audit Log Protection (Static Rule)
Allow general processes to read and write audit logs while blocking deletion and renaming globally—granting full rotation privileges only to LoggingService.exe:
using EaseFilter.FilterControl;
// 1. Target the audit logs directory
FileFilterRule auditLogRule = new FileFilterRule(@"C:\AuditLogs\*");
// 2. Grant max access, but strip delete and rename rights globally at the kernel level
auditLogRule.AccessFlags = FilterAPI.ALLOW_MAX_ACCESS_RIGHT
& ~FilterAPI.ALLOW_FILE_DELETE
& ~FilterAPI.ALLOW_FILE_RENAME;
// Optional: Receive notifications whenever the filter driver blocks an I/O request
auditLogRule.BooleanConfig |= FilterAPI.BooleanConfig.ENABLE_SEND_DENIED_EVENT;
auditLogRule.NotifiyFileIOWasBlocked += (sender, e) =>
{
Console.WriteLine($"Blocked {e.EventName} by {e.ProcessName} ({e.UserName}) on {e.FileName}: {e.Description}");
};
// 3. Grant the trusted logging service full control for log rotation
auditLogRule.AddProcessRight("LoggingService.exe", FilterAPI.ALLOW_MAX_ACCESS_RIGHT);
// 4. Register the rule
filterControl.AddFilter(auditLogRule);
2. Real-Time Blocking & Auditing (Pre/Post-IO Callbacks)
Synchronously block unauthorized writes in PRE-IO when a threat is detected, while asynchronously logging authorized reads in POST-IO:
using EaseFilter.FilterControl;
FileFilterRule ioRule = new FileFilterRule(@"C:\SensitiveData\*");
ioRule.AccessFlags = FilterAPI.ALLOW_MAX_ACCESS_RIGHT;
ioRule.ControlFileIOEventFilter = ControlFileIOEvents.OnPreFileWrite;
ioRule.MonitorFileIOEventFilter = (uint)FileIOEvents.OnPostFileRead;
// Note: PRE-IO callbacks must execute synchronously
ioRule.OnPreWrite += (sender, e) =>
{
if (ExfiltrationEngine.IsThreatDetected(e.ProcessName))
{
e.ReturnStatus = NtStatus.StatusAccessDenied;
}
};
ioRule.OnFileRead += (sender, e) =>
{
SecurityDashboard.LogRead(e.FileName, e.UserName);
};
filterControl.AddFilter(ioRule);
3. Dynamic Sandboxing & Path Redirection
Transparently redirect write requests from a protected application folder to an isolated sandbox directory:
using EaseFilter.FilterControl;
FileFilterRule sandboxRule = new FileFilterRule(@"C:\Program Files\LegacyApp\*");
sandboxRule.ControlFileIOEventFilter = ControlFileIOEvents.OnPreFileCreate;
sandboxRule.OnPreCreate += (sender, e) =>
{
if (e.DesiredAccess.HasFlag(FileAccess.Write))
{
e.FileName = e.FileName.Replace(@"C:\Program Files\", @"C:\Sandbox\");
e.ReturnStatus = NtStatus.StatusReparse;
}
};
filterControl.AddFilter(sandboxRule);
4. Transparent AES-256 File Encryption (TFE)
Automatically encrypt and decrypt files on the fly inside a protected directory:
using System.Text;
using EaseFilter.FilterControl;
FileFilterRule tfeRule = new FileFilterRule(@"C:\SecureProjects\*");
tfeRule.EnableEncryption = true;
// Use a securely managed 256-bit AES key in production
tfeRule.EncryptionKey = Encoding.UTF8.GetBytes("YourSecure256BitEncryptionKey123");
filterControl.AddFilter(tfeRule);
Supported Languages & Integrations
- Languages: C#, C++, Python, Java, Go, and Rust
- Common Use Cases: Endpoint Security, Zero Trust File Access, Data Loss Prevention (DLP), Ransomware Protection, Folder Lockers, Secure Sandboxes, and Cloud Storage Tiering
- Ecosystem Integrations: AI Decision Engines, SIEM Platforms, and YARA Rule Scanning
Getting Started
- Download the 30-day free trial SDK (
.exeinstaller or.ziparchive) from the EaseFilter File Control SDK page. - Open one of the pre-built Zero Trust, File Protector, File Monitor, or Sandbox templates in your preferred language (C#, C++, Python, Java, Go, or Rust).
- Configure your
FileFilterRulepolicies and run the application with Administrator privileges to load the minifilter driver.
EaseFilter File System Filter Driver SDK Reference
| Product Name | Description |
|---|---|
| Cloud File System SDK | EaseFilter Cloud File System SDK Introduction. |
| CloudTier Storage Tiering SDK | EaseFilter Storage Tiering Filter Driver SDK Introduction. |
| File Monitor SDK | EaseFilter File Monitor Filter Driver SDK Introduction. |
| File Control SDK | EaseFilter File Control Filter Driver SDK Introduction. |
| File Encryption SDK | EaseFilter Transparent File Encryption Filter Driver SDK Introduction. |
| Registry Filter SDK | EaseFilter Registry Filter Driver SDK Introduction. |
| Process Filter SDK | EaseFilter Process Filter Driver SDK Introduction. |
| EaseFilter SDK Programming | EaseFilter Filter Driver SDK Programming. |
EaseFilter SDK Sample Projects
| Sample Project | Description |
|---|---|
| CloudTier Storage Tiering Demo | A HSM File System Filter Driver Demo. |
| CloudTier S3 Tiering Demo | CloudTier S3 Intelligent Tiering Demo. |
| Cloud File DR S3 Demo | Cloud File DR S3 Demo. |
| Amazon S3 File Explorer Demo | Amazon S3 File Explorer Demo. |
| Auto File DRM Encryption | Auto file encryption with DRM data embedded. |
| Transparent File Encrypt | Transparent on access file encryption. |
| Secure File Sharing with DRM | Secure encrypted file sharing with digital rights management. |
| File Monitor Example | Monitor file system I/O in real time, tracking file changes. |
| File Protector Example | Prevent sensitive files from being accessed by unauthorized users or processes. |
| FolderLocker Example | Lock file automatically in a FolderLocker. |
| Process Monitor | Monitor the process creation and termination, block unauthorized process running. |
| Registry Monitor | Monitor the Registry activities, block the modification of the Registry keys. |
| Secure Sandbox Example | A secure sandbox example, block the processes accessing the files out of the box. |
| FileSystemWatcher Example | File system watcher, logging the file I/O events. |
| ZeroTrust Example | Zero trust file access control with encryption feature. |
Filter Driver Reference
- Understand MiniFilter Driver
- Understand File I/O
- Understand I/O Request Packets(IRPs)
- Filter Driver Developer Guide
- MiniFilter Filter Driver Framework
- Isolation Filter Driver
Support
If you have questions or need help, please contact support@easefilter.com
License
This repository contains two distinct licensing categories:
Wrapper/Implementation Code (MIT License): The source code, scripts, and configuration files provided directly in this repository are licensed under the MIT License. You are free to modify, distribute, and use this specific integration code.
EaseFilter SDK (Commercial License): This project requires the EaseFilter SDK (including its binaries, filter drivers, and core libraries) to function. The EaseFilter SDK is proprietary commercial software and is strictly excluded from the MIT License.
To use the EaseFilter SDK for commercial purposes or in a production environment, you must obtain a valid commercial license directly from EaseFilter.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.8.8.1 | 53 | 11/24/2026 |
The SDK bridges the gap between your custom user-mode application and the Windows OS kernel. It integrates directly into the Windows I/O stack, sitting between the Windows I/O Manager and the underlying file system drivers (e.g., NTFS, FAT). This privileged position enables the interception of operations before they ever reach the storage disk.