Fileless ELF Execution via Kernel Keyring
Score: 8/10

Fileless ELF Execution via Kernel Keyring

The Dntry loader utilizes the Linux kernel keyring subsystem to store ELF payloads in slab memory, executing them via anonymous memory mappings to bypass traditional filesystem-based detection.

Executive Summary

A specialized Linux fileless execution technique has been identified using a tool named 'Dntry'. This method leverages the kernel keyring subsystem (typically used for managing credentials like PAM or Kerberos) to stage ELF payloads directly in kernel slab memory. By using syscalls instead of creating file descriptors, the technique avoids common detection patterns that monitor for artifacts in /proc/self/fd/ or temporary files on disk.

The attack chain involves fetching a remote payload via HTTPS, using the `add_key` syscall to store it, and subsequently mapping it into anonymous userspace memory. The loader then manually maps ELF segments and performs a direct jump to the entry point, completely bypassing the `execve` syscall. This means no process start events are generated by traditional EDR monitoring that hooks standard execution paths.

This technique is highly effective for red teaming and advanced persistent threats because it leaves no trace on the virtual filesystem (VFS) and can operate within user-level quotas. While the loader binary itself remains a forensic artifact, the execution of the final payload occurs entirely in memory, making post-compromise detection significantly more difficult.

Key Details

Threat Name

Fileless ELF Execution via Kernel Keyring

Affects

—

Adversary

—

MITRE Techniques

Malware/Tools

Dntry

Report Score

8out of 10
Quality Score
Good
IOC Quality4
TTP Details9
Detection Guidance6
Enterprise Relevance8
Clarity & Structure10
Technical Depth9

Sources