Secure-File-Sharing-DRM-Example 5.8.8.1

dotnet add package Secure-File-Sharing-DRM-Example --version 5.8.8.1
                    
NuGet\Install-Package Secure-File-Sharing-DRM-Example -Version 5.8.8.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Secure-File-Sharing-DRM-Example" Version="5.8.8.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Secure-File-Sharing-DRM-Example" Version="5.8.8.1" />
                    
Directory.Packages.props
<PackageReference Include="Secure-File-Sharing-DRM-Example" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Secure-File-Sharing-DRM-Example --version 5.8.8.1
                    
#r "nuget: Secure-File-Sharing-DRM-Example, 5.8.8.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Secure-File-Sharing-DRM-Example@5.8.8.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Secure-File-Sharing-DRM-Example&version=5.8.8.1
                    
Install as a Cake Addin
#tool nuget:?package=Secure-File-Sharing-DRM-Example&version=5.8.8.1
                    
Install as a Cake Tool

Overview

File sharing powers collaboration, but without the right controls, it creates significant risk. Contracts, designs, source code, and financial reports can be leaked, copied, or misused. Traditional access controls stop at the perimeter and rarely follow the file.

The EaseFilter DRM Secure File Sharing solution utilizes Digital Rights Management (DRM) and the powerful EaseFilter File Security SDK to embed policy enforcement directly into the file workflow. This ensures that your sensitive data remains protected across endpoints, servers, hybrid clouds, and external devices.

Key Features

  • Granular File Access Control: Define exactly who can open, read, modify, or delete a file. Scope rules by user identity, process name, device posture, file path, file type, or network location.
  • Transparent File Encryption (TFE): Encrypt data at rest and decrypt on-the-fly only for authorized processes. Files remain encrypted even if copied outside the organization, preventing exfiltration.
  • Usage Restrictions & View-Only: Block printing, copy-pasting, screen capture, and bulk exporting. Set view-only permissions for external collaboration and enforce dynamic watermarks.
  • Secure Collaboration & Rapid Revocation: Safely share files with partners and clients while retaining full owner control. Revoke access instantly or set auto-expiry dates and view limits.
  • Auditing, Visibility & Compliance: Capture detailed, forensic-level logs of every open, read, write, rename, and delete event to support GDPR, HIPAA, SOX, and ISO 27001 compliance.
  • Cross-Environment Protection: Enforce consistent DRM policies across local storage, network shares, VDI, and hybrid cloud environments.

Architecture

At the core of the EaseFilter solution is a robust, kernel-mode file system filter driver that intercepts Input/Output (I/O) requests at the lowest, most privileged level of the OS. File Monitor

  1. The Kernel Mode Layer (The Enforcer): Intercepts every file I/O request. Performs high-speed, on-the-fly AES encryption and decryption, making the process invisible to authorized end-users with minimal performance overhead.
  2. The User Mode Layer (The Policy Engine): Acts as the bridge between the kernel driver and central management. Evaluates intercepted requests against defined rules and records all allowed or denied actions for auditing.
  3. The Central Management Server (The Brain): Integrates with IAM providers (like Active Directory), stores security policies, and manages DRM encryption keys. Keys are delivered in real-time only upon access approval and are destroyed when the session ends.

How It Works: The File Access Workflow

When a user attempts to open a protected file, the following sequence occurs instantly and silently:

  1. Interception: The user attempts to open a sensitive file (e.g., Financial_Q3.xlsx). The Filter Driver intercepts the read request in Kernel Mode.
  2. Policy Check: The driver pauses the request and queries the User Mode Policy Engine to check permissions.
  3. Verification: The Policy Engine consults the Central Management Server to verify user identity, device status, and the file's security policy.
  4. Action & Decryption:
    • If Approved: The Central Server releases the encryption key to the Kernel Module, which decrypts the file on the fly for the authorized application (e.g., Excel).
    • If Denied: The request is immediately blocked, and the file remains encrypted.
  5. Auditing: The outcome (who, what, where, when, and result) is securely logged.

Example Implementation (C#)

Below is a quick start example demonstrating how to set up an auto-encryption filter rule with DRM protection using the EaseFilter SDK.

using System;
using EaseFilter.FilterControl;

class DRMExample 
{
    static void Main(string[] args) 
    {
		// Protect sensitive project documents with DRM
        FileFilter autoEncryptFilter = new FileFilter(@"C:\Projects\Confidential\*");
                
        // Enable auto-encryption for newly created files in this folder
        autoEncryptFilter.EnableEncryption = true; 
        
        // Retrieve encryption key and IV from the centralized service
        autoEncryptFilter.EnableEncryptionKeyFromService = true; 
        
        // Authorize encryption/decryption for every file via callback
        autoEncryptFilter.OnFilterRequestEncryptKey += OnFilterRequestEncryptKey; 
        
        // Set the 256-bit encryption key with a passphrase (Example)
        autoEncryptFilter.EncryptionKey = Utils.GetKeyByPassPhrase("passPhrase", 32); 
        
        // Prevent unauthorized processes/users from reading raw encrypted data
        autoEncryptFilter.EnableReadEncryptedData = false; 
        
        FilterControl.AddFilter(autoEncryptFilter);
        
        // Initialize and start the filter driver
        string lastError = "";
        FilterControl.StartFilter(filterType, serviceThreads, connectionTimeOut, licenseKey, ref lastError); 
        
        Console.WriteLine("DRM protection enabled. Press Enter to stop...");
        Console.ReadLine();
        
        FilterControl.StopFilter();
    }

    // Callback function to handle key requests from the service
    private static void OnFilterRequestEncryptKey(object sender, FilterRequestEventArgs e)
    {
        // Custom logic to fetch and authorize the decryption key from the Central Management Server
    }
}

Business Benefits

  • Stronger Security: Files stay protected both inside and outside your corporate environment.
  • Prevent Data Leaks: Stop accidental sharing and malicious exfiltration.
  • Enable Remote & Cloud Work: Collaborate safely with contractors, clients, and distributed teams without losing control over your data.
  • Meet Compliance: Simplify regulatory reporting (GDPR, HIPAA, SOX, etc.) with comprehensive, auditable logs.
  • Resilience: Drastically reduce the risk associated with insider threats, malware, and ransomware targeting your critical files. Read more about secure file sharing example

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

License

This repository contains two distinct licensing categories:

  1. 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.

  2. 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

Home | Solution | Download | Demos | Blog | Programming

There are no supported framework assets in this package.

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 95 11/23/2026
5.5.1.2 399 2/22/2025
5.5.1.1 279 2/22/2025

A transparent file encryption component was implemented with the Transparent File Encryption Filter Driver SDK. The transparent file encryption performs real-time I/O encryption and decryption of the files in any block data with 16 bytes. The encryption uses a 256 bits symmetric key to encrypt or decrypt the data with AES encryption algorithm. Auto file encryption protects data "at rest", meaning the transparent data and files encryption. It provides the ability to comply with policies which can be applied by users, processes and file type. This allows only authorized users and processes to access the encrypted files, unauthorized users and processes can’t access the encrypted files.