News for hackers. Stuff that matters.
Re:Implementing Global Injection and Hooking in Windows by jnwatson on Tuesday April 19, 2022 @11:19PM (#31092447)
The hardest thing to wrap my head around in Windows is how perfectly normal and common to load new code into existing processes. There are well-known APIs to do it.
Re:Implementing Global Injection and Hooking in Windows by R0b0t1 on Wednesday April 20, 2022 @01:50AM (#31093329)
Much of this is borne out of not having source for code critical to your business. So, you inject patches.
Re:Implementing Global Injection and Hooking in Windows by nitinreddy88 on Tuesday April 19, 2022 @11:55PM (#31092645)
This is within process access limits.

Non elevated process can't inject into elevated process. X user process can't inject into Y user process.

If user has access to process, they have very well access to modify by decompiling or reverse engineering it. Dynamic injection makes it much more seamless and less painful.

Re:Implementing Global Injection and Hooking in Windows by Terry_Roll on Wednesday April 20, 2022 @01:15AM (#31093076)
You'd be correct!

https://docs.microsoft.com/en-us/windows/win32/winstation/wi...

https://docs.microsoft.com/en-us/windows/win32/winstation/de...

https://docs.microsoft.com/en-us/windows/win32/procthread/pr...

https://docs.microsoft.com/en-us/windows/win32/procthread/th...

https://docs.microsoft.com/en-us/windows/win32/fileio/file-s...

Here https://news.ycombinator.com/item?id=31092978 suggests its not possible to prevent code injection aka system or app hooks. Preventing system and app hooks is very possible and the MS api's gve you all you need to block them, people just need to come up with innovative ways to deploy them!

Re:Implementing Global Injection and Hooking in Windows by qzw on Wednesday April 20, 2022 @02:09AM (#31093413)
I don't think the comment by wfh is saying that it's not possible to prevent these hooks. In fact, wfh is saying the opposite, i.e. that they already have the mitigation in place, but cannot enable it because there are legitimate use cases for hooking/injection, and users who use programs that depend on these techniques would be (rightly) upset if Chrome unilaterally decided to block all such use cases. The comment is lamenting the fact that the author of the blog post is creating yet more such use cases and will make it even harder for Chrome to ever enable the feature to prevent code injection.
Re:Implementing Global Injection and Hooking in Windows by badrabbit on Wednesday April 20, 2022 @03:54AM (#31093977)
You can ptrace() on Linux as well, it just isn't as easy: https://blog.xpnsec.com/linux-process-injection-aka-injectin...