DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
Redmond desk5 min

Ransomware Detection on Windows and Linux with ETW and eBPF

ETW and eBPF can surface ransomware-related behavior, but reliable detection depends on process context, cross-event correlation, collection health, and a defined response path.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

ETW and eBPF can provide useful host telemetry for detecting behavior associated with ransomware, but neither is a complete detection or response system. Build detections by correlating bursts of file activity with process context, recovery-inhibition behavior, persistence changes, and network activity; investigate the resulting signals rather than treating any one event as proof of infection.

What ETW and eBPF contribute

Windows Event Tracing (ETW) is a framework for collecting event data. Providers emit events into sessions, controllers manage sessions and enable providers, and consumers read trace files or process events in real time. ETW transports telemetry; an analytic layer must decide whether the activity is suspicious.

As an Amazon Associate I earn from qualifying purchases.

On Linux, eBPF programs can observe kernel-related activity. What a sensor can see, how it reports that activity, and which systems it supports depend on the specific implementation, distribution, kernel, and agent version. An eBPF sensor is not automatically compatible with every Linux host.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Mechanism What it can contribute What it does not do by itself
ETW Events from enabled Windows providers, delivered through trace sessions to a consumer. Interpret events as ransomware or generate a detection without separate analytics.
Sysmon Configurable Windows Event Log context, including process, file, network, DNS, and configuration activity. Determine intent, analyze its own events, or alert on ransomware automatically.
eBPF sensor Kernel-related activity selected and exposed by that sensor’s implementation. Guarantee uniform coverage or compatibility across Linux systems and vendors.

Do not assume equivalent event names or meanings across ETW providers, Sysmon, and eBPF. Confirm what each selected source actually reports before writing rules that depend on it.

Which file activity is suspicious?

File encryption can create a rapid sequence of reads and writes across many files, broad access to particular file types, directory traversal, and repeated file creation, renaming, or deletion as originals are rewritten. A single write or rename is weak evidence; the combination, pace, breadth, and process responsible are more useful investigative signals.

  • Count files touched and distinguish repeated activity across one directory from traversal across many locations.
  • Correlate reads and writes with create, rename, and delete events around the same files.
  • Preserve process identity and lineage, command line, executable identity, user, host role, and timestamps.
  • Look for related persistence activity and unusual use of tools that can inhibit recovery.
  • Correlate host events with relevant network activity, including suspicious command-and-control behavior where network monitoring can observe it.

Legitimate backup, software deployment, indexing, compression, and other bulk file operations can resemble portions of this behavior. Microsoft Learn’s Sysmon event guidance states, “No single event indicates malicious activity by itself.” Treat an unusual sequence as a reason to investigate, not as a verdict.

How to build a cross-platform detection

  1. Choose the signals. Select Windows providers and Linux sensor events that expose the process, file, persistence, and network context your rules require. Document gaps rather than assuming either platform provides the same fields.
  2. Correlate over a short time window. Build a sequence or score from read/write bursts, number and diversity of files, directory traversal, and create/rename/delete patterns. Include process identity and relevant recovery-tool behavior. There is no universal threshold established for this combination; tune against representative workloads.
  3. Establish benign baselines. Exercise known bulk-I/O workloads such as backup, deployment, indexing, and compression. Use those observations to reduce noise without suppressing suspicious activity broadly.
  4. Validate collection health. Track ETW buffer loss, consumer throughput, delayed or dropped events, timestamps, and forwarding health. Monitor comparable health indicators in the Linux sensor and downstream pipeline.
  5. Connect alerts to an operational response. Define who receives an alert, what evidence is retained, and how containment and recovery decisions are made. Host telemetry complements, rather than replaces, prevention, network visibility, response, and recovery controls.

Windows: use ETW and Sysmon for complementary context

Enable ETW providers appropriate to the system or application events needed by the detection, then route session data to a consumer and analytics pipeline. Inspect loss statistics: Microsoft documents that event size, buffer capacity, and a consumer that cannot keep up can result in lost events. A quiet alert stream is not reassuring if collection is dropping data.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Sysmon can add structured process, file, network, DNS, and configuration context to Windows Event Log. Configure high-volume event classes selectively and send the resulting events to a system that can correlate and alert. Sysmon is an event source, not a detection engine; its official overview says it does not analyze generated events or produce alerts on its own.

Linux: validate the specific eBPF sensor

Before deployment, check the sensor vendor’s current support table and known-issues information for the exact Linux distribution, kernel, and agent version. Microsoft Defender for Endpoint’s eBPF provider is one vendor-specific implementation; its prerequisites, fallback behavior when eBPF is unavailable or disabled, and kernel configuration warnings should not be generalized to custom eBPF programs or other products.

Confirm which events remain available if the provider falls back or cannot load, and make that state visible to monitoring. Do not assume that a supported kernel version alone guarantees a working sensor on a particular host.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Capacity, noise, and response readiness

Collecting or intercepting every I/O operation can create substantial event volume and impose performance overhead. ETW can lose events if session buffers or consumers cannot keep pace, while any high-volume telemetry pipeline can strain CPU, memory, storage, or forwarding capacity. Measure event loss, resource use, and application latency against representative workloads before tuning production collection.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use targeted event selection and filtering to manage volume, but preserve enough context to reconstruct the sequence that prompted an alert. CISA’s StopRansomware guidance recommends layered monitoring that can include Sysmon, EDR, IDS, and centrally managed alerting. It also identifies anomalous use of recovery-inhibition tools such as vssadmin, wbadmin, bcdedit, fsutil, and wmic as activity to monitor. These tools can have legitimate uses, so assess their use in context.

What a successful deployment can—and cannot—claim

A well-designed pipeline can collect and correlate behavior that warrants investigation across Windows and Linux. The available evidence does not establish a universal detection threshold, an expected accuracy or false-positive rate for a combined ETW/eBPF detector, or that telemetry alone prevents encryption. Evaluate a concrete implementation with representative workloads and documented ground truth, and treat an alert as the start of investigation and response—not proof of compromise.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.