<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: EaseFilterSDK</title>
    <description>The latest articles on DEV Community by EaseFilterSDK (@easefiltersdk).</description>
    <link>https://dev.to/easefiltersdk</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4267290%2F20282251-a088-4665-8cc6-0ce7bb59a1d0.png</url>
      <title>DEV Community: EaseFilterSDK</title>
      <link>https://dev.to/easefiltersdk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/easefiltersdk"/>
    <language>en</language>
    <item>
      <title>EaseFilter Encryption Filter Driver SDK</title>
      <dc:creator>EaseFilterSDK</dc:creator>
      <pubDate>Thu, 26 Nov 2026 17:10:17 +0000</pubDate>
      <link>https://dev.to/easefiltersdk/easefilter-encryption-filter-driver-sdk-nj1</link>
      <guid>https://dev.to/easefiltersdk/easefilter-encryption-filter-driver-sdk-nj1</guid>
      <description>&lt;p&gt;The &lt;strong&gt;EaseFilter Encryption Filter Driver (EEFD) SDK&lt;/strong&gt; 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.&lt;/p&gt;




&lt;h2&gt;
  
  
  🏗 Core Architecture
&lt;/h2&gt;

&lt;p&gt;Unlike traditional volume-level disk encryption, EEFD provides granular, policy-based security operating via two main components:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhaosgzj2nz7y356xnph8.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhaosgzj2nz7y356xnph8.jpg" alt="Transparent File Encryption" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Kernel-Mode Filter Driver (&lt;code&gt;EaseFlt.sys&lt;/code&gt;)&lt;/strong&gt;: 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.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;User-Mode API Library (&lt;code&gt;FilterAPI.dll&lt;/code&gt;)&lt;/strong&gt;: A managed/unmanaged library that allows developers to define filter rules, manage encryption keys, and register I/O callbacks from high-level applications.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The advantages of the EaseFilter Encryption SDK:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Completely transparent file encryption in file system level.&lt;/strong&gt; 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. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep encrypted file on disk all the time.&lt;/strong&gt; Since the decryption data only was kept in memory, there are no extra file created for the decryption.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Authorized specific processes or users to read the encrypted file.&lt;/strong&gt; 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.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Random block level decryption.&lt;/strong&gt; 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.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;High encryption or decryption performance.&lt;/strong&gt; 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.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The products you can develop with EaseFilter Encryption SDK:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Data encryption at rest.&lt;/strong&gt; Encryption at rest prevents the attacker from accessing the unencrypted data by ensuring the data is encrypted when on disk.&lt;br&gt;
Data protection.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Document encryption.&lt;/strong&gt; 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.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Data loss prevention.&lt;/strong&gt; 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.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Secure file sharing with DRM.&lt;/strong&gt;&lt;br&gt;
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.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Common Use Cases &amp;amp; Code Examples
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Data at Rest Encryption
&lt;/h3&gt;

&lt;p&gt;Ensure all files written to a specific directory are immediately and transparently encrypted on the physical disk.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Encrypt all files within the SecureData directory&lt;/span&gt;
&lt;span class="nc"&gt;FileFilter&lt;/span&gt; &lt;span class="n"&gt;filter&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;FileFilter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"C:\\SecureData\\*"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;EnableEncryption&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Assign the AES key (in production, fetch this dynamically from a secure KMS)&lt;/span&gt;
&lt;span class="n"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;EncryptionKey&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Encoding&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;UTF8&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;GetBytes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Your32ByteSuperSecretKeyHere1234"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;filterControl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddFilter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Insider Threat Protection
&lt;/h3&gt;

&lt;p&gt;Prevent unauthorized internal processes or users from accessing clear text. Isolation Minifilter Technology ensures only approved apps get the decrypted view.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="nc"&gt;FileFilter&lt;/span&gt; &lt;span class="n"&gt;filter&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;FileFilter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"C:\\Finance\\*"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;EnableEncryption&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;EncryptionKey&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;mySecureKey&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Default: Deny decrypted read access to ALL processes (they will see raw cipher text)&lt;/span&gt;
&lt;span class="n"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AccessFlags&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;FilterAPI&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;ALLOW_MAX_ACCESS_RIGHT&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="o"&gt;~&lt;/span&gt;&lt;span class="nc"&gt;FilterAPI&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;ALLOW_ENCRYPTED_READ&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Whitelist Microsoft Word to receive the decrypted clear text view&lt;/span&gt;
&lt;span class="n"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddProcessRight&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"WINWORD.exe"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;FilterAPI&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;ALLOW_MAX_ACCESS_RIGHT&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Whitelist a specific Active Directory user to read decrypted data&lt;/span&gt;
&lt;span class="n"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;userAccessRightList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"DomainName\\HR_Manager"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;FilterAPI&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;ALLOW_MAX_ACCESS_RIGHT&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;filterControl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddFilter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Ransomware Protection
&lt;/h3&gt;

