Urgent.News

What's breaking now, across thousands of outlets.

Tech

I wrote a new Elastic detection rule to catch eBPF rootkits compiling on-host 🛡️

If you've been following Linux security, you know that eBPF is a double-edged sword. It's incredible for observability and networking, but it's also the new favorite playground for Linux rootkits. Most open-source security rules try to catch eBPF malware when it loads into the kernel (usually by watching bpftool **or the **bpf() syscall). But I noticed a gap in the Elastic Security…

A new Elastic detection rule has been created to identify eBPF rootkits that are compiling on-host. eBPF, or extended Berkeley Packet Filter, is a powerful tool for observability and networking in Linux, but it has also become a favorite tool for attackers to create rootkits. Most open-source security rules focus on detecting eBPF malware when it loads into the kernel, but this new rule addresses a gap in identifying malware during its compilation stage.

The rule uses Event Query Language (EQL) to monitor process executions on Linux hosts specifically looking for clang being executed with arguments targeting the BPF backend. This approach accounts for various little-endian, big-endian, full target triples, and single-token flag variants that attackers may use. The rule also considers failed attempts where attackers might make typos, as Linux execve still logs these errors. By capturing these syntax errors, the query can detect attackers making mistakes in real-time.

The author of the rule, who is part of the Elastic Security detection-rules repository, noticed the need for this new detection method when attackers use the "Compile After Delivery" technique (T1027.004). Instead of dropping the eBPF object as a .c source code file, attackers compile it on the fly using the local clang toolchain.

To address this, the author submitted a pull request to Elastic (closing issue #6562). Collaboration with the original issue author, who provided a corpus of real-world clang execution logs, helped harden the query and remove blind spots. This open-source security collaboration demonstrates the power of community-driven security efforts.

When Elastic Defend or Auditbeat is running in your environment, keep an eye out for this new rule in an upcoming release.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

SMTP 250 OK Doesn't Mean Delivered. 12 of 50 Emails Bounced.

api, #cybersecurity, #webdev, #python The 250 OK Lie I Measured Last Tuesday Last Tuesday I ran a small experiment: I took 50 email addresses that had already passed two layers of validation, regex…

  • SMTP 250 OK indicates successful server handshake but doesn't guarantee delivery
  • 12 out of 50 test emails bounced despite passing initial validation
  • Validating email addresses requires considering role-based, disposable, and breached addresses

I Tried to Put AI Into the Race. Then I Realized It Didn't Need AI.

In the previous post, I started working out what EvoWild Run is actually supposed to be as a game. Raise Creatures. Breed them. Continue their lineages across generations.

  • Initially considered controlling race creature directly, but decided against it.
  • Experimented with AI Race Agent for pre-defined commands, but deemed optional.
  • Core mechanics function without AI, Live AI unnecessary for initial version.

More from Tuesday 22 September →