Issues with registry permissions protecting specif...
# _general
a
Issues with registry permissions protecting specific values? No problem, copy reg.exe to reg1.exe and voilà
😬 1
❤️ 1
🙃 5
😂 3
🫣 1
j
It's awful coding from Microsoft to allow that.
s
I'm trying to wrap my head around, why this actually works. Can someone explain?
j
If I didn't know better I'd say the permissions only apply when reg,exe or regedit.exe is doing the executing. Great argument for AppLocker. Hopefully Microsoft get this addressed
FWIW I can't recreate this. Reg1.exe just hangs forever
a
To clarify here - permissions isn’t the right term, this is just a protected value in this instance. Not sure why it’s a protected value - this one is for disabling widgets on the taskbar in HKCU.
j
Ah
a
Have you loaded the default user registry?
j
No, I just created a key in HKLM and stripped the permissions off it
So not what you were demonstrating. Registry permissions still work, which is great
a
It’s that reg value specifically
👍 1
j
This is typically how Microsoft do these things based on names of signed binaries: https://kolbi.cz/blog/2024/04/03/userchoice-protection-driver-ucpd-sys/ Christoph Kolbicz is a master of reversing and explaining this. So copying reg.exe to reg1.exe makes sense for what Aaron discovered here. But it's still crap coding from Microsoft to even allow this. If they managed this based on file hash, or something like that, it may stop this from happening.
👍🏻 1
l
Back in my AppSense days we copied reg.exe to do all kinds of tricks. Go get it to work properly you need a matching reg1.exe.mui in the system32\en-us folder to go with reg1.exe.
j
Yeah, but with AppSense you could also block an exe based on file hash. So if you block Notepad.exe based on file hash, copying Notepad.exe to Notepad1.exe would not allow Notepad1.exe to run.
l
I'm not necessarily talking about AppSense but my experience working there. Reg.exe requires a corresponding reg.exe.mui. If you rename reg you need a renamed mui file.