Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Can a service process open a handle to a system process?

Say you got a service process running your code.

Now, given that youre running at NT AUTHORITY\SYSTEM would you be able to open a process handle to a system process say lsass.exe?

If yes, can you tell me where it states so? (I was unable to google my way to this info)

My system is Windows 7 x64.

Regards
Hi eskimo1 ,

Yes it is very possible to do so provided the user you have compromised as the authority to do it.

As per where it says so; Metasploit has a feature whose job is pretty much just that... directly accessing a system API on Windows operating system called Railgun.

https://github.com/rapid7/metasploit-fra...ploitation
(Oct 29, 2016 06:27 PM)Asdethprime Wrote:  Hi eskimo1 ,

Yes it is very possible to do so provided the user you have compromised as the authority to do it.

As per where it says so; Metasploit has a feature whose job is pretty much just that... directly accessing a system API on Windows operating system called Railgun.
~~

Thats the conclusion I've come to aswell - if you're running as NT Authority there shouldn't be anything stopping you from accessing csrss.exe lsass.exe and other protected processes. (Not taking into consideration kernelmode mechanisms).

Gonna try it out, thanks

Regards

Alright, I've tried it out now, and I've come to this conclusion:

Any process can access any process running in usermode - however system / 'Protected Processes' will only allow certain permissions, those being:

PROCESS/THREAD_QUERY_LIMITED_INFORMATION
PROCESS_TERMINATE
PROCESS/THREAD_SUSPEND_RESUME
SYNCHRONIZE

However another process running protected mode aswell will have the benefit of being able to bypass these checks and use ACLs instead.

Regards


Possibly Related Threads...
Thread / Author Replies Views Last Post
by loucoumeJan 19, 2014 11:09 AM 2 51 Jan 19, 2014 11:09 AM
Last Post: loucoume
by KolgeraJul 21, 2013 09:33 PM 6 2,059 Jul 21, 2013 09:33 PM
Last Post: Swifthider
by MycroMar 2, 2013 02:11 PM 1 171 Mar 2, 2013 02:11 PM
Last Post: Ninja9281