EaseFilter.FileSecurity
5.8.8.1
dotnet add package EaseFilter.FileSecurity --version 5.8.8.1
NuGet\Install-Package EaseFilter.FileSecurity -Version 5.8.8.1
<PackageReference Include="EaseFilter.FileSecurity" Version="5.8.8.1" />
<PackageVersion Include="EaseFilter.FileSecurity" Version="5.8.8.1" />
<PackageReference Include="EaseFilter.FileSecurity" />
paket add EaseFilter.FileSecurity --version 5.8.8.1
#r "nuget: EaseFilter.FileSecurity, 5.8.8.1"
#:package EaseFilter.FileSecurity@5.8.8.1
#addin nuget:?package=EaseFilter.FileSecurity&version=5.8.8.1
#tool nuget:?package=EaseFilter.FileSecurity&version=5.8.8.1
EaseFilter Endpoint File Security SDK
Build robust, zero-trust endpoint security solutions with deep, kernel-level visibility and control. The EaseFilter Comprehensive File Security SDK abstracts away the steep learning curve of Windows kernel development, empowering developers to engineer enterprise-grade endpoint security applications (like EDR, DLP, and Antivirus systems) using standard user-mode APIs.
🛡️ Why Kernel-Level Security?
Relying solely on standard Windows Access Control Lists (ACLs) is no longer sufficient to protect enterprise data. Sophisticated malware, ransomware, and insider threats can bypass traditional perimeter defenses and user-mode security hooks.
By operating as a Windows Minifilter Driver, EaseFilter sits directly in the I/O stack. If a file operation occurs—whether it's a document being opened by Excel or a malicious binary attempting to encrypt a system directory—the kernel intercepts it. If the kernel doesn't see it, it didn't happen.
🏗️ Architecture
An endpoint security solution built with EaseFilter consists of core layers bridged by the SDK:
- The Kernel Layer: A minifilter driver that intercepts every single file operation (read, write, delete, execute) before it happens, offering total interception and tamper resistance.
- The User-Mode Layer: Your custom application built with the SDK's APIs (C#, C++, Python, etc.) that evaluates rules and makes
AlloworDenydecisions.
✨ Core Pillars & Practical Use Cases
1. Zero Trust Data Access (ZTDA) & Cryptographic Verification
Implement a "default deny" policy for highly sensitive directories. Allow access only for cryptographically verified binaries.
FileFilterRule ztdaRule = new FileFilterRule(@"C:\Finance\*");
// 1. Deny all access by default
ztdaRule.AccessFlags = FilterAPI.AccessFlag.LEAST_ACCESS_RIGHT;
// 2. Whitelist ONLY the verified custom application by signature/hash
ztdaRule.AddTrustedProcessRight(
"ERP.exe",
FilterAPI.ALLOW_MAX_ACCESS_RIGHT,
"MyCompany-Digital-Signature", // Verifies certificate
"A1B2C3D4E5..." // Verifies SHA-256 hash
);
FilterControl.AddFilterRule(ztdaRule);
2. Adaptive Anti-Ransomware (The "Kill Switch")
Block malicious file operations proactively by monitoring file entropy (randomness) before data is written to the disk.
FileFilterRule ransomwareRule = new FileFilterRule(@"C:\Users\*\Documents\*");
ransomwareRule.ControlFileIOEventFilter = (ulong)ControlFileIOEvents.OnPreFileWrite;
ransomwareRule.OnPreFileWrite += (sender, e) =>
{
// High entropy often indicates encryption
if (CalculateEntropy(e.FileName) > 7.5)
{
// Block the write operation proactively
e.ReturnStatus = NtStatus.Status.AccessDenied;
TerminateProcess(e.ProcessId); // Trigger EDR kill-switch
}
};
FilterControl.AddFilterRule(ransomwareRule);
3. Insider Threat & Data Loss Prevention (DLP)
Stop data theft via USB drives or network shares by intercepting IRP_MJ_WRITE requests for confidential files.
FileFilterRule dlpRule = new FileFilterRule(@"E:\*"); // Target USB drive
dlpRule.ControlFileIOEventFilter = (ulong)ControlFileIOEvents.OnPreFileWrite;
dlpRule.OnPreFileWrite += (sender, e) =>
{
if (HasConfidentialTag(e.FileName))
{
// Deny the kernel-level write request
e.ReturnStatus = NtStatus.Status.AccessDenied;
}
};
FilterControl.AddFilterRule(dlpRule);
4. Forensic Auditing (The "Black Box")
Capture unalterable, granular journal details for HIPAA or ISO 27001 compliance that user-mode logging often misses.
FileFilterRule auditRule = new FileFilterRule(@"C:\PatientRecords\*");
auditRule.ControlFileIOEventFilter = (ulong)(ControlFileIOEvents.OnPostFileRead |
ControlFileIOEvents.OnPostFileWrite |
ControlFileIOEvents.OnPostFileRename);
auditRule.OnPostFileRead += (sender, e) =>
{
string logEntry = $"[Audit] {e.UserName} ({e.ProcessName} - PID: {e.ProcessId}) " +
$"read {e.FileName} at {DateTime.UtcNow} | Status: {e.IoStatus}";
LogToSIEM(logEntry);
};
FilterControl.AddFilterRule(auditRule);
5. Anti-Tampering (Self-Shielding)
Protect your security agent by making its installation directory immutable, even against local Administrator or SYSTEM accounts.
FileFilterRule selfDefenseRule = new FileFilterRule(@"C:\Program Files\MyEnterpriseEDR\*");
// Remove Delete and Write flags by default
selfDefenseRule.AccessFlags = (FilterAPI.AccessFlag)(FilterAPI.ALLOW_MAX_ACCESS_RIGHT
& ~(uint)(FilterAPI.AccessFlag.ALLOW_FILE_DELETE | FilterAPI.AccessFlag.ALLOW_FILE_WRITE));
// Explicitly whitelist ONLY the updater service
selfDefenseRule.AddProcessRight("MyEDR_Updater.exe", FilterAPI.ALLOW_MAX_ACCESS_RIGHT);
FilterControl.AddFilterRule(selfDefenseRule);
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
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.
Support
If you have questions or need help, please contact support@easefilter.com
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 | 64 | 11/23/2026 |
Build robust, zero-trust endpoint security solutions with deep, kernel-level visibility and control. The EaseFilter Comprehensive File Security SDK abstracts away the steep learning curve of Windows kernel development, empowering developers to engineer enterprise-grade endpoint security applications (like EDR, DLP, and Antivirus systems) using standard user-mode APIs.