News for hackers. Stuff that matters.
Re:Using LD_PRELOAD to cheat, inject features and investigat... by josephcsible on Friday September 08, 2023 @09:25PM (#37441270)
This is not an attack vector and not something programs should try to protect against. If attackers have control to the point that they can run a program with LD_PRELOAD, they've already won.
Re:Using LD_PRELOAD to cheat, inject features and investigat... by ghotli on Friday September 08, 2023 @09:32PM (#37441303)
Won on that node, agreed. I suppose I meant the 'investigate programs' part of the title and if that aids in garnering info for attacking something it interacts with.

But of course it's all splitting hairs. A sufficiently dedicated / motivated / funded person can investigate even the most hardened static position independent binary. Dynamic linking with LD_PRELOAD is like propping the front door open in comparison.

Re:Using LD_PRELOAD to cheat, inject features and investigat... by yonatan8070 on Saturday September 09, 2023 @12:37AM (#37442340)
There are cases where developers need to protect software from a local user with root access, like DRM related software, games that want to defend against pirates, etc.
Re:Using LD_PRELOAD to cheat, inject features and investigat... by ronsor on Saturday September 09, 2023 @12:51AM (#37442398)
That's more of a want than a need.
Re:Using LD_PRELOAD to cheat, inject features and investigat... by josephcsible on Saturday September 09, 2023 @01:16AM (#37442500)
Those use cases are inherently evil, and the rest of us should go out of our way to make them impossible, or at least as difficult as possible. A local user with root access should always have full control over everything, regardless of the wishes of any hardware manufacturers or software developers.
Re:Using LD_PRELOAD to cheat, inject features and investigat... by saagarjha on Saturday September 09, 2023 @05:12PM (#37450335)
This would not help with that goal.