&lt;p&gt;Combine transparent encryption with strict access controls to block untrusted binaries from modifying, deleting, or encrypting your already-secured data.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="nc"&gt;FileFilter&lt;/span&gt; &lt;span class="n"&gt;filter&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;FileFilter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"C:\\ProtectedBackups\\*"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;EnableEncryption&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;EncryptionKey&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;mySecureKey&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Block files from being renamed or deleted by ANY process&lt;/span&gt;
&lt;span class="n"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AccessFlags&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;FilterAPI&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;ALLOW_MAX_ACCESS_RIGHT&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="o"&gt;~&lt;/span&gt;&lt;span class="nc"&gt;FilterAPI&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;ALLOW_FILE_DELETE&lt;/span&gt;  &lt;span class="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="o"&gt;~&lt;/span&gt;&lt;span class="nc"&gt;FilterAPI&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;ALLOW_FILE_RENAME&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Whitelist your authorized backup agent to allow writing and modification&lt;/span&gt;
&lt;span class="n"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddProcessRight&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"VeeamAgent.exe"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;FilterAPI&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;ALLOW_MAX_ACCESS_RIGHT&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;filterControl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddFilter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  A C# Auto File Encryption Example
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmno42j7tfb2teuyq0yim.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmno42j7tfb2teuyq0yim.png" alt="File Encryption Demo" width="404" height="413"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.easefilter.com/Forums_Files/AutoFileEncryption.htm" rel="noopener noreferrer"&gt;Read more about auto file encryption example&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Filter Driver Reference
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.easefilter.com/kb/understand-minifilter.htm" rel="noopener noreferrer"&gt;Understand MiniFilter Driver&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.easefilter.com/kb/File_IO.htm" rel="noopener noreferrer"&gt;Understand File I/O&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.easefilter.com/kb/understand-irps.htm" rel="noopener noreferrer"&gt;Understand I/O Request Packets(IRPs)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.easefilter.com/kb/DeveloperGuide.htm" rel="noopener noreferrer"&gt;Filter Driver Developer Guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.easefilter.com/kb/minifilter-framework.htm" rel="noopener noreferrer"&gt;MiniFilter Filter Driver Framework&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.easefilter.com/kb/Isolation_Filter_Driver.htm" rel="noopener noreferrer"&gt;Isolation Filter Driver&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>softwaredevelopment</category>
      <category>encryption</category>
      <category>security</category>
      <category>startup</category>
    </item>
    <item>
      <title>Implementing Zero Trust File Security in C# or C++</title>
      <dc:creator>EaseFilterSDK</dc:creator>
      <pubDate>Thu, 26 Nov 2026 16:31:55 +0000</pubDate>
      <link>https://dev.to/easefiltersdk/implementing-zero-trust-file-security-in-c-or-c-3hkg</link>
      <guid>https://dev.to/easefiltersdk/implementing-zero-trust-file-security-in-c-or-c-3hkg</guid>
      <description>&lt;h1&gt;
  
  
  🛡️ zero-trust-file-security
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;zero-trust-file-security&lt;/strong&gt; implements a robust zero-trust architecture for file system access. By defaulting to a strict "deny-all" policy, this framework protects sensitive directories from unauthorized viewing, modification, or ransomware attacks, requiring explicit authorization for every read, write, and execute request.&lt;/p&gt;

&lt;p&gt;Powered by the &lt;a href="https://github.com/EaseFilterSDK" rel="noopener noreferrer"&gt;EaseFilter File Security SDK&lt;/a&gt;, this project gives you kernel-level, high-performance file interception and access control.&lt;/p&gt;

&lt;h2&gt;
  
  
  🏗️ Architecture
&lt;/h2&gt;

