The EaseFilter Encryption Filter Driver (EEFD) SDK provides a kernel-mode framework for Windows environments that enables developers to implement military-grade, transparent, "at-rest" data encryption dynamically at the file-system level. By intercepting I/O requests before they hit the physical disk, EEFD secures data seamlessly without requiring any modifications to existing enterprise applications.
🏗 Core Architecture
Unlike traditional volume-level disk encryption, EEFD provides granular, policy-based security operating via two main components:
- Kernel-Mode Filter Driver (
EaseFlt.sys): Sits between the Windows I/O Manager and the file system. It intercepts I/O Request Packets (IRPs) for read/write operations, enforcing encryption policies and executing cryptographic transformations in real-time. - User-Mode API Library (
FilterAPI.dll): A managed/unmanaged library that allows developers to define filter rules, manage encryption keys, and register I/O callbacks from high-level applications.
The advantages of the EaseFilter Encryption SDK:
- Completely transparent file encryption in file system level. The encryption process was done in the write IO request, the decryption process was done in the read IO request, there are no extra IO request needed, it is completely transparent to the applications or users, the encryption or decryption doesn't require the application to interfere.
- Keep encrypted file on disk all the time. Since the decryption data only was kept in memory, there are no extra file created for the decryption.
- Authorized specific processes or users to read the encrypted file. EaseFilter Encryption SDK was implemented with Isolation Mini Filter Driver. When the process or the user was authorized to access the encrypted file, the filter driver will decrypt the data in memory during the read request, so the authorized process can get the clear data back, or it will get the raw encrypted data. When the encryption filter driver is turned off, the application will always get the encrypted raw data.
- Random block level decryption. You can decrypt the blocks of the file, you don't need to decrypt the whole file for all the time. For large encrypted file, if you only want to read the blocks of the data, it will improve the performance dramatically.
- High encryption or decryption performance. EaseFilter Encryption Engine utilizes the US FIPS 140-2 compliant Microsoft CNG libraries, it can support AES-NI (or the Intel Advanced Encryption Standard New Instructions; AES-NI), at an algorithm level AES-NI provides significant speedup of AES. For non-Parallel modes of AES operation (CBC encrypt), AES-NI can provide 2-3 fold gain in performance over a completely software encryption. For parallel modes of AES operation (CBC-decrypt, CTR), AES-NI can provide 10x improvement over a completely software encryption.
The products you can develop with EaseFilter Encryption SDK:
Data encryption at rest. Encryption at rest prevents the attacker from accessing the unencrypted data by ensuring the data is encrypted when on disk.
Data protection.Document encryption. File encryption is very important step for data protection, only the authorized users or processes can read the encrypted data, or will get the raw encrypted data.
Data loss prevention. To prevent the data breach, your data is encrypted all the time, even your data was lost and found in an unauthorized place, they are protected against the unauthorized access.
Secure file sharing with DRM.
Encrypted your files with digital rights management data embedded into the encrypted header, protect, track and control your encrypted files anywhere anytime, you can grant or revoke the access control to any user at any time even the files were shared.
Common Use Cases & Code Examples
1. Data at Rest Encryption
Ensure all files written to a specific directory are immediately and transparently encrypted on the physical disk.
// Encrypt all files within the SecureData directory
FileFilter filter = new FileFilter("C:\\SecureData\\*");
filter.EnableEncryption = true;
// Assign the AES key (in production, fetch this dynamically from a secure KMS)
filter.EncryptionKey = Encoding.UTF8.GetBytes("Your32ByteSuperSecretKeyHere1234");
filterControl.AddFilter(filter);
2. Insider Threat Protection
Prevent unauthorized internal processes or users from accessing clear text. Isolation Minifilter Technology ensures only approved apps get the decrypted view.
FileFilter filter = new FileFilter("C:\\Finance\\*");
filter.EnableEncryption = true;
filter.EncryptionKey = mySecureKey;
// Default: Deny decrypted read access to ALL processes (they will see raw cipher text)
filter.AccessFlags = FilterAPI.ALLOW_MAX_ACCESS_RIGHT & ~FilterAPI.ALLOW_ENCRYPTED_READ;
// Whitelist Microsoft Word to receive the decrypted clear text view
filter.AddProcessRight("WINWORD.exe", FilterAPI.ALLOW_MAX_ACCESS_RIGHT);
// Whitelist a specific Active Directory user to read decrypted data
filter.userAccessRightList.Add("DomainName\\HR_Manager", FilterAPI.ALLOW_MAX_ACCESS_RIGHT);
filterControl.AddFilter(filter);
3. Ransomware Protection
Combine transparent encryption with strict access controls to block untrusted binaries from modifying, deleting, or encrypting your already-secured data.
FileFilter filter = new FileFilter("C:\\ProtectedBackups\\*");
filter.EnableEncryption = true;
filter.EncryptionKey = mySecureKey;
// Block files from being renamed or deleted by ANY process
filter.AccessFlags = FilterAPI.ALLOW_MAX_ACCESS_RIGHT & ~FilterAPI.ALLOW_FILE_DELETE & ~FilterAPI.ALLOW_FILE_RENAME;
// Whitelist your authorized backup agent to allow writing and modification
filter.AddProcessRight("VeeamAgent.exe", FilterAPI.ALLOW_MAX_ACCESS_RIGHT);
filterControl.AddFilter(filter);
A C# Auto File Encryption Example
With the C# auto file encryption example, you can setup an encryption folder in computer A, configure the authorized processes, users who can read the encrypted file, then you can setup the decryption folder in computer B, you can copy the encrypted file to this folder, and configure the authorized processes which can read the encrypted files in the decryption folder.

Read more about auto file encryption example

Top comments (0)