How Linux Rootkits Abuse LD_PRELOAD to Hide Malicious Activity

· Original article ↗

Summary

A tutorial explains how Linux rootkits use LD_PRELOAD to intercept functions and hide activity, demonstrates hiding a file by hooking readdir, and outlines methods to detect preload abuse.

Key points

  • LD_PRELOAD lets shared libraries load before other libraries, allowing a rootkit to intercept functions used by dynamically linked programs.
  • A demonstration hooks readdir to make ls omit a file named malicious_file.
  • The article cites Winnti for Linux, TeamTNT, Symbiote, and OrBit as examples associated with dynamic linker hijacking.
  • Attackers can use the technique to conceal files, processes, and network connections, and—in some examples—harvest credentials or enable remote access.
  • Recommended checks include inspecting /etc/ld.so.preload, reviewing process environments under /proc/{pid}/environ, comparing runtime filesystems with image snapshots, and detecting concealed processes.

Article Details

Topic
Linux rootkits using dynamic linker hijacking (LD_PRELOAD), their use in the wild, and detection methods

MITRE ATT&CK

Threat Actors

Malware

Products

Tools

Related Articles