&lt;p&gt;The following diagram illustrates how policy rules in user mode are enforced down at the Windows Kernel level, intercepting all I/O requests before they reach the file system:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnbdwdkccgtuoi30bmphb.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnbdwdkccgtuoi30bmphb.jpg" alt="Zero-Trust Architecture" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🖥️ Demo Interface
&lt;/h2&gt;

&lt;p&gt;Below is an example of the zero-trust filter service dashboard, showcasing how to dynamically handle and display file-access rule exceptions for processes and users:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxfle85d9wect8zllvqqc.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxfle85d9wect8zllvqqc.jpg" alt="Zero-Trust Demo UI" width="800" height="597"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  ✨ Core Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Default Deny (Zero-Trust):&lt;/strong&gt; All users, applications, and network requests are blacklisted by default.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Process-Level Whitelisting:&lt;/strong&gt; Explicitly authorize trusted applications (e.g., &lt;code&gt;notepad.exe&lt;/code&gt;, &lt;code&gt;your-app.exe&lt;/code&gt;) to access specific files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Granular Access Rights:&lt;/strong&gt; Define exact permissions (Read, Write, Delete, Rename, Execute) on a per-user or per-process basis.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ransomware &amp;amp; Malware Prevention:&lt;/strong&gt; Untrusted processes cannot encrypt, delete, or exfiltrate protected files out of the box.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Real-Time Auditing:&lt;/strong&gt; Comprehensive logging of all allowed and denied file I/O operations for compliance and security monitoring.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  📄 Implement Zero trust file access control with EaseFilter
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.easefilter.com/kb/file-control-file-security-sdk.htm" rel="noopener noreferrer"&gt;EaseFilter File Control Filter Driver&lt;/a&gt; allows you to control the file I/O operations with the filter rule configuration by setting the whitelist and blacklist processes or users, you can allow or block the specific file I/O operation to the specific process or user, you can control who can read your file, allow or block the file modification, prevent your important file from being deleted, renamed.&lt;/p&gt;

&lt;p&gt;To implement the Zero Trust file access control , you can setup the filter rule with the default least privilege access rights, by default all the processes or users don’t have privilege to access the files inside this filter rule, it is zero trust to all processes and users. You can setup the whitelist for the filter rule, to add the specific access rights to specific processes or users, so the processes or users who are in the whitelist can have the specific access rights to the files.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.easefilter.com/kb/transparent-file-encryption-filter-driver-sdk.htm" rel="noopener noreferrer"&gt;EaseFilter Encryption Filter Driver(EEFD)&lt;/a&gt; allows you to encrypt file automatically and transparently, combine with the File Control Filter Driver and &lt;a href="https://www.easefilter.com/kb/process-filter-driver-sdk.htm" rel="noopener noreferrer"&gt;Process Filter Driver&lt;/a&gt;, you can implement the Zero Trust File Access Control with encryption enabled, it can enhance the file security. By default all files will be encrypted automatically, all processes or users can't read the encrypted files, they will get the raw encrypted data. You can authorize the processes or users to access these encrypted files. &lt;/p&gt;

&lt;h2&gt;
  
  
  ⚙️ Installation
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Clone this repository to your local machine:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   git clone https://github.com/EaseFilterSDK/Zero-Trust-File-Security.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Open the solution in Visual Studio.&lt;/li&gt;
&lt;li&gt;Ensure the &lt;code&gt;EaseFilter.FilterControl.dll&lt;/code&gt; is properly referenced in your project.&lt;/li&gt;
&lt;li&gt;Build the solution. &lt;em&gt;Note: You will need to run the application with Administrator privileges to load the filter driver.&lt;/em&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  🚀 Getting Started
&lt;/h2&gt;

&lt;p&gt;The core concept of this project is to deny all access by default and explicitly grant permissions to trusted processes.&lt;/p&gt;

