User-space file interception with per-process suspicion scoring and selective rollback for ransomware prevention
User-space file interception with per-process suspicion scoring and selective rollback addresses the slow response of conventional anti-ransomware technologies by providing real-time defense and rapid recovery from ransomware attacks through shadow copies and WORM protection.
Patent Information
- Application Number
- US19/573693
- Authority / Receiving Office
- US · United States
- Patent Type
- Patents(United States)
- Current Assignee / Owner
- Filing Date
- 2026-03-20
- Publication Date
- 2026-12-01
- Estimated Expiration
- 2046-04-03
AI Technical Summary
Conventional anti-ransomware technologies often react too slowly to ransomware attacks, leading to data loss and complicating recovery due to coarse snapshot-based backups and binary allow-or-deny models that do not provide reversible protection during legitimate operations.
Implementing user-space file interception with per-process suspicion scoring and selective rollback, using techniques like kernel-mode filesystem minifilter drivers or Endpoint Security frameworks to intercept file writes, create shadow copies, and apply Write-Once-Read-Multiple (WORM) protection to detect and mitigate malicious modifications.
Provides real-time defense against ransomware by preserving data integrity and operational continuity through continuous kernel-level write interception, protected write-ahead logging, and selective rollback, enabling rapid recovery and forensic visibility.
Smart Images

