Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober 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
World desk3 min

How to Detect eBPF Rootkits Compiling on a Linux Host

On-host eBPF compilation may be an investigative signal, but defenders should correlate it with BPF loading, attachment, helper use, and host context.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

On-host eBPF compilation can be a useful signal for defenders, but it is not proof of a rootkit: legitimate observability, networking, and security software also builds and uses eBPF. Elastic’s title describes a new custom detection rule for this activity, but the reviewed public material does not provide its query, validation results, or alert history. Treat compilation as one stage in an investigation, alongside evidence of BPF program loading, attachment, and suspicious process behavior.

What an on-host compilation alert can tell you

eBPF rootkits abuse Linux’s BPF subsystem. A malicious program may be built on a compromised host and later loaded or attached using tools such as bpftool or a custom loader that invokes BPF system calls. Seeing output-producing compilation may therefore provide an earlier or complementary lead than watching only for a program being loaded.

These are distinct behaviors. A process producing a binary is evidence of build activity; it does not establish that the output is an eBPF program, that it was loaded, or that it is malicious. Conversely, a rootkit need not compile on the compromised machine, and the available sources do not establish one required compiler or build utility.

Correlate compilation with BPF-specific signals

Elastic Security Labs describes several useful monitoring points for activity in the BPF subsystem. Look for them as separate signals and correlate them with the build event, rather than treating any one event as conclusive.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Signal What it can show How to interpret it
Output-producing compilation A process performed build activity that created an output binary. Useful context for a possible on-host build; not proof that the binary is an eBPF rootkit. Elastic’s prebuilt-rule reference describes a compilation-activity detection that focuses on output-producing activity and filters inspection-only operations. Elastic prebuilt rule reference.
BPF map operations Map creation, lookup, or update behavior in the BPF subsystem. Review the calling process, account, privilege context, and whether the activity fits expected software. Elastic Security Labs’ rootkit detection guidance.
BPF program load or attach A program is being loaded into, or attached through, the BPF subsystem; activity may involve bpftool or a custom loader. Potentially closer to execution than a build event, but still requires context. Elastic’s rule reference also lists BPF program or map activity via bpftool. Elastic prebuilt rule reference.
Sensitive helper and kernel-log activity Use of a sensitive helper such as bpf_probe_write_user, including evidence monitored through kernel logs. Investigate alongside process and BPF events; helper use is a signal, not a standalone verdict. Elastic Security Labs’ rootkit detection guidance.

Elastic Security Labs also gives audit syscall examples covering map creation, lookup and update, program loading, and program attachment. Its guidance emphasizes layered monitoring rather than relying on a single event.

Why legitimate activity can trigger attention

Endpoint security agents, observability products, and networking software can all use eBPF. BPF map activity, program loading, and compilation may be expected on a particular host. Tune detections against the software and workloads in your environment; avoid treating every BPF action or binary-producing build as malicious.

Investigate the surrounding context: process ancestry, the user and privilege level, command and output files, whether the resulting artifact is followed by BPF load or attach behavior, and other host indicators. An alert is an investigative lead, not a verdict.

Check that the host provides the needed telemetry

Confirm that the relevant events are collected and that the fields available to your rule match its assumptions. Elastic documents that Elastic Endpoint uses eBPF for Linux event sourcing on kernel version 5.10.16 and newer; on older kernels it uses tracefs for this event-sourcing data. That implementation detail is not a guarantee that a particular compilation or BPF event is present in every deployment. See the Elastic eBPF repository for the documented implementation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What is—and is not—publicly established about the new rule

The title identifies a new custom Elastic detection rule aimed at eBPF rootkits compiling on-host. The available public references do not show that rule’s exact definition, metadata, validation results, or alert history, so its query and effectiveness cannot be independently described here. Elastic’s detection-rules repository explains the project’s general role in developing, maintaining, testing, validating, and releasing Detection Engine rules; that does not establish that this specific custom rule was submitted to the repository or passed its checks.

Elastic’s current prebuilt-rule references provide related context—one for output-producing Linux compilation activity and another for BPF program or map activity via bpftool. They are adjacent detections, not evidence that the custom rule described in the title is a prebuilt Elastic rule. Nor do results attributed to other detections on named rootkit examples establish that this compilation rule detected those samples.

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
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

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.