LD_PRELOAD
A Linux dynamic linker environment variable that allows a specified shared library to be preloaded before a program starts, causing symbols in that library to be resolved ahead of those in other libraries. It is often used in library injection attacks.
Timeline (last 90 days)
User-space sandboxes (such as those based on LD_PRELOAD or Python-level permission checks) fail once the agent process is compromised or a bypass path is found; kernel-level sandboxes hand access control to the operating system kernel, and processes cannot modify the rules.
Common implementations of dynamic instrumentation and hooks include eBPF-based kernel-space probes and user-space LD_PRELOAD library replacement.
On Linux, the dynamic linker determines symbol resolution order based on configurations such as LD_PRELOAD, LD_LIBRARY_PATH, RPATH and /etc/ld.so.preload; on Windows, dependencies are located via the DLL search order (current directory, PATH, system directories).
The core of ros2_pulse is an LD_PRELOAD shim that hooks into the tracetools hooks called by rclcpp on every publish and callback, performs counting within the process, and writes the frequency to a file.
ros2_pulse injects via LD_PRELOAD, working plug-and-play with existing binaries without requiring recompilation of nodes.
All Facts (5)
User-space sandboxes (such as those based on LD_PRELOAD or Python-level permission checks) fail once the agent process is compromised or a bypass path is found; kernel-level sandboxes hand access control to the operating system kernel, and processes cannot modify the rules.
50%UnverifiedCommon implementations of dynamic instrumentation and hooks include eBPF-based kernel-space probes and user-space LD_PRELOAD library replacement.
50%UnverifiedOn Linux, the dynamic linker determines symbol resolution order based on configurations such as LD_PRELOAD, LD_LIBRARY_PATH, RPATH and /etc/ld.so.preload; on Windows, dependencies are located via the DLL search order (current directory, PATH, system directories).
50%UnverifiedThe core of ros2_pulse is an LD_PRELOAD shim that hooks into the tracetools hooks called by rclcpp on every publish and callback, performs counting within the process, and writes the frequency to a file.
50%Unverifiedros2_pulse injects via LD_PRELOAD, working plug-and-play with existing binaries without requiring recompilation of nodes.
50%