Dynamic linker hijacking attempt
Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel,
n'hésitez pas à nous contacter.
What happened
{{#is_exact_match “case_name” “dynamic_linker_config_unlink”}}The file which configures dynamically linked libraries was deleted. Program functions may have been overridden to hide processes or files and evade detection.{{/is_exact_match}}
{{#is_exact_match “case_name” “dynamic_linker_config_write”}}The file which configures dynamically linked libraries was modified. Program functions may have been overridden to hide processes or files and evade detection.{{/is_exact_match}}
{{#is_exact_match “case_name” “ld_preload_unusual_library_path”}}The LD_PRELOAD environment variable was configured to load libraries from an unusual location. Program functions may have been overridden to hide processes or files and evade detection.{{/is_exact_match}}
Goal
Detect attempts to evade detection by loading a malicious library. These libraries often hide processes or files from commands such as ps or ls.
Strategy
After an attacker’s initial intrusion into a victim container or host (for example, through a web shell exploit), they may attempt to escalate privileges, evade defenses, or establish persistence by hijacking environment variables such as LD_PRELOAD, or configuration files such as /etc/ld.so.preload/, which the dynamic linker uses to load shared libraries.
Triage and response
- Determine whether or not this is expected behavior.{{#is_match “case_name” “dynamic_linker_config”}} Retrieve the file content and review it for unexpected entries.{{/is_match}}{{#is_exact_match “case_name” “ld_preload_unusual_library_path”}} Review the value of the
LD_PRELOAD environment variable for unexpected file paths.{{/is_exact_match}} - If this behavior is unexpected, attempt to contain the compromise (this may be achieved by terminating the workload, depending on the stage of attack) and look for indications of initial compromise. Follow your organization’s internal processes for investigating and remediating compromised systems.
- Determine the nature of the attack and utilities involved. Investigate security signals (if present) occurring around the time of the event to establish an attack path.
- Find and repair the root cause of the exploit.
Changelog
- 26 September 2024 - Updated rule name, severity, and description
Requires Agent version 7.39 or later