&lt;p&gt;The following example demonstrates how to protect a directory (&lt;code&gt;C:\SecureData\&lt;/code&gt;) so that absolutely no user or program can read or modify the files—except for &lt;code&gt;MySecureApp.exe&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Example: Whitelisting a Specific Process
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nc"&gt;EaseFilter&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;FilterControl&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Program&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nc"&gt;Main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// 1. Initialize the Filter Control&lt;/span&gt;
        &lt;span class="nc"&gt;FilterControl&lt;/span&gt; &lt;span class="n"&gt;filterControl&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;FilterControl&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="c1"&gt;// 2. Define the protected directory&lt;/span&gt;
        &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;protectedPath&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; @&lt;span class="s2"&gt;"C:\SecureData\*"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nc"&gt;FileFilter&lt;/span&gt; &lt;span class="n"&gt;rule&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;FileFilter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;protectedPath&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="c1"&gt;// 3. ZERO TRUST: Deny all file access by default&lt;/span&gt;
        &lt;span class="c1"&gt;// This blocks read, write, delete, and execution for everyone&lt;/span&gt;
        &lt;span class="n"&gt;rule&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AccessFlag&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;FilterAPI&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;ALLOW_MAX_RIGHT_ACCESS&lt;/span&gt; 
                        &lt;span class="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="o"&gt;~&lt;/span&gt;&lt;span class="nc"&gt;FilterAPI&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;ALLOW_FILE_READ&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                        &lt;span class="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="o"&gt;~&lt;/span&gt;&lt;span class="nc"&gt;FilterAPI&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;ALLOW_FILE_WRITE&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                        &lt;span class="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="o"&gt;~&lt;/span&gt;&lt;span class="nc"&gt;FilterAPI&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;ALLOW_FILE_DELETE&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;                     

        &lt;span class="c1"&gt;// 4. WHITELIST: Grant full access ONLY to 'MySecureApp.exe'&lt;/span&gt;
        &lt;span class="c1"&gt;// EXPLICIT AUTHORIZATION WITH CRYPTOGRAPHIC VERIFICATION&lt;/span&gt;
        &lt;span class="c1"&gt;// Trust based on Digital Certificate (Best for commercial software)&lt;/span&gt;
        &lt;span class="c1"&gt;// If a rogue MySecureApp.exe tries to access the files but isn't signed &lt;/span&gt;
        &lt;span class="c1"&gt;// by the real 'EaseFilter Technologies', it will be blocked instantly.&lt;/span&gt;
        &lt;span class="n"&gt;rule&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddTrustedProcessRight&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;uint&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="nc"&gt;FilterAPI&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;ALLOW_MAX_ACCESS_RIGHT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
            &lt;span class="s2"&gt;"MySecureApp.exe"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
            &lt;span class="s2"&gt;"EaseFilter Technologies"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c1"&gt;// Certificate Subject Name&lt;/span&gt;
            &lt;span class="s2"&gt;""&lt;/span&gt;                       &lt;span class="c1"&gt;// Hash (omitted)&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="c1"&gt;// 5. Add the rule and start the engine&lt;/span&gt;
        &lt;span class="n"&gt;filterControl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AddFilter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rule&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="k"&gt;try&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;filterControl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;StartFilter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="nc"&gt;Console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;WriteLine&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Zero-Trust File Security is active."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="nc"&gt;Console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;WriteLine&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Try opening files in C:\\SecureData\\ with anything other than MySecureApp!"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="nc"&gt;Console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ReadLine&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Exception&lt;/span&gt; &lt;span class="n"&gt;ex&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nc"&gt;Console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;WriteLine&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Failed to start filter: "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;ex&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="k"&gt;finally&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="c1"&gt;// Ensure the filter stops securely when the app closes&lt;/span&gt;
            &lt;span class="n"&gt;filterControl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;StopFilter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Filter Driver Reference
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.easefilter.com/kb/understand-minifilter.htm" rel="noopener noreferrer"&gt;Understand MiniFilter Driver&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.easefilter.com/kb/File_IO.htm" rel="noopener noreferrer"&gt;Understand File I/O&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.easefilter.com/kb/understand-irps.htm" rel="noopener noreferrer"&gt;Understand I/O Request Packets(IRPs)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.easefilter.com/kb/DeveloperGuide.htm" rel="noopener noreferrer"&gt;Filter Driver Developer Guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.easefilter.com/kb/minifilter-framework.htm" rel="noopener noreferrer"&gt;MiniFilter Filter Driver Framework&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.easefilter.com/kb/Isolation_Filter_Driver.htm" rel="noopener noreferrer"&gt;Isolation Filter Driver&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>zerotrust</category>
      <category>filesecurity</category>
      <category>file</category>
      <category>encryption</category>
    </item>
  </channel>
</rss>