Figure US12817992-D00000_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The subject matter described herein relates to techniques for preventing ransomware by employing user-space file interception, per-process suspicion scoring, and selective rollback to detect and mitigate malicious file modifications on computing endpoints.BACKGROUND
[0002] Conventional anti-ransomware technologies often rely on detection engines that only react after damage has occurred. Snapshot-based backups operate at coarse intervals and frequently require full-system restoration. Binary allow-or-deny models do not provide the ability to continue legitimate operations while offering reversible protection for potential threats. Modern ransomware is capable of modifying files faster than host detection pipelines can respond, which increases the risk of data loss and complicates recovery.SUMMARY
[0003] Provided herein is a computer-implemented process and a corresponding system for preventing and mitigating the infiltration of ransomware within a monitored computing environment. One aspect relates to a technique implemented by one or more computing devices comprising intercepting file write operations for a file, creating a shadow copy of the file, and detecting suspicious patterns within the intercepted file write operations. Furthermore, the processing comprises selectively rolling back malicious modifications to the file using the shadow copy in response to the detected suspicious patterns, and initiating Write-Once-Read-Multiple (WORM) protection for specified file directories within or associated with the monitored computing environment. A corresponding system comprises one or more processors and memory storing instructions that cause the processors to execute these operations.
[0004] Intercepting the file write operations can comprise intercepting I / O request packets (IRPs) issued by user-mode processes using a kernel-mode filesystem minifilter driver before the write operations reach an underlying filesystem and before persistence to nonvolatile storage. Further operations can involve buffering potentially malicious file writes before committing them to storage and discarding malicious buffered file writes in response to detected suspicious patterns.
[0005] Creating the shadow copy can comprise reading original data from a targeted byte range on disk and storing pre-modification data blocks in a protected shadow storage container together with metadata including a timestamp, a process identifier, a file path or identifier, a file offset, a length, and an operation type, while preserving the temporal ordering of writes. The shadow storage container can be implemented as a hidden filesystem accessible only to security components and protected by cryptographic integrity validation and strict access control. The shadow copy can comprise a write-ahead log of original data captured prior to committing corresponding write operations to the underlying filesystem, and the processing can encompass retaining these shadow copies for a configurable buffer window of at least one minute. The shadow storage can be dynamically sized to a configurable fraction of disk capacity between five percent and ten percent, or a configurable fraction of available memory and disk capacity. Shadow storage capacity can be managed by coordinating with a security agent regarding buffer utilization and rollback prioritization. To facilitate tracking, additional steps can include normalizing file paths and maintaining a hash table that maps normalized file paths to ordered lists of write operations.
[0006] Selectively rolling back can comprise reconstructing file content using the temporally ordered list of logged IRPs or the write-ahead log to restore pre-modification data or bytes with sub-second granularity for selected files or byte ranges. This reconstruction process can include resolving conflicts arising from overlapping write operations and restoring file metadata including filenames and file attributes. Prior to rollback, the technique can involve verifying the cryptographic integrity of shadow-stored data using validation data stored with the shadow copy.
[0007] Detecting suspicious patterns can include performing entropy analysis on chunks of intercepted write data or payloads, wherein an entropy threshold used for detection is file-type-aware and retrieved from a lookup structure indexed by file type. Suspicious behaviors can be declared upon detecting at least a predefined number of consecutive high-entropy chunks written to a file, or correlated across multiple files modified by a common process within a configurable time window with an overwrite-rate exceeding a policy-defined threshold. Detection can be based at least in part on a combination of entropy measurements and process reputation. Accordingly, the processing can encompass maintaining a process reputation cache with a configurable time-to-live and using the cache to influence monitoring and buffering behavior. Write operations from high-reputation or high-trust processes can be monitored with reduced overhead and buffered minimally, whereas write operations from unknown or low-reputation processes can be subject to full monitoring and fully buffered to the shadow storage. Additional operations can include querying a security agent in real time to determine or update process reputation, and under resource constraints, operating in a fail-open mode to maintain system stability while continuing to record minimal metadata for subsequent analysis.
[0008] Initiating WORM protection can comprise agent-triggered activation for one or more specified directories or volumes within a monitored filesystem at a per-directory scope. While active, WORM protection blocks write attempts that modify existing files in the protected areas while permitting reads and new file creations. The technique can encompass recording forensic data for each blocked write attempt, including a process identifier, a process path, a file path, a timestamp, and a denial reason. Real-time notifications or telemetry data can be transmitted to a monitoring platform or security operations center when WORM protection blocks a write attempt, and all WORM protection activation and deactivation events can be logged for audit purposes. The WORM protection can be deactivated responsive to a determination that the ransomware threat has abated, upon expiration of a policy-defined interval, upon receiving a directive from a security agent, or via manual override by a security administrator.
[0009] In certain computing environments, such as a Linux environment, intercepting file write operations at a kernel level can comprise utilizing a kernel-level interception program, such as an extended Berkeley Packet Filter (eBPF) program, that attaches to kernel tracepoints, kprobes, or file system-related hooks. This intercepts write system calls prior to the underlying file system committing data to disk at a Virtual File System (VFS) layer. The eBPF program executes within the kernel's virtual machine environment, verified for safety prior to execution to ensure the program cannot crash the kernel or access unauthorized memory regions. The program can communicate with a user-space security agent via eBPF maps, ring buffers, or perf event arrays for bidirectional communication regarding policy enforcement, reputation queries, and telemetry collection. Analyzing entropy changes can comprise a comparative entropy methodology that computes the Shannon entropy of a file prior to modification by intercepting a read call, and subsequently intercepts an associated write call to obtain buffer contents and recompute the entropy of the modified file contents. Calculating an entropy delta by comparing the pre-modification entropy against the post-modification entropy detects suspicious encryption activity, specifically identifying significant entropy increases when plaintext content is replaced with encrypted or randomized data approaching a theoretical maximum. This methodology detects ransomware that encrypts files in-place without modifying file extensions, and the processing can maintain a per-process modification counter to correlate entropy delta events across multiple files.
[0010] In other computing environments, such as a macOS environment, intercepting file system operations can comprise utilizing a security framework that receives notifications for file system events without requiring a kernel extension or kernel-mode driver, such as an Endpoint Security framework. A security agent registered as a client subscribes to authorization events to approve or deny file system operations before completion, or notify events for post-operation notifications. Upon receiving an event when a process opens a file for writing, the agent snapshots the file's current state into a protected in-memory data structure. This snapshot captures an initial computed entropy value and header bytes comprising at least the initial 256 bytes of the file, which contain file format signatures, metadata, and magic bytes identifying formats like archives and documents. Upon receiving a file close event, the agent recomputes the file's entropy, re-reads the header bytes, and analyzes the modified file to detect corruption of magic bytes and elevated entropy approaching a theoretical maximum. Process trust classifications can be determined utilizing digital signatures, querying code signing status, team identifiers, certificate chains from trusted authorities, notarization status, hardened runtime entitlements, and sandboxing status. A per-process suspicion score accumulates based on policy-defined weights for each detected high-entropy write or magic byte corruption event. Once a process exceeds a suspicion threshold, the process can be flagged as malicious, added to a blocklist, and subsequent file access attempts can be blocked inline by returning a denial response before modification occurs. The flagging can persist until cleared by administrator override, policy-defined timeout, or determination that the threat has abated. The system can selectively roll back files modified prior to a process being flagged using the pre-modification data captured during monitoring.
[0011] The details of one or more variations of the subject matter described herein are set forth in the accompanying drawings and the description below. Other features and advantages of the subject matter described herein will be apparent from the description and drawings, and from the claims.DESCRIPTION OF DRAWINGS
[0012] FIG. 1 is an architecture diagram illustrating aspects of a security monitoring platform in which agents are installed on computing devices;
[0013] FIGS. 2-4 are diagrams illustrating orchestration amongst components for intercepting and analyzing I / O request packages and taking remediation action to prevent ransomware and other malware;
[0014] FIG. 5 is a first process flow diagram illustrating a workflow providing real-time file system protection using write-ahead logging with selective rollback for ransomware prevention;
[0015] FIG. 6 is a second process flow diagram illustrating a workflow providing real-time file system protection using write-ahead logging with selective rollback for ransomware prevention;
[0016] FIG. 7 is a third process flow diagram illustrating a workflow providing real-time file system protection using write-ahead logging with selective rollback for ransomware prevention; and
[0017] FIG. 8 is a fourth process flow diagram illustrating a workflow providing real-time file system protection using write-ahead logging with selective rollback for ransomware prevention.DETAILED DESCRIPTION
[0018] The current subject matter is directed to techniques for disrupting malicious activity, including ransomware, on monitored computing devices. It provides real-time filesystem protection through continuous kernel-level write interception, protected write-ahead logging, inline detection of suspicious patterns, dynamic WORM (Write-Once-Read-Multiple) enforcement, and selective rollback that reverses malicious modifications while preserving legitimate activity. The solution delivers real-time defense, forensic visibility, and targeted recovery for enterprise environments that require both strong security and operational continuity. The current subject matter is applicable to different operating systems including Windows, macOS, Linux and the like.
[0019] FIG. 1 is an architecture diagram in which a monitoring platform 130 can monitor and protect a plurality of computing devices 120 (e.g., endpoints, etc.) by way of the Internet 110 or by way of direct connections (e.g., on-premise protection, etc.). Each of the monitored computing device 120 can include or otherwise execute at least one agent 122 which can execute or interface with an authentication system 124 and one or more telemetry components 126. The monitoring platform 130 can communicate with one or more users forming part of a Security Operations Center (SOC) 150. The SOC 150 can, for example, comprise ransomware detection and response teams which can initiate one or more authentication processes in order to thwart a ransomware attack or other malicious activity on the monitored computing devices 120.
[0020] The authentication system 124 is a local application and / or process to selectively provide access to resources when a user is authenticated. The authentication system 124 can execute local authentication measures and / or it can interface with a remote authentication server 140.
[0021] The telemetry components 126 can be executed on the computing device and can individually or in combination be used to locally analyze security events and / or to transmit data to the monitoring platform 130 (i.e., cloud-based platform, etc.) which characterize security events. In some cases, the telemetry component 126 solely works locally while, in other variations, the telemetry component 126 works in coordination with the monitoring platform 130. The computing environment can also include an authentication platform 140 which can be accessed via an API to provide authentication services to applications and processes on the various computing devices 120. The authentication platform 140 can also interface or otherwise consume information generated by the telemetry component 126. In some cases, some or all of the functionality of the monitoring platform 130 can be performed, for example, locally on the computing device 120 (e.g., by the agent 122 and / or the telemetry component 126). Similarly, in some cases, some or all of the functionality of the authentication platform 140 can be performed, for example, locally on the computing device 120 (e.g., by the agent 122 and / or the telemetry component 126). In some cases, the authentication platform 140 can implement more secure authentication techniques when a ransomware attack is suspected or had otherwise commenced. When the authentication platform 140 acts as a service, the authentication techniques for particular applications, processes, and / or computing devices 120 can be dynamically adjusted on such authentication platform 140. In addition or in the alternative, the authentication platform 140 can send commands / signals to the various computing devices 120 which result in the particular authentication scheme used at the computing device 120 to be accordingly modified.
[0022] In some cases, the computing device 120 can execute a messaging bus 128 which selectively processes and transmits messages characterizing security events. The messaging bus 128 can generate, process, and transmit messages that are derived from security events generated or identified by the agent 122 or the telemetry component 126 and / or from other sources executing on the corresponding computing device 120 or a peer computing device 120. Further details regarding the messaging bus 128 can be found in U.S. Pat. No. 12,130,914, the contents of which are hereby fully incorporated by reference. In some cases, the computing device 120 can also execute a kernel model such as described in U.S. patent application Ser. No. 19 / 084,548 filed on Mar. 19, 2025, the contents of which are hereby fully incorporated by reference.
[0023] In some cases, the agent 122 can be installed after a security event such as a ransomware attack. With this example, ransomware has already infiltrated at least one of the computing devices 120 and encrypted certain files for which a decryption key will be provided in exchange for a ransomware payment. In such cases, the agent 122 can be installed on the computing device(s) 120 to facilitate remediation of the security event. In the case of ransomware, the remediation can include decrypting the encrypted files and / or transporting the encrypted files to the monitoring platform 130 (or to a different cloud-based service). In addition, remediation can include terminating, freezing, or otherwise pausing processes indicative of ransomware. In order to facilitate local decryption, the agent122 can collect information characterizing the encrypted files. For example, the agent 122 can identify or generate a list of files that were encrypted as well as the key material used in the encryption of each particular file. In order to identify the encrypted files, an algorithm can analyze the file name, extension and contents of a particular file to see if it is encrypted. Key material, in this context, refers to variables needed to generate a key which can be dependent on the utilized encryption algorithm. The encryption information can be used to generate and deliver decryptor logic (i.e., logic / code to decrypt encrypted files) in the form of a surveyor transported in the form of a surveyor package. A surveyor can be a standalone component that can be run by the agent 122 in order to extend the functionality of the agent 122. The surveyor, when executed by the agent 122, can cause the encrypted files to be decrypted. In some cases, even if the decryptor logic is the same (i.e., a same encryption technique is used for all files), the key materials for each file might be different. Further details regarding surveyors and the updating of agents can be found in U.S. patent application Ser. No. 18 / 948,343 filed on Nov. 14, 2024, the contents of which are hereby fully incorporated by reference.
[0024] The monitoring platform 130 can take telemetry data from the telemetry components 126 on the computing devices 120 (i.e., endpoints, etc.) and use individual endpoint telemetry data and telemetry from a plurality of endpoints, determines the current likelihood that a ransomware or other malicious attack is underway by deriving a risk level. The telemetry components 126 can, by way of the respective messaging buses 128, individually transmit data characterizing information such as intra-process and inter-process behavior, static analysis of machine instructions, and authentication anomalies. The telemetry components 126 can, for example, capture information such as login timestamps, login failure counts, login locations, network folder access requests, network file enumeration requests, privileged processes access requests, process security context, modifications to system settings, and the like. This information can be aggregated by the monitoring platform 130 across multiple computing devices 120 to provide higher level computing environment telemetry such as patterns among computing device 120, and telemetry from network devices in order to determine the likelihood that an attack is taking place.
[0025] The agent 122 executing on a monitored computing device 120 monitors process runtime data and determines whether a process is associated with a ransomware attack. Monitoring can include intercepting system-call events indicative of ransomware activity, such as file-system encryption behavior. The determination can rely on the agent 122 detecting attributes including attempts to disable security services, escalate privileges, delete backups and shadow copies, scan for and move laterally to other network targets, perform high-volume sequential file read / write operations, rename files with suspicious extensions, create ransom notes, communicate with external command-and-control servers, and consume abnormally high CPU or other system resources. The agent 122 can apply rules, heuristics, and / or machine-learning models to make this determination. Additionally or alternatively, via the messaging bus 128, the agent 122 can send process telemetry to the monitoring platform 130, which can perform the determination using more computationally expensive models than those executed locally by the agent 122.
[0026] When machine-learning models are utilized for ransomware determination, such models can include, for example, decision trees, random forests, gradient-boosted classifiers, support vector machines, or neural network architectures trained on labeled datasets comprising known ransomware and benign process behaviors. Feature vectors provided to such models can include extracted characteristics such as file write frequency, entropy delta measurements, file extension modification patterns, process privilege level, parent-child process relationships, code signing status, and temporal correlation of file operations. Models can be trained offline using supervised learning on curated datasets and deployed to endpoints, or can be updated periodically via the monitoring platform 130 to incorporate newly identified ransomware signatures and behavioral patterns. The selection of model architecture and feature engineering can be tailored to balance detection accuracy against computational overhead appropriate for real-time, kernel-proximate analysis.
[0027] FIGS. 2-4 are coordinated diagrams illustrating the orchestration among various components that provide real-time file system protection in the Windows operating system using write-ahead logging with selective rollback for ransomware prevention. As noted above and detailed below, the current subject matter is also applicable to other operating systems including Linux and MacOS. A minifilter driver 222 can intercept I / O request packets (IRPs) generated by user applications 202 to detect potential file operations that may modify file contents, analyze resulting entropy, monitor filename changes, and identify other suspicious activities. The minifilter driver 222 can create shadow copies of pre-modification data and buffer write operations in temporary storage, ensuring that original content is preserved for potential rollback. In coordination with the agent 122 and the physical filesystem 236, the minifilter driver 222 can enforce WORM (write-once, read-many) mode when triggered by the agent, preventing further modification of existing files while allowing new file creation and read access. Lightweight, inline analysis and agent coordination support process reputation assessment and behavioral detection of anomalous or high-entropy activity across files. If an attack is suspected or confirmed, dynamic WORM activation maintains operational continuity and data integrity. Logged pre-modification data enables selective, sub-second rollback of affected files or write ranges, while the agent 122 provides cloud connectivity for telemetry and policy synchronization with the monitoring platform 130.
[0028] The user applications 202 can take various forms including, but not limited to, programs susceptible to launching malware executables 208 including, for example, Word 204 and Excel 206. The operating system file system 212 (e.g., New Technology File System, etc.) can generate I / O request packets (IRP) which are intercepted or otherwise analyzed by the minifilter driver 214 through, for example, one or more processes executing IRP interception 216. The minifilter driver 214 can intercept write IRPs before persistence to disk using Windows Filter Manager interfaces. The minifilter driver 214 can capture pre-modification data and constructs WAL entries with IRP metadata, including timestamp, process identifier, file identifier or path, file offset, length, and operation type (which can be used by the shadow filesystem 224). The minifilter driver 214 can be configured to preserve the exact temporal ordering of write operations to support deterministic reconstruction.
[0029] The minifilter driver 214 intercepts write IRPs before they reach the filesystem 236. For each write, the minifilter driver 214 can read the original on-disk content corresponding to the target byte range and stores it into the shadow filesystem 224 storage with associated metadata (in IRP storage 250). The minifilter driver 214 can then allow the write operation to proceed to preserve system transparency. For high-trust processes, buffering can be reduced according to policy. The minifilter driver 214 analyzes the IRPs to determine whether they exhibit any patterns indicative of ransomware or other malicious activity. These patterns can take various forms including, for example, extension changes 220, renaming patterns 222, and the like. For example, the minifilter driver 214 can be used to identify, from the IRPs, that multiple files being overwritten with encrypted content by the same suspicious process. Such an identification can, as detailed below, trigger alerts to take remediation actions and / or to flag for further analysis.
[0030] The minifilter driver 214 can include or otherwise employ a lightweight, inline analyzer 218 that can evaluate write payloads in small chunks, and the driver 214 correlates write patterns across files and processes. A filetype aware analyzer can analyze known requirements for file type formats to identify malicious corruption due to ransomware activity. An entropy analyzer 218 can execute lightweight, inline entropy analysis on, for example, 64-128 byte chunks, with thresholds indexed by file type (e.g., .doc, .xls, etc.). In addition or in the alternative, the entropy analyzer 218 can perform nibble-based entropy detection that can require a different minimum number of bytes (e.g., 80 bytes, etc.). In addition or in the alternative, the entropy analyzer 218 can perform byte-based entropy analysis which can require an even higher minimum number of bytes (e.g., 500 bytes, etc.). Suspicious behavior can be correlated by tracking one or of a high entropy write, filetype byte corruption, high-entropy overwrite bursts, targeted filename modification patterns and high-rate modifications by a common process across multiple files. When WORM protection is activated, the minifilter driver 214 can deny modifications to existing files while allowing reads and new file creation. Forensic data for blocked write attempts, including process ID, file path, and timestamp, can be recorded. The minifilter driver 214 can also implement normalization of file paths and maintain maps from normalized paths to ordered lists of write operations.
[0031] The agent 122 can manage process reputation queries, policy, WORM activation and deactivation, capacity and retention controls, and selective rollback orchestration. During an active threat, WORM protection can be activated by the agent 122 for defined directories or volumes of files to immediately block modifications to existing files while allowing new file creation. Forensic records of blocked writes can be logged and reported. After containment, selective rollback can restore affected files or write ranges using the WAL. The agent 122 can, for example, include an agent integration layer which provides a communication channel, such as an I / O completion port channel, between kernel and user mode. The I / O completion port channel can enable low-latency communication between kernel and agent. The agent 122 can request updated process reputation from local or cloud sources including remote security agents and push revised policy parameters to the minifilter driver 214. The minifilter driver 214 can stream summaries of filetype modifications, entropy signals, correlation metrics, and WAL utilization to the agent 122.
[0032] The agent 122 can handles process reputation lookup and caching (in process reputation cache 238) with a configurable time-to-live. The agent 122 can coordinate capacity management 242 (i.e., the size of the shadow filesystem 224), retention for forensic analysis in forensic logs 244, and prioritization policies with the minifilter driver, and decide on selective rollback targets on a per-file or per-range basis using threat intelligence. The agent 122 can trigger WORM activation and deactivation for specified directories or volumes and logs related events. Real-time notifications can be sent to local or cloud services (e.g., monitoring platform 130) when WORM blocks a write attempt.
[0033] In some variations, tamper protections 246 can include anti-tamper protections enacted on a computing device by the agent 122 and / or by kernel drivers (which in turn can help thwart a ransomware attack). Anti-tamper protection can include, preventing modification of certain files (e.g., security-oriented files including files use by anti-ransomware processing, protecting registry entries that can weaken the security of the operating system (e.g., Windows, etc.), protecting access to lower layer volume devices such as storage disks, preventing modification of operating boot policies, preventing modification of certain processes (e.g., security-oriented processes including processes used as part of an anti-ransomware platform, etc.), and / or preventing the disablement of certain controls.
[0034] A timer 248 (e.g., a 1 minute timer, etc.) can be used to estimate or otherwise characterize and amount of data that can be queued by the minifilter driver 214. In some variations, the amount of temporary storage can be defined by a policy and managed by the agent in terms of, for example, megabytes. The amount of temporary storage can be influenced by system operations and decision logic in the agent 122 as events suggestive of ransomware occur. A WAL record as used herein can be characterized as a record of original data and metadata captured before corresponding writes are committed to a filesystem. The minifilter driver 214 can interface with a shadow storage system 224 which is a protected storage container that holds WAL records and associated metadata. WORM protection is a mode that blocks modifications to original files 234 (i.e., existing files) while permitting reads and the creation of new files. For each write IRP intercepted by the minifilter driver 214, the driver captures the pre-modification data into a protected shadow storage layer as part of the shadow filesystem 224 along with metadata, preserving temporal ordering.
[0035] A WAL record can contain information such as a file identifier and normalized path, timestamp, process ID and optional image hash, file offset and length, operation type, original data bytes (pre-modification), and integrity metadata such as a cryptographic tag. The file mapping index can be a hash table 226 mapping normalized paths to ordered lists of WAL records or IRP descriptors. A process reputation cache 238 forming part of the agent 236 can map process identifiers or hashes to trust classifications with a time-to-live, and policy rules influence buffering level, with minimal buffering for high-trust processes and full buffering for unknown or low-reputation processes. Policy and thresholds can include file-type-aware entropy thresholds, suspicion rules such as five to ten consecutive high-entropy writes, overwrite-rate thresholds across multiple files by a common process, WORM scope and duration, and capacity and retention targets for shadow storage.
[0036] The shadow storage system 224 can be characterized as both a hidden filesystem or secure container accessible only to security components residing within temporary storage such as computer memory (RAM) and / or physical persistence to controlled locations on disk. 236. The shadow filesystem 224 can store WAL data blocks and integrity metadata, such as cryptographic integrity validation, associated with each record. Also, the shadow storage system 224 can be used as a queue of buffered operations to the physical storage medium. The shadow space 236 can, for example, be dynamically sized, for example, to 5-10% of available memory and / or disk capacity, and is configurable via policy and / or by the agent 122 through a control capacity management 242 module. Access control can be enforced to prevent access by unauthorized user-mode processes. The system supports integrity verification prior to rollback and can retain logs for a configurable buffer window, such as at least one minute. In some variations, the shadow storage system 224 can maintain write changes in memory for a pre-determined amount of time and then move such changes to a physical storage medium (i.e., persistence, etc.).
[0037] The agent 122 can activate WORM protection automatically based on policy thresholds or manually upon confirmation of malicious activity. While WORM is active for specified directories or volumes in the filesystem 246, modifications to existing files can be blocked, reads can remain permitted, and creation of new files can be permitted. The minifilter driver 214 can record (or cause to be recorded) forensic data for each blocked write and send real-time notifications to the agent 122 or monitoring platform 130. WORM can be deactivated by the agent 122 when the threat abates or after a policy-defined interval, and all WORM activation or deactivation events can be logged for audit.
[0038] The agent 122 can undertake various remediation actions in connection with a suspicious process such as terminating, freezing, or otherwise pausing the process. Further details regarding remediation actions with regard to suspicious processes can be found in U.S. patent application Ser. No. 19 / 423,919 filed on Dec. 17, 2025, the contents of which are hereby fully incorporated by reference.
[0039] The agent 122 can select files or operation ranges within the filesystem 236 for recovery. The minifilter driver 214 can reconstruct target content using ordered WAL records, and conflict resolution handles overlapping writes by respecting temporal order and restoring earlier data first. File metadata such as filenames and attributes can be restored where recorded. Prior to restore, integrity of shadow-stored data can be verified using the integrity metadata. Rollback can be surgical, restoring only selected files or ranges while preserving legitimate changes elsewhere.
[0040] In one example, a process begins overwriting multiple user documents within the filesystem 236 with high-entropy data. The minifilter driver 214 intercepts each write, stores original bytes in the shadow filesystem 224 with metadata, and performs inline entropy analysis. The minifilter driver 214 observes, for example, five to ten consecutive high-entropy chunks to several files and correlates these events to a single process with unknown reputation. The agent 122 is notified, and policy triggers automatic WORM activation for user document directories in the filesystem 236, blocking further modifications to existing files while permitting read access and new file creation. The agent 122 issues targeted rollback for impacted files in the filesystem 236 based on WAL records. The minifilter driver 236 verifies shadow data integrity and restores pre-modification bytes and metadata. WORM is deactivated after the threat abates, and forensic logs 244 of blocked write attempts and WORM events are retained.
[0041] In another example, a process begins modifying known file types such as documents, images, and database files by altering their recognizable header bytes or magic values. The minifilter driver 214 can intercept each write operation to these file types and detect that the initial bytes deviate from expected format signatures (e.g., .PDF, .XLSX, .MDF headers, etc.). Inline analysis can flag these byte-level modifications as anomalous and potentially malicious. The minifilter driver 214 can correlate the modified file events to a single originating process with unverified or suspicious reputation and notifies the agent 122 of the detected tampering. The agent 122 can correlate process identity, reputation, and timing, to confirming that the behavior is likely malicious. The agent 122 can then instruct the volume driver 226—which has been buffering pending write operations for that process—to discard all buffered writes corresponding to the detected time interval, effectively nullifying the attempted corruption before the filesystem 236 is updated. The discarded data and metadata can be logged for forensic analysis, and the minifilter driver 214 continues monitoring subsequent operations for recurrence. Policy-driven responses, including temporary WORM activation or process isolation, can be applied until the threat is contained.
[0042] The shadow storage system 224 can be configured to enforce strict access controls so that only designated security components can access WAL records. Integrity metadata stored with WAL entries enables verification before rollback. Forensic logging covers write interception summaries, WORM activations and deactivations, and per-attempt block records. In variations deployed on Linux-based endpoints, the system can utilize an extended Berkeley Packet Filter (eBPF) program to intercept file system operations. An eBPF program is a sandboxed program that executes within the Linux kernel, providing kernel-level visibility and file system interception capabilities without requiring a traditional kernel-mode driver or loadable kernel module (LKM). The eBPF program operates within the kernel's virtual machine environment, where it is verified for safety prior to execution, ensuring that the program cannot crash the kernel or access unauthorized memory regions. Unlike the Windows configuration, which can employ a kernel-mode filesystem minifilter driver that intercepts I / O request packets (IRPs) in compliance with a Windows Filter Manager architecture, the Linux variation can leverage eBPF's in-kernel execution environment to hook file system write operations at the Virtual File System (VFS) layer before data is persisted to nonvolatile storage
[0043] The eBPF program can attach to kernel tracepoints, kprobes, or file system-related hooks to intercept write system calls such as write( ), writev( ), pwrite( ), and pwritev( ) prior to the underlying file system committing data to disk. Upon interception, the eBPF program can capture metadata associated with the write operation, including the process identifier, timestamp, file descriptor, file path, byte offset, and write length, mirroring the metadata captured in the Windows version's IRP interception workflow. The eBPF program can communicate with a user-space security agent via eBPF maps, ring buffers, or perf event arrays, enabling low-latency bidirectional communication between the kernel-level interception logic and the user-space agent for policy enforcement, reputation queries, and telemetry collection.
[0044] The Linux variation can differ from the Windows variation in its approach to entropy-based detection. Rather than utilizing file extension-based thresholds for determining whether a maximum entropy value has been exceeded, as can be employed in the Windows variation where entropy thresholds can be retrieved from a lookup structure indexed by file type, the Linux variation can employ a comparative entropy methodology that evaluates entropy changes on a per-file basis. Specifically, the system can capture and compute the Shannon entropy of a file prior to modification by intercepting a vfs_read call and calculating the entropy value based on the nibble frequency distribution. When the file contents are modified and are attempted to be written back to disk, the system can intercept the associated vfs_write call to obtain the buffer contents and recompute the entropy of the modified file contents. The system can then calculate the entropy delta by comparing the pre-modification entropy value against the post-modification entropy value to determine whether the magnitude and direction of the entropy change is indicative of ransomware behavior.
[0045] This delta-based entropy analysis enables detection of suspicious encryption activity by identifying significant entropy increases that occur when plaintext file content is replaced with encrypted, compressed, or otherwise randomized data. For example, a text document with relatively low entropy due to repetitive character patterns, when encrypted by ransomware, will exhibit entropy approaching the theoretical maximum of 4.0 bits per nibble for uniformly distributed random data. The comparative methodology is particularly effective for detecting ransomware that encrypts files in-place without modifying file extensions, as the entropy change remains detectable regardless of the file's naming convention.
[0046] The Linux configuration can correlate entropy delta events across multiple files modified by a common process within a configurable time window, consistent with the correlation analytics described for the Windows version. The system can maintain a per-process modification counter and declare suspicious behavior upon detecting a threshold number of high-entropy-delta writes attributed to a single process. When the comparative entropy analysis indicates potentially malicious behavior, the system can generate an alert, transmit telemetry to a monitoring platform, and initiate protective measures including WORM protection for specified directories and selective rollback using shadow copies as described herein.
[0047] In variations deployed on macOS endpoints, the system can utilize Apple's Endpoint Security (ES) framework to intercept file system operations. The Endpoint Security framework provides user-space hooks into file system operations, enabling the agent to monitor and respond to file modifications without requiring a kernel extension (KEXT) or kernel-mode driver. This architectural approach can differ from the Windows configuration, which can utilize a kernel-mode filesystem minifilter driver operating in compliance with the Windows Filter Manager architecture to intercept I / O request packets (IRPs) at the kernel level.
[0048] The Endpoint Security framework operates by registering the security agent as an ES client that receives notifications for file system events including file open, file close, file write, file rename, and file unlink operations. The ES client can subscribe to AUTH (authorization) events, which enable the agent to approve or deny file system operations before they complete, or NOTIFY events, which provide post-operation notifications for audit and analysis purposes. For ransomware detection and prevention, the macOS variation can utilize AUTH events to implement inline blocking of suspicious write operations, analogous to the Windows version's ability to block write IRPs via the minifilter driver.
[0049] When a process opens a file for writing on a macOS endpoint, the agent can receive an ES_EVENT_TYPE_AUTH_OPEN event and, in response, snapshot the file's current state prior to any modification. The snapshot can include the file's computed entropy value calculated from a representative sample of the file's byte content, as well as the file's header bytes comprising the initial N bytes (e.g., 256 bytes, 512 bytes, or 1024 bytes) that typically contain file format signatures and metadata. The agent can store this pre-modification snapshot in a protected in-memory data structure indexed by file name or other method, enabling efficient retrieval when the corresponding file close event occurs.
[0050] When the file handle is closed, the agent receives a corresponding close event and can recompute the file's entropy and re-read the header bytes from the modified file. The detection logic can then evaluate whether the file's entropy crosses predefined thresholds indicative of encryption and whether any known magic bytes have been modified or destroyed. Magic bytes, also referred to as file signatures or format identifiers, are specific byte sequences located at defined offsets within a file that identify the file's format according to its specification (e.g., the bytes 0x50 0x4B for ZIP archives, 0x25 0x50 0x44 0x46 for PDF documents, or 0xD0 0xCF 0x11 0xE0 for Microsoft Office legacy formats). Detection of both elevated entropy and corruption of magic bytes can indicate potentially malicious ransomware behavior, as ransomware typically encrypts file contents, thereby increasing entropy toward the theoretical maximum, while also overwriting or corrupting file format headers that would otherwise identify the original file type.
[0051] The macOS configuration can utilize digital signatures (digsigs) and other process metadata to determine whether a process should be classified as trusted, implementing a trust-based selective buffering approach consistent with the Windows variation's process reputation system. The Endpoint Security framework provides access to code signing information for processes generating file system events, enabling the agent to query the signing status, team identifier, and certificate chain for each process. The agent can maintain a process reputation cache with a configurable time-to-live (TTL) that stores trust classifications based on code signing status, developer certificates issued by Apple's Developer ID Certificate Authority, notarization status indicating whether the application has been submitted to and approved by Apple's notarization service, and other trust indicators such as hardened runtime entitlements and sandboxing status.
[0052] The agent can apply differentiated monitoring and buffering policies based on the process reputation classification. Write operations from high-reputation processes, such as those signed by Apple or by verified developers with established trust histories, can be monitored with reduced overhead and minimal buffering. Conversely, write operations from unknown, unsigned, or low-reputation processes can be subject to full monitoring, including comprehensive entropy analysis, header byte comparison.
[0053] The agent can track suspicious file modifications on a per-process basis, maintaining a suspicion score or anomaly counter that accumulates based on detected indicators of compromise. Each high-entropy write, magic byte corruption event, or other anomalous behavior can increment the process's suspicion score according to policy-defined weights. Once a process accumulates a suspicion score exceeding a policy-defined threshold, the process can be permanently flagged as potentially malicious and added to a blocklist maintained by the agent.
[0054] Subsequently, when the flagged process attempts to open files for writing, the agent can respond to the ES_EVENT_TYPE_AUTH_OPEN event by returning ES_AUTH_RESULT_DENY, thereby blocking the file access inline before any modification can occur. This inline blocking capability is analogous to the WORM protection enforcement implemented in the Windows minifilter driver, which blocks write IRPs to protected directories. Each blocked access attempt can be recorded with forensic data including the process identifier, process path, file path, timestamp, and denial reason, and real-time notifications can be transmitted to a monitoring platform or security operations center.
[0055] This progressive enforcement model allows the system to gather sufficient behavioral evidence before imposing restrictions, reducing false positives for legitimate applications while enabling rapid containment once malicious intent is established through accumulated behavioral signals. The macOS variation can further integrate with the selective rollback mechanisms described herein, enabling restoration of files modified by a process prior to its being flagged, using temporally ordered pre-modification data captured during the monitoring phase.
[0056] Some or all aspects of the workflow or other operations described herein can be implemented by agents. In this context, agents, or AI agents, are autonomous software entities that utilize advanced artificial intelligence techniques—including large language models (LLMs), reinforcement learning (including contextual bandits), planning and scheduling algorithms, and other machine learning methods—to perceive their environment (potentially across text, images, audio, video, sensor streams, and structured data), interpret complex information, make context-aware decisions under uncertainty, and execute actions to achieve objectives defined by human operators or higher-level policies.
[0057] Such agents can orchestrate end-to-end pipelines by routing requests, performing semantic task decomposition, and coordinating data flow among heterogeneous components (e.g., rule engines, retrieval systems, analytics services, and specialized ML models). They can dynamically select and parameterize models (semantic routing, few-shot configuration, prompt / program synthesis), manage tool invocation (APIs, databases, vector stores, message queues, Robotic Process Automation (RPA), robotic / IoT actuators), and adapt behavior based on intermediate results, user feedback, or changing requirements. Agents can maintain short- and long-term memory, ground reasoning via retrieval-augmented generation, and update knowledge bases while enforcing data governance, privacy, and security constraints (e.g., PII redaction, access control, secret management, key rotation, policy enforcement).
[0058] Agents can operate singly or in multi-agent systems using patterns such as manager-worker, marketplace / contract-net, blackboard, and swarm collaboration, with negotiation, role assignment, and consensus. They support human-in-the-loop review and escalation, approval workflows, and guardrails (content filtering, compliance checks, safety policies). Operational capabilities include real-time monitoring, telemetry and tracing, drift and anomaly detection, self-healing retries and fallbacks, circuit breaking, autoscaling, batching and caching, cost / latency / energy optimization, A / B testing, canary releases, and continuous training or fine-tuning. They can manage data preparation and automated feature extraction, perform simulation and sandbox testing, ensure provenance with lineage and signed attestations, and produce detailed audit logs, explanations, uncertainty estimates, and rationales appropriate for regulated environments.
[0059] Deployment contexts include cloud, on-premises, edge, and air-gapped or intermittent-connectivity settings, with support for offline modes, state checkpoints, idempotent operations, and transactional guarantees. Through these capabilities, agents enable robust, transparent, and scalable automation across discovery, decision-making, execution, and continuous improvement with minimal human intervention while preserving oversight and accountability.
[0060] FIG. 5 is a process flow diagram for preventing infiltration of ransomware in which, at 510, file write operations for a file are intercepted in a monitored computing environment. Thereafter, at 520, a shadow copy of the file is created and, at 530, suspicious patterns within the intercepted file write operations are detected (i.e., patterns indicative of ransomware or other malicious activity, etc.). In response, at 540, malicious modifications to the file are selectively rolled back using the shadow copy of the file. In addition, at 550, Write-Once-Read-Multiple (WORM) protection can then be initiated for specified file directories within or associated with the monitored computing environment. In some variations, potentially malicious file writes are buffered prior to commit to storage, and the buffered writes are discarded upon detection of the suspicious patterns.
[0061] FIG. 6 is a process flow diagram for mitigating ransomware activity on an endpoint in which, at 610, write I / O request packets (IRPs) issued by user-mode processes are intercepted using a Windows Filter Manager-compliant kernel-mode minifilter driver before the IRPs reach a filesystem layer. For each intercepted write IRP targeting a byte range of a file, at 620, original data from the byte range on disk is read and then stored in a shadow storage that comprises a write-ahead log together with metadata. The metadata can, for example, include one of more of timestamp, a process identifier, a file path or identifier, a file offset, a length, and an operation type, while preserving temporal order among write IRPs. Subsequently, at 630, inline entropy analysis is performed on write payloads using file-type-aware thresholds retrieved from a lookup structure indexed by file type. In addition, at 640, suspicious behavior is declared upon detecting at least a predefined number of consecutive high-entropy chunks for a common process across multiple files within a configurable time window and with an overwrite-rate exceeding a policy-defined threshold. In response to declaring the suspicious behavior, at 650, write-once-read-multiple (WORM) protection is activated at a per-directory scope such that modifications to existing files under the scope are blocked while permitting reads and creation of new files, and recording, for each blocked write attempt, forensic data comprising the process identifier, the file path, and a timestamp. Further, at 660, malicious modifications are selectively rolled back by reconstructing file content using the temporally ordered write-ahead log to restore pre-modification bytes for selected files or byte ranges after verifying cryptographic integrity of corresponding log records.
[0062] FIG. 7 is a process flow diagram for preventing ransomware infiltration on a computing endpoint in which, at 710, file system write operations are intercepted using a kernel-level interception program before data is persisted to storage. Thereafter, at 720, metadata associated with each intercepted file system write operation is captured. In response, at 730, a shadow copy of pre-modification data for files targeted by the intercepted file system write operations is created. Suspicious patterns within the intercepted file system write operations are detected, at 740, by analyzing entropy changes between pre-modification and post-modification states of files. The shadow copy is used, at 750, to selectively roll back malicious modifications to one or more affected files in response to the detection of the suspicious patterns. Further, at 760, write protection is initiated for specified directories within a monitored filesystem in response to the detection of the suspicious patterns.
[0063] FIG. 8 is a process flow diagram for preventing ransomware infiltration on a computing endpoint in which, at 810, file system operations are intercepted using a security framework that receives notifications for file system events without requiring a kernel-mode driver. Upon receiving an event when a process opens a file for writing, at 820, a current state of the file prior to modification is snapshotted. Upon receiving a file close event, at 830, the modified file is analyzed to detect changes indicative of ransomware behavior. Thereafter, at 840, a suspicion score is maintained by tracking suspicious file modifications on a per-process basis. In response to a process accumulating a suspicion score exceeding a threshold, at 850, the process is flagged as potentially malicious and blocking subsequent file access attempts by the flagged process. Files modified by the flagged process are, at 860, selectively rolled back using pre-modification data captured during monitoring.
[0064] Various implementations of the subject matter described herein can be realized in digital electronic circuitry, integrated circuitry, specially designed application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), tensor processing units (TPUs), neural processing units (NPUs), or other artificial intelligence (AI) accelerators, computer hardware, firmware, software, and / or any combination thereof. Implementations can execute on heterogeneous, distributed, and / or virtualized computing environments, including on-premises systems, cloud platforms (public, private, hybrid, multi-cloud), edge and fog nodes, mobile and embedded devices, and Internet-of-Things (IoT) endpoints. Implementations can be embodied in one or more computer programs or non-transitory computer program products executable and / or interpretable on a programmable system including at least one programmable processor (e.g., central processing unit (CPU), graphics processing unit (GPU), digital signal processor (DSP), tensor processing unit (TPU), neural processing unit (NPU)), which can be special- or general-purpose, coupled to receive data and instructions from, and to transmit data and instructions to, one or more storage systems, input devices, and output devices.
[0065] These computer programs (also referred to as programs, software, applications, services, microservices, functions, or code) include machine instructions for a programmable processor and can be implemented in high-level, procedural, object-oriented, functional, reactive, dataflow, and / or scripting languages; domain-specific languages; and / or assembly or machine languages. Programs can include hardware description languages (e.g., hardware description languages such as Verilog, VHSIC Hardware Description Language (VHDL), SystemVerilog) and accelerator programming models (e.g., Open Computing Language (OpenCL), SYCL). As used herein, “machine-readable medium” refers to any non-transitory computer program product, apparatus, and / or device (e.g., magnetic disks, optical disks, solid-state drives, random access memory (RAM), read-only memory (ROM), Flash, electrically erasable programmable read-only memory (EEPROM), non-volatile memory express (NVMe), three-dimensional XPoint (3D XPoint), magnetoresistive random-access memory (MRAM), phase-change random-access memory (PCRAM), and programmable logic devices (PLDs)) used to provide machine instructions and / or data to a programmable processor, including via a machine-readable signal. The term “non-transitory” as used herein excludes transitory propagating signals per se, but does not exclude information stored on non-transitory media. A “machine-readable signal” refers to any signal used to provide machine instructions and / or data to a programmable processor, including wired and wireless signals.
[0066] These computer programs (also referred to as programs, software, applications, services, microservices, functions, or code) include machine instructions for a programmable processor and can be implemented in high-level, procedural, object-oriented, functional, reactive, dataflow, and / or scripting languages; domain-specific languages; and / or assembly or machine languages. Programs can include hardware description languages (e.g., hardware description languages such as Verilog, VHSIC Hardware Description Language (VHDL), SystemVerilog) and accelerator programming models (e.g., Open Computing Language (OpenCL), SYCL). As used herein, “machine-readable medium” refers to any computer program product, apparatus, and / or device (e.g., magnetic disks, optical disks, solid-state drives, random access memory (RAM), read-only memory (ROM), Flash, electrically erasable programmable read-only memory (EEPROM), non-volatile memory express (NVMe), three-dimensional XPoint (3D XPoint), magnetoresistive random-access memory (MRAM), phase-change random-access memory (PCRAM), and programmable logic devices (PLDs)) used to provide machine instructions and / or data to a programmable processor, including via a machine-readable signal. A “machine-readable signal” refers to any signal used to provide machine instructions and / or data to a programmable processor, including wired and wireless signals.
[0067] Storage systems can include volatile and non-volatile memory; local, network-attached, and distributed storage; file, block, and object stores; databases (relational, non-relational (NoSQL), graph, time-series), data warehouses, and data lakes. Processing and storage can be organized using virtualization and isolation technologies including hypervisors, virtual machines, containers, container orchestration systems, serverless functions, sandboxes, unikernels, and WebAssembly runtimes. Deployment and lifecycle management can utilize infrastructure-as-code, configuration management, continuous integration / continuous deployment (CI / CD) pipelines, and observability tooling (logging, metrics, tracing). Implementations can leverage security hardware and services such as trusted platform modules (TPMs), hardware security modules (HSMs), secure enclaves / trusted execution environments (TEEs), cryptographic modules, and identity and access management systems; and can employ encryption in transit and at rest, attestation, code signing, and secure boot.
[0068] To provide for interaction with a user, the subject matter can be implemented on devices with displays (e.g., light-emitting diode (LED), liquid crystal display (LCD), organic light-emitting diode (OLED), electronic ink (e-ink), augmented reality (AR), virtual reality (VR), mixed reality (MR) headsets) and input mechanisms (e.g., keyboard, mouse, trackball, touchpad, touchscreen, stylus, game controller, remote control). Additional input and feedback modalities can include microphones, speakers, cameras, depth sensors, biometric sensors, haptic devices, eye tracking, gesture recognition, voice assistants, and brain-computer interfaces. Feedback can be visual, auditory, haptic, or multimodal. Implementations can support accessibility features (e.g., screen readers, captioning, alternative input).
[0069] The subject matter can be implemented in a computing system including back-end components (e.g., data servers, storage clusters, compute clusters, artificial intelligence (AI) training / inference services), middleware components (e.g., application servers, message brokers, application programming interface (API) gateways, event streams), and / or front-end components (e.g., client applications, web browsers, mobile applications (apps), thin clients), or any combination thereof. Components can be interconnected by any form or medium of digital data communication, including wired and wireless networks and protocols such as Ethernet, InfiniBand, controller area network (CAN) bus, wireless fidelity (Wi-Fi), Bluetooth / Bluetooth Low Energy (BLE), near-field communication (NFC), Zigbee, Z-Wave, long range (LoRa) / LoRa wide area network (LoRaWAN), cellular (third generation (3G), fourth generation (4G), fifth generation (5G), sixth generation (6G)), satellite, mesh networks, and the Internet. Protocols can include transmission control protocol / internet protocol (TCP / IP), user datagram protocol (UDP), quick UDP internet connections (QUIC), hypertext transfer protocol (HTTP / 2-HTTP / 3), WebSockets, gRPC (gRPC remote procedure calls), message queuing telemetry transport (MQTT), advanced message queuing protocol (AMQP), constrained application protocol (CoAP), and industrial protocols. Systems can employ software-defined networking, load balancing, content delivery networks, caches, and time synchronization (e.g., network time protocol (NTP), precision time protocol (PTP)). Processing can occur centrally, at the edge, on-device, or in federated and / or privacy-preserving arrangements, and can support online, offline, batch, streaming, and real-time modes.
[0070] The computing system can include clients, servers, and other interconnected components that may be distributed across various physical or virtual locations. Clients and servers can be remote from each other and typically interact through one or more communication networks, which can include local area networks, wide area networks, the Internet, or wireless and mobile networks. Clients can include desktop computers, laptops, mobile devices, web browsers, thin clients, IoT devices, or edge nodes, while servers can include physical or virtual machines, cloud-based instances, microservices, containers, or serverless functions. The client-server relationship can be established by computer programs running on the respective devices, enabling communication, data exchange, and service orchestration. Modern computing environments can support multiple tiers and roles, such as peer-to-peer, edge-to-cloud, and hybrid architectures, where clients and servers may dynamically assume different roles, participate in distributed processing, and interact with middleware, APIs, and other services. These systems can leverage load balancing, failover, replication, and autoscaling to provide robust, scalable, and resilient operation across diverse deployment models.
[0071] In the descriptions above and in the claims, phrases such as “at least one of” or “one or more of” may occur followed by a conjunctive list of elements or features. The term “and / or” may also occur in a list of two or more elements or features. Unless otherwise implicitly or explicitly contradicted by the context in which it is used, such a phrase is intended to mean any of the listed elements or features individually or any of the recited elements or features in combination with any of the other recited elements or features. For example, the phrases “at least one of A and B;”“one or more of A and B;” and “A and / or B” are each intended to mean “A alone, B alone, or A and B together.” A similar interpretation is also intended for lists including three or more items. For example, the phrases “at least one of A, B, and C;”“one or more of A, B, and C;” and “A, B, and / or C” are each intended to mean “A alone, B alone, C alone, A and B together, A and C together, B and C together, or A and B and C together.” In addition, use of the term “based on,” above and in the claims is intended to mean, “based at least in part on,” such that an unrecited feature or element is also permissible.
[0072] The subject matter described herein can be embodied in systems, apparatus, methods, and / or articles depending on the desired configuration. The implementations set forth in the foregoing description do not represent all implementations consistent with the subject matter described herein. Instead, they are merely some examples consistent with aspects related to the described subject matter. Although a few variations have been described in detail above, other modifications or additions are possible. In particular, further features and / or variations can be provided in addition to those set forth herein. For example, the implementations described above can be directed to various combinations and subcombinations of the disclosed features and / or combinations and subcombinations of several further features disclosed above. In addition, the logic flows depicted in the accompanying figures and / or described herein do not necessarily require the particular order shown, or sequential order, to achieve desirable results. Other implementations may be within the scope of the following claims.
Claims
1. A computer-implemented method for preventing ransomware infiltration on a computing endpoint, the method being implemented by one or more processors and comprising:intercepting file system operations using a security framework that receives notifications for file system events without requiring a kernel-mode driver, the security framework comprising a user-space Endpoint Security client subscribed to authorization events for file open and file close operations;upon receiving an event when a process opens a file for writing, snapshotting a current state of the file prior to modification;upon receiving a file close event, analyzing the file after modification to detect changes indicative of ransomware behavior;tracking suspicious file modifications on a per-process basis by maintaining a suspicion score;in response to the process accumulating the suspicion score exceeding a threshold, flagging the process as potentially malicious and blocking subsequent file access attempts by the flagged process; andselectively rolling back files modified by the flagged process using pre-modification data captured during monitoring; anddetermining a trust classification for the process by utilizing digital signatures and process metadata, the trust classification being determined by querying code signing status, team identifier, certificate chain, notarization status, hardened runtime entitlements, and sandboxing status for the process.
2. The method of claim 1, wherein the security framework comprises an Endpoint Security (ES) framework, and wherein a security agent registered as the ES client subscribes to events to approve or deny the file system operations before completion, or events for post-operation notifications.
3. The method of claim 2, wherein snapshotting the current state of the file comprises receiving an authorization event indicating the process has opened the file for writing and storing a pre-modification snapshot in a protected in-memory data structure indexed by file identifier for efficient retrieval upon the file close event.
4. The method of claim 1, wherein snapshotting the current state of the file comprises capturing header bytes comprising an initial N bytes of the file, wherein N is at least 256 bytes, containing file format signatures and metadata.
5. The method of claim 4, wherein the header bytes include magic bytes comprising specific byte sequences located at defined offsets within the file that identify a format of the file.
6. The method of claim 5, wherein analyzing the file after modification comprises detecting corruption of the magic bytes by identifying modification or destruction of format identifiers including byte sequences.
7. The method of claim 1, further comprising maintaining a process reputation cache with a configurable time-to-live that stores trust classifications based on code signing status and developer certificates issued by a certificate authority.
8. The method of claim 1, wherein tracking suspicious file modifications comprises incrementing the suspicion score according to policy-defined weights for each high-entropy write, magic byte corruption event, or other anomalous behavior.
9. The method of claim 1, wherein blocking subsequent file access attempts by the flagged process comprises responding to each subsequent file access attempt of the subsequent file access attempts by returning a denial before any modification can occur.
10. The method of claim 1, further comprising recording, for each blocked access attempt, forensic data including a process identifier, a process path, a file path, a timestamp, and a denial reason.
11. The method of claim 10, further comprising transmitting real-time notifications to a monitoring platform or security operations center for each blocked access attempt.
12. The method of claim 1, further comprising applying differentiated monitoring policies based on the trust classification, the differentiated monitoring policies providing that write operations from high-trust processes are monitored with reduced overhead and write operations from unknown or low-trust processes are subject to full monitoring including comprehensive entropy analysis and header byte comparison.
13. The method of claim 1, wherein selectively rolling back comprises restoring the files using temporally ordered pre-modification data captured prior to the process being flagged as malicious.
14. A computer-implemented method for detecting and mitigating ransomware activity on a computing device, the method comprising:registering a security agent to receive file system event notifications;subscribing to authorization events to enable approval or denial of file system operations;upon receiving an event when a process opens a file for writing, capturing pre-modification file state by computing an entropy value and reading header bytes containing file format signatures, and storing the entropy value and the header bytes in a protected in-memory data structure indexed by file identifier;upon receiving a file close event, performing detection analysis to evaluate whether changes indicate ransomware behavior;maintaining, for each process, a suspicion score that accumulates based on detected indicators;upon the process exceeding a suspicion score threshold, blocking subsequent file write requests by the process;recording forensic data for each blocked attempt; andenabling selective rollback of files modified by blocked processes using pre-modification data captured during monitoring and associated with the blocked processes before the processes are terminated or isolated.
15. The method of claim 14, wherein registering the security agent comprises registering an Endpoint Security (ES) client that receives the notifications for the file system events including file open, file close, file write, file rename, and file unlink operations.
16. The method of claim 14, wherein the header bytes include magic bytes comprising file format identifiers, and wherein detection of both elevated entropy approaching theoretical maximum and corruption of the magic bytes indicates potentially malicious ransomware behavior.
17. The method of claim 15, further comprising utilizing code signing information provided by an Endpoint Security framework to query signing status, team identifier, and certificate chain for processes generating file system events.
18. The method of claim 14, wherein maintaining the suspicion score comprises incrementing the score only after detecting a threshold number of anomalous events attributed to a single process, thereby requiring accumulation of behavioral evidence prior to blocking.
19. The method of claim 14, wherein the forensic data comprises a process identifier, a process path, a file path, a timestamp, and a denial reason.
20. The method of claim 14, further comprising deactivating blocking for the process upon determination that a threat has abated or upon manual override by a security administrator.
21. A system for preventing ransomware infiltration on computing endpoints, the system comprising:one or more processors; andmemory storing instructions that, when executed by the one or more processors, cause the one or more processors to:register a security agent to receive file system event notifications;subscribe to authorization events to enable approval or denial of file system operations;upon receiving an event when a process opens a file for writing, snapshot current file state;upon file close, analyze the file after modification to detect changes indicative of ransomware behavior;maintain a per-process suspicion score that accumulates based on detected indicators of compromise;upon the process exceeding a suspicion threshold, flag the process as malicious and block subsequent file write attempts;record forensic data for blocked attempts;selectively roll back files modified by flagged processes using pre-modification data associated with the flagged processes before the processes are terminated or isolated; andmaintain a process reputation cache storing trust classifications for each process based on code signing status, developer certificates, notarization status, hardened runtime entitlements, and sandboxing status.
22. The system of claim 21, wherein the instructions further cause the one or more processors to apply differentiated monitoring policies based on the trust classifications stored in the process reputation cache, with reduced overhead for high-trust processes and comprehensive analysis for unknown or low-trust processes.
23. The system of claim 21, wherein the current file state comprises header bytes including initial bytes of each file containing magic bytes that identify file format according to specification.
24. The system of claim 23, wherein the per-process suspicion score is incremented according to policy-defined weights for each detected high-entropy write or magic byte corruption event.
25. The system of claim 21, wherein the forensic data comprises a process identifier, a process path, a file path, a timestamp, and a denial reason.
26. The system of claim 21, wherein the instructions further cause the one or more processors to integrate with selective rollback mechanisms to restore the files modified prior to the process being flagged, using pre-modification data captured during monitoring.
27. The system of claim 21, wherein the instructions further cause the one or more processors to store the pre-modification data in a protected shadow storage container together with metadata comprising a timestamp, a process identifier, a file path, a file offset, a length, and an operation type, while preserving temporal ordering of write operations.
28. The system of claim 21, wherein the instructions further cause the one or more processors to transmit real-time notifications to a monitoring platform or security operations center for each blocked file write attempt.
29. The system of claim 21, wherein the instructions further cause the one or more processors to selectively roll back the files by reconstructing file content using temporally ordered pre-modification data to restore pre-modification bytes with sub-second granularity for selected files or byte ranges.
30. The system of claim 21, wherein the instructions further cause the one or more processors to operate in a fail-open mode under resource constraints to maintain system stability while continuing to record minimal metadata for subsequent analysis.
Citation Information
Patent Citations
Ransomware detection in a continuous data protection environment
US10409986B1
Method and apparatus for electronic mail filtering
US20100217811A1
Protection system and method for protecting a computer system against ransomware attacks
US20180157834A1
Systems and methods for detection and mitigation of malicious encryption
US20190109869A1
System and method for protection against ransomware attacks
US20190347418A1
