← Lab /Security & privacy

Elastic Defend now logs memfd_create and module loads, exposing Linux fileless execution

Elastic Defend telemetry can reliably detect Linux fileless execution techniques such as memfd_create, interpreter one-liners, deleted binaries, and in-memory kernel module loads.

Security & privacy Elastic Security Labs 1 Sep 2026 Measurement Prototype evidence

Published as “Linux Detection Engineering - Fileless Execution”

Why it matters

Defenders can now surface previously invisible Linux fileless attacks using native process telemetry, enabling timely alerts and hunting queries.

Summary

The authors built a lab framework (FENIX) that reproduces five Linux fileless execution patterns and mapped each to Elastic Defend telemetry. Starting with Elastic Security 9.4.0, Elastic Defend records memfd_create syscalls and init_module/finit_module loads, providing observable events for otherwise stealthy payloads. Their PoCs show that sequencing these events (e.g., memfd_create followed by execve) can be used to detect fileless ELF execution, interpreter-based loaders, deleted-file execution, and in-memory kernel module loading, though benign activity can generate similar signals.

What they found 1

  1. Elastic Defend records memfd_create events starting with version 9.4.0

    “Starting with Elastic Security 9.4.0, Elastic Defend records process events for memfd_create on Linux (kernel 5.10.16+ required for eBPF-based event sourcing), improving visibility into one of the core primitives behind modern fileless ELF execution.”

Caveats 3

  • The authors note that benign processes frequently inherit file descriptors, which can trigger memfd-related detections if not correlated with the full execution chain.
  • Detection relies on kernel 5.10.16+ for memfd_create telemetry.
  • Benign activity such as inherited FDs, pipes, and container tooling can generate similar event sequences, requiring careful rule tuning.

What’s new here 4

  • Elastic Defend now emits process events for memfd_create (kernel 5.10.16+).
  • Loadable kernel module activity is reported via a new load_module event action.
  • A lab framework (FENIX) that automates reproducible fileless execution techniques.
  • Detection guidance that sequences memfd_create, execve, and module-load syscalls.