Linux Preload Hijack Library Calls
The following analytic detects the use of the LD_PRELOAD environment variable to hijack or hook library functions on a Linux platform. It leverages data from Endpoint Detection and Response (EDR) agents, focusing on…
Description
The following analytic detects the use of the LD_PRELOAD environment variable to hijack or hook library functions on a Linux platform. It leverages data from Endpoint Detection and Response (EDR) agents, focusing on process execution logs that include command-line details. This activity is significant because adversaries, malware authors, and red teamers commonly use this technique to gain elevated privileges and establish persistence on a compromised machine. If confirmed malicious, this behavior could allow attackers to execute arbitrary code, escalate privileges, and maintain long-term access to the system.
Detection logic
Detection requirements
- Platform
- LinuxmacOS
The rule states no platform. This is derived from the ATT&CK technique it maps to.
- Log source category
- sysmon_for_linux_eventid_1
Known benign triggers
- Administrator or network operator can execute this command. Please update the filter macros to remove false positives.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| compilepeace.medium.com/memory-malware-part-0x2-writing-userland-rootkits-via-ld-preload-30121c8343d5 | 2 |
From the source
- At source
- Open at source
- Upstream identifier
- cbe2ca30-631e-11ec-8670-acde48001122
- Tagged by the source as
- China-Nexus Threat ActivityLinux Persistence TechniquesLinux Privilege EscalationSalt TyphoonVoidLink Cloud-Native Linux MalwareEndpointendpointSplunk CloudSplunk EnterpriseSplunk Enterprise Securityendpoint
Licence
- Published under
- Apache License 2.0Read the licence
- Attribution
- Required
- Obtained under
- Apache-2.0Read the origin licence
Authorship
- Written by
- Published
- Aug 26, 2026
- Version
